Some (all?) demos do not work anymore on Google Colab.
/!\ Same happens with other mmcv packages
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.
same problems,
Same error as #3637
it works for me with :
Check nvcc version
!nvcc -V
Check GCC version
!gcc --version
!apt-get install -y gcc python-dev
Installer PyTorch avec pip
!pip install torch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0
Install mim
!pip install -U openmim
Install mmengine
!mim install mmengine
Install MMCV
!mim install 'mmcv == 2.0.0rc4'
!rm -rf mmsegmentation !git clone -b main https://github.com/open-mmlab/mmsegmentation.git %cd mmsegmentation !pip install -e .
installing mmcv following the cmd does not work either
pip install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3/index.html
Instead, I install the mmsegmentation locally and change MMCV_MAX = '2.2.0' to MMCV_MAX = '2.2.1', and everything works fine.
installing mmcv following the cmd does not work either
pip install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3/index.htmlInstead, I install the mmsegmentation locally and change
MMCV_MAX = '2.2.0'toMMCV_MAX = '2.2.1', and everything works fine.
installing mmcv following the cmd does not work either
pip install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3/index.htmlInstead, I install the mmsegmentation locally and change
MMCV_MAX = '2.2.0'toMMCV_MAX = '2.2.1', and everything works fine.
Actually savior. Worked as well for me 🙌