GACNet icon indicating copy to clipboard operation
GACNet copied to clipboard

Why is "model. Eval" not used in the test part of the code

Open Yudsuki opened this issue 5 years ago • 2 comments

Hi Yan,

Thank you for your fantastic work. But I have some questions. I found that 'batchnorm' and 'DROPOUT' were used extensively in the code. I implemented the model 40 classification task based on your code. Of course, 'model. train' is used reasonably, but I found that 'model. eval' is not used in part of the test code. What's more strange is that after adding 'model. Eval()', test accuracy will be greatly reduced. Do you encounter this problem during debugging?

Yudsuki avatar Nov 14 '19 02:11 Yudsuki

I think he didn't test the network seriously, just run training successfully, and end.

MichaleWong avatar Sep 15 '21 08:09 MichaleWong

actually, after testing , there's difference between eval mode and train mode, that was caused by batch norm mainly

MichaleWong avatar Oct 05 '21 01:10 MichaleWong