-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'mmcv' has no attribute 'Config'[Bug] #1781
Comments
Hi, @anshkumar: what is your mmdeploy version? import mmdeploy
print(mmdeploy.__version__) Your mmdeploy version should be started as |
I'm getting following error with
|
You can check the content in |
I was using master branch. Switched to
|
Seems the rewriter of RTMDet-ins doesn't work, please check your mmdet version. It is better to check the mmdet branch to the latest. |
Using branch |
|
I am facing the same issue |
@hanrui1sensetime |
in https://mmcv.readthedocs.io/zh_CN/latest/compatibility.html ,可以看到 # import mmcv
# mmcv.Config
import mmengine
mmengine.Config |
It worked! Thanks! |
Still facing the same problem, |
Source code installation, successful installation of the latest version 1.2.0 pip can only be installed to 0.x git clone https://github.com/open-mmlab/mmdeploy.git
cd mmdeploy
pip install -U openmim && mim install -e . |
I need to install it through pip, because we are using it as hermetic dependency through bazel. |
Checklist
Describe the bug
I'm trying to export a model to TensorRT using following command:
But getting following error:
Following instructions griven here.
mmcv=2.0.0rc2
Reproduction
go to the mmdeploy folder
cd ${PATH_TO_MMDEPLOY}
download RTMDet-s checkpoint
wget -P checkpoint https://download.openmmlab.com/mmdetection/v3.0/rtmdet/rtmdet_s_8xb32-300e_coco/rtmdet_s_8xb32-300e_coco_20220905_161602-387a891e.pth
run the command to start model conversion
python tools/deploy.py
configs/mmdet/detection/detection_tensorrt_static-640x640.py
${PATH_TO_MMDET}/configs/rtmdet/rtmdet_s_8xb32-300e_coco.py
checkpoint/rtmdet_s_8xb32-300e_coco_20220905_161602-387a891e.pth
demo/resources/det.jpg
--work-dir ./work_dirs/rtmdet
--device cuda:0
--show
Environment
Error traceback
No response
The text was updated successfully, but these errors were encountered: