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

[Feature] Using rich to beautify the ProgressBar in MMEngine #989

Open
HAOCHENYE opened this issue Mar 8, 2023 · 0 comments
Open

[Feature] Using rich to beautify the ProgressBar in MMEngine #989

HAOCHENYE opened this issue Mar 8, 2023 · 0 comments

Comments

@HAOCHENYE
Copy link
Collaborator

What is the feature?

The ProgressBar provided by MMEngine is not as visually appealing as third-party libraries such as rich. In order to maintain backward compatibility of MMEngine, we cannot simply delete the code related to ProgressBar. Therefore, we hope to refactor the implementation of ProgressBar based on rich.

Current effect:

import time

from mmengine.utils import track_progress

dummy = [0] * 10

func = lambda x: time.sleep(0.3)
track_progress(func, dummy)

asciicast

rich version

asciicast

Functions in this module need to be refactored

https://github.com/open-mmlab/mmengine/blob/main/mmengine/utils/progressbar.py

Any other context?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant