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

SynchronizedBatchNorm2d or nn.BatchNorm2d? #19

Closed
BinhuiXie opened this issue Jun 2, 2021 · 1 comment
Closed

SynchronizedBatchNorm2d or nn.BatchNorm2d? #19

BinhuiXie opened this issue Jun 2, 2021 · 1 comment

Comments

@BinhuiXie
Copy link

What's the difference between SynchronizedBatchNorm2d and nn.BatchNorm2d? I usually freeze BN since the batch_size is usually small, i.e., 1. Dose this training trick you used could bring boost to your final performance. I think a comparison in fair settings will show the real improvement of your method.

@panzhang0212
Copy link
Contributor

Previous UDA works use different batch size, 1, 2, 4, 8, 9. So, it's hard to set the same bs with all previous works. And we set batch size 4 due to 4 GPUs and do not try other batch sizes. If you want to try other bs, please choose a proper learning rate.

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