ImportError: cannot import name 'QuantStub' from 'torch.ao.quantization' (E:\Eprogramfiles\Anaconda3\lib\site-packages\torch\ao\quantization\__init__.py)

ImportError: cannot import name 'QuantStub' from 'torch.ao.quantization' (E:\Eprogramfiles\Anaconda3\lib\site-packages\torch\ao\quantization\__init__.py)

from torch.ao.quantization import QuantStub, DeQuantStub

 ModuleNotFoundError: No module named 'mmcv'

pip install timm==

timm==0.5.4
pip install mmdet

Successfully installed addict-2.4.0 mmcv-1.4.7


torch                              1.11.0


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


ERROR: Failed building wheel for mmcv
2.0.0

本机电脑安装mmcv or mmcv-full卡住

使用mmcv官网中的安装没有卡顿,直接装上了 ,使用mim安装

  1.  
    pip install -U openmim
  2.  
    mim install mmcv
     
    ModuleNotFoundError: No module named 'mmdet.models.builder'
     
     


    I am using mmdet 3.0.0 instead of mmdet 2.25.2,and get this err: No module named 'mmdet.models.builder'


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


     ModuleNotFoundError: No module named 'mmcv._ext'

     
     mim install mmcv-full==1.4.7
     
     
     
     
     
     
posted @ 2023-05-22 12:32  emanlee  阅读(1291)  评论(0编辑  收藏  举报