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

Performance is unstable. #2

Closed
AlmoonYsl opened this issue Sep 21, 2023 · 4 comments
Closed

Performance is unstable. #2

AlmoonYsl opened this issue Sep 21, 2023 · 4 comments

Comments

@AlmoonYsl
Copy link

When I use batch_size=2, num_gpus=8 for training stream3dppe, the performance is very low (~55 NDS), and when I use SyncBN the performance is still low (~57 NDS).
When I use batch_size=4, num_gpus=4, I can reproduce the result (58.37 NDS).
I am confused. Why the performance depends heavily on samples_per_gpu?

@drilistbox
Copy link
Collaborator

drilistbox commented Sep 22, 2023

This is a normal phenomenon for petr-series method.
And the setting, i.e. (bs4 * 4gpus with BN) / (bs2 * 8gpus with BN) / (bs4 * 4gpus with SyncBN), are not equivalent. Parameters need to be adjusted under different settings.

@AlmoonYsl
Copy link
Author

This is a normal phenomenon for petr-series method. And the setting, i.e. (bs4 * 4gpus with BN) / (bs2 * 8gpus with BN) / (bs4 * 4gpus with SyncBN), are not equivalent. Parameters need to be adjusted under different settings.

Thanks for your replay. If I want to use batch_size=2, num_gpus=8 for training stream3dppe, what the config should be changed? Can you give me some suggestions?

@drilistbox
Copy link
Collaborator

In fact, we have never conduct ablation study on stream3dppe with 8 gpus as the sources are limited.
I thought bs per gpu and lr are also need to be adapted. Best wishes!

@AlmoonYsl
Copy link
Author

In fact, we have never conduct ablation study on stream3dppe with 8 gpus as the sources are limited. I thought bs per gpu and lr are also need to be adapted. Best wishes!

Thanks for your suggestions!

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