open-mmlab / mmselfsup

OpenMMLab Self-Supervised Learning Toolbox and Benchmark
https://mmselfsup.readthedocs.io/en/latest/
Apache License 2.0
3.18k stars 428 forks source link

[Bug] mmselfsup(dev 1.x) can't work well with MMCV(2.0.0 rc3) #610

Closed zhaozh10 closed 1 year ago

zhaozh10 commented 1 year ago

Branch

1.x branch (1.x version, such as v1.0.0rc2, or dev-1.x branch)

Prerequisite

Environment

System environment: sys.platform: linux Python: 3.10.8 (main, Nov 24 2022, 14:13:03) [GCC 11.2.0] CUDA available: True numpy_random_seed: 99759439 GPU 0,1,2,3,4,5,6,7: NVIDIA GeForce RTX 3090 CUDA_HOME: /data/apps/cuda/11.6 NVCC: Cuda compilation tools, release 11.6, V11.6.112 GCC: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) PyTorch: 1.13.0 PyTorch compiling details: PyTorch built with:

Runtime environment: cudnn_benchmark: False mp_cfg: {'mp_start_method': 'fork', 'opencv_num_threads': 0} dist_cfg: {'backend': 'nccl'} seed: None Distributed launcher: slurm Distributed training: True GPU number: 8

Describe the bug

In MMCV(2.0.0 rc3), functions like ProgressBar has been removed and added in MMengine. However, in dev 1.x branch of mmselfsup, utils/collect.py still tries to import mmcv.ProgressBar. The solution is to import mmengine.ProgressBar

Reproduces the problem - code sample

No response

Reproduces the problem - command or script

No response

Reproduces the problem - error message

No response

Additional information

No response

tonysy commented 1 year ago

Thanks for the report, we will fix this bug soon.