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

Questions about setting eval mode in DBAL and BALD #5

Open
LightersWang opened this issue Jan 15, 2024 · 0 comments
Open

Questions about setting eval mode in DBAL and BALD #5

LightersWang opened this issue Jan 15, 2024 · 0 comments

Comments

@LightersWang
Copy link

LightersWang commented Jan 15, 2024

Hi!
Thanks for your solid work on building such a useful tool for active learning in classification.
Now, I'm adapting your code to active learning in medical image classification.
While reading your code, I encountered questions about setting the clf_model to evaluation mode in DBAL and BALD.

In line 300 - 303 and 364 - 368 of Sampling.py, you first set all the modules in clf_model to train mode and set the batch norm modules to eval mode. Although doing so leaves the dropout layers as train mode, it also sets the conv layers and fc layer as the train mode, too. Is it ok to do this? Or should we turn the model to eval mode first, and then set the dropout layers as train mode?

I'm aware it's a detailed question about the implementation, raising it may seem unnecessary, but I would appreciate hearing from you.

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

1 participant