open-mmlab/mmdetection

Error in the demos with Google Colab

antoineedy opened this issue · 1 comments

Some (all?) demos do not work anymore on Google Colab.

To reproduce:
Open any demo in the demo folder, like this one.

Open in Google Colab and run the file. The third output cell is the following:

AssertionError                            Traceback (most recent call last)
<ipython-input-3-a857150f8e0e> in <cell line: 4>()
      2 from mmengine.utils.dl_utils import collect_env as collect_base_env
      3 
----> 4 import mmdet
      5 
      6 

/content/mmdetection/mmdet/__init__.py in <module>
     15 
     16 assert (mmcv_version >= digit_version(mmcv_minimum_version)
---> 17         and mmcv_version < digit_version(mmcv_maximum_version)), \
     18     f'MMCV=={mmcv.__version__} is used but incompatible. ' \
     19     f'Please install mmcv>={mmcv_minimum_version}, <{mmcv_maximum_version}.'

AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.2.0.

This error does not match the !mim install "mmcv>=2.0.0rc4" of the cell above. I tried with changing the version of mmcv to one between 2.0.0rc4 & 2.2.0, but the same error keeps occurring.