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

Same outputs after model.eval() #6

Open
farsal opened this issue Aug 13, 2020 · 6 comments
Open

Same outputs after model.eval() #6

farsal opened this issue Aug 13, 2020 · 6 comments

Comments

@farsal
Copy link

farsal commented Aug 13, 2020

Hi, I have some issues when using model on validation data, model.eval() gives the same output for any validation data, Can you please help me with this?

@farsal farsal changed the title same outputs after model.eval() Same outputs after model.eval() Aug 13, 2020
@WinstonHuTiger
Copy link

@farsal did you solve this, I face the same problem.

@nooppi18
Copy link

I am facing the same problem.

@pranshu97
Copy link

Did anyone find a solution for this issue?
@shijianjian @farsal @WinstonHuTiger @nooppi18

@shijianjian
Copy link
Owner

Sorry that I did not aware of those issues in this repo. I currently do not actively maintain this repo. So, if you have resolved this, drop me a PR and at me. I will merge.

I do not check much on the code. Presumable, if model.train() worked but not model.eval(), I suspect something went wrong with train/test conditional layers as BatchNorm, dropout, etc. Good luck!

@AmokraneMancer
Copy link

same issue, did any one find a solution ?

@myxik
Copy link

myxik commented Aug 21, 2021

please disable model.eval() and use torch.no_grad()

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

7 participants