Open MasterHM-ml opened 11 months ago
hi @MasterHM-ml , it seems that mmcv was not successfully installed. Can you reinstall mmcv again and check whether it is installed successfully? You may refer https://mmcv.readthedocs.io/en/latest/get_started/installation.html# to install mmcv
Hello, @zengyh1900 - thanks for the update. But I installed the mmcv according to the official documentation guidelines. Here is the gist to see a complete detailed stack trace.
hi @zhouzaida I think the error comes from https://gist.github.com/MasterHM-ml/619dee045ce44c5184cd93cb833328b1#file-gistfile1-txt-L1120 , where the codes try to import ops from mmcv. Is it caused by installing the wrong version of mmcv
in different platform? Do you have any ideas?
Any update?
I am also facing the same issue!
Try mmagic docker ?
or maybe it cause by pytorch 2.x version
try 1.x
conda install pytorch=1.10
For those who are still struggling to install and use mmcv. I tried the officially recommended approach (https://mmcv.readthedocs.io/zh-cn/latest/get_started/installation.html#install-with-mim-recommended) as well as the instruction from this comment (https://github.com/open-mmlab/mmdetection/issues/10401#issuecomment-1627394117). They didn't work for me. However, I noticed that there is no error when running in a CPU-only regime on Kaggle. So, I suspected there might be conflicts with the latest CUDA (I had CUDA 12.1 in my environment). After I downgraded CUDA (downgraded by finding an old notebook with a pinned environment) to 11.3, everything started to work. Here is a notebook with the pinned environment (CUDA 11.3), where no errors appear in mmcv: https://www.kaggle.com/code/vadimshabashov/mmdetection-startup-on-kaggle?scriptVersionId=180583679
Originally posted by @uniyushu in https://github.com/open-mmlab/mmcv/issues/2660#issuecomment-1467669827
I'm using
mmcv=2.0.1
, and still facing the same issue. I installedmmcv
viamim
. Here is how I installed it on KaggleNo error in installation.
But, I'm getting the error when calling
!python3 tools/train.py "configs/edsr/edsr_x2c64b16_1xb16-300k_UCMerced.py" --auto-scale-lr
Here is the stack trace cutted from last callsafter printing logs, it first shows some warnings
and then an error
Any solution to the problem or clue to debug will be highly helpful and appreciated. Thank you. Same code works fine in Colab.