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

A confusing line of code, which may have to be modified #24

Open
shawnfd opened this issue Jan 19, 2022 · 1 comment
Open

A confusing line of code, which may have to be modified #24

shawnfd opened this issue Jan 19, 2022 · 1 comment

Comments

@shawnfd
Copy link

shawnfd commented Jan 19, 2022

Hi zhenghao,
the train/eval mode of the fcos model is written in your code [path/model/fcos.py], however, in the line 26
'super().train(mode=True)', the model mode is fixed as training mode.
That leads to some unexpected inference results when doing inference by set model to eval(). So, I suggest
modify 'super().train(mode=True)' to 'super().train(mode=mode)'.
Otherwise, the dropout/bn is not locked in the inference procedure. At the same time, the dropout/bn status
can be affected by the [path/model/config.py] configurations: freeze_stage1/freeze_bn

@zhenghao977
Copy link
Owner

zhenghao977 commented Jan 19, 2022 via email

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