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

dropout in resnet.py #14

Open
uniquezhengjie opened this issue Feb 13, 2019 · 2 comments
Open

dropout in resnet.py #14

uniquezhengjie opened this issue Feb 13, 2019 · 2 comments

Comments

@uniquezhengjie
Copy link

thinks for your great work, I found a err in resnet.py #line 148

x = nn.Dropout(p=0.5)(x)

set net.eval() doesn't work for it ,i think need to defind a self.drop with nn.Dropout(p=0.5) in init function or change to F.dropout(x,p=0.5,training=self.training)

@paramansh
Copy link

I am facing the same issue. @uniquezhengjie does your solution work?

@DiKorsch
Copy link

This should be fixed since the model returns at test time different results! Took me an hour to figure it out. Should have checked the issues before :-/

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