mmpose
mmpose copied to clipboard
[Bug] ModuleNotFoundError: No module named 'mmdet' inside the container
Prerequisite
- [x] I have searched Issues and Discussions but cannot get the expected help.
- [x] The bug has not been fixed in the latest version(https://github.com/open-mmlab/mmpose).
Environment
I tried to run the demo
python demo/topdown_demo_with_mmdet.py
demo/mmdetection_cfg/rtmdet_m_8xb32-300e_coco.py
https://download.openmmlab.com/mmdetection/v3.0/rtmdet/rtmdet_m_8xb32-300e_coco/rtmdet_m_8xb32-300e_coco_20220719_112220-229f527c.pth
configs/animal_2d_keypoint/topdown_heatmap/animalpose/td-hm_hrnet-w32_8xb64-210e_animalpose-256x256.py
https://download.openmmlab.com/mmpose/animal/hrnet/hrnet_w32_animalpose_256x256-1aa7f075_20210426.pth
--input tests/data/animalpose/ca110.jpeg
--output-root vis_results --save-predictions --draw-heatmap --det-cat-id=15
inside the provided container and I got the issue ModuleNotFoundError: No module named 'mmdet'. It can be solved by installing mmdet with pip but then I got AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.1.0. einstalling a compatible version of mmcv takes a lot of time because of the Building wheel for mmcv (setup.py).
Any suggestions to fix it?
Reproduces the problem - code sample
docker run --gpus all --shm-size=8g -it -v {DATA_DIR}:/mmpose/data mmpose
python demo/topdown_demo_with_mmdet.py
demo/mmdetection_cfg/rtmdet_m_8xb32-300e_coco.py
https://download.openmmlab.com/mmdetection/v3.0/rtmdet/rtmdet_m_8xb32-300e_coco/rtmdet_m_8xb32-300e_coco_20220719_112220-229f527c.pth
configs/animal_2d_keypoint/topdown_heatmap/animalpose/td-hm_hrnet-w32_8xb64-210e_animalpose-256x256.py
https://download.openmmlab.com/mmpose/animal/hrnet/hrnet_w32_animalpose_256x256-1aa7f075_20210426.pth
--input tests/data/animalpose/ca110.jpeg
--output-root vis_results --save-predictions --draw-heatmap --det-cat-id=15
Reproduces the problem - command or script
docker run --gpus all --shm-size=8g -it -v {DATA_DIR}:/mmpose/data mmpose
python demo/topdown_demo_with_mmdet.py
demo/mmdetection_cfg/rtmdet_m_8xb32-300e_coco.py
https://download.openmmlab.com/mmdetection/v3.0/rtmdet/rtmdet_m_8xb32-300e_coco/rtmdet_m_8xb32-300e_coco_20220719_112220-229f527c.pth
configs/animal_2d_keypoint/topdown_heatmap/animalpose/td-hm_hrnet-w32_8xb64-210e_animalpose-256x256.py
https://download.openmmlab.com/mmpose/animal/hrnet/hrnet_w32_animalpose_256x256-1aa7f075_20210426.pth
--input tests/data/animalpose/ca110.jpeg
--output-root vis_results --save-predictions --draw-heatmap --det-cat-id=15
Reproduces the problem - error message
ModuleNotFoundError: No module named 'mmdet'
Additional information
No response