ProgressBar¶
- class mmengine.utils.ProgressBar(task_num=0, bar_width=50, start=True, file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[源代码]¶
A progress bar which can print the progress.
- 参数:
示例
>>> import mmengine >>> import time >>> bar = mmengine.ProgressBar(10) >>> for i in range(10): >>> bar.update() >>> time.sleep(1)