Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

number of parameters #8

Closed
tuvovan opened this issue Nov 18, 2020 · 1 comment
Closed

number of parameters #8

tuvovan opened this issue Nov 18, 2020 · 1 comment

Comments

@tuvovan
Copy link

tuvovan commented Nov 18, 2020

Hi, thanks for your work.

Could you please share the number of parameter of your network?
I implemented it and it seems to have more than 34M params?

Thanks!

@adityac8
Copy link
Collaborator

Hi @tuvovan
We use the following snippet to calculate the model parameters.

def params_count(model):
    """Computes the number of parameters."""
    return np.sum([p.numel() for p in model.parameters()]).item()

The number of parameters for our MIRNet model are 31.7 Million.
In case you want to have a lighter version, you can have a look at #5 for details on adjusting parameters, such as batch_size and n_feat.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants