-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[WIP] fix progress bar lacks a wrap #1496
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
base: master
Are you sure you want to change the base?
[WIP] fix progress bar lacks a wrap #1496
Conversation
Does this PR introduces BC-breaking? For example, there are many code in downstream repos using the old style like
What will happen if we do not modify our usage of progressbar? |
Honestly, I am not quite sure about whether this PR introduces BC-breaking because some downstream repos impl their own |
I think it will not introduce BC-breaking. In fact, the PR just adds a |
Ready to merge, we can choose either adding documentations in this PR or update it in another PR. |
What kind of docs, about what we modified and how downstream to modify? And where should we put the docs, compatibility.md? |
Sorry for the vague comments. Shall we update this documentation https://github.com/open-mmlab/mmcv/blob/master/docs/en/understand_mmcv/utils.md#progressbar to tell users about the new and old usages of progressbar? |
In the above docs we only provide the usages of |
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Related issue: #988.
Fix the progress bar lacks a wrap.
Modification
Add wrap in the corresponding function.
BC-breaking (Optional)
Honestly, I am not quite sure about whether this PR introduces BC-breaking because some downstream repos impl their own
single_gpu_test
andmulti_gpu_test
but maybe other downstream repos use these func in mmcv. However, we should ask them to use the progressbar according to the new Impl of progressbar.Use cases (Optional)
Modify corresponding config files
Run
Before
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 10000/10000, 2684.9 task/s, elapsed: 4s, ETA: 0s2021-11-17 10:49:22,284 - mmcls - INFO - Iter(val) [625] accuracy_top-1: 10.0000, accuracy_top-5: 50.8100
After
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 10000/10000, 2658.6 task/s, elapsed: 4s, ETA: 0s 2021-11-17 10:48:16,768 - mmcls - INFO - Iter(val) [625] accuracy_top-1: 12.9500, accuracy_top-5: 50.0000
Update: test for
multi_gpu_test()
[>>>>>>>>>>>>>>>>>>>>>>>>] 10000/10000, 42.8 task/s, elapsed: 234s, ETA: 0s 2021-12-01 13:05:47,997 - mmcls - INFO - Iter(val) [625] accuracy_top-1: 10.0000, accuracy_top-5: 50.0000 2021-12-01 13:05:52,824 - mmcls - INFO - Saving checkpoint at 2 iterations
Checklist
Before PR:
After PR: