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

Parameter #4

Open
brijraj08 opened this issue Aug 7, 2018 · 2 comments
Open

Parameter #4

brijraj08 opened this issue Aug 7, 2018 · 2 comments

Comments

@brijraj08
Copy link

Hi Ericsun99,
Thanks for sharing the code and model.
I tried using the code you shared and met an error at line 80 of MobileNetV2.py (self.features.append(nn.AvgPool2d(input_size/32))) asking about input parameters to the AvgPool2d function.
Could you please help me in managing the error which says RuntimeError: avg_pool2d(): argument 'kernel_size' (position 2) must be tuple of ints, not float
?

@blueardour
Copy link

try add int() , for example: nn.AvgPool2d(int(input_size/32)) ?

@mkwml
Copy link

mkwml commented Sep 18, 2018

@blueardour nn.AvgPool2d(input_size/32) --> nn.AvgPool2d(input_size//32)

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

3 participants