open-mmlab / mmhuman3d

OpenMMLab 3D Human Parametric Model Toolbox and Benchmark
https://mmhuman3d.readthedocs.io/
Apache License 2.0
1.23k stars 136 forks source link

assert has_mmdet, 'Please install mmdet to run the demo.' AssertionError: Please install mmdet to run the demo. When I also install mmdet #307

Open smarino14 opened 1 year ago

smarino14 commented 1 year ago

When I run the single person demo, I got the error:

assert has_mmdet, 'Please install mmdet to run the demo.' AssertionError: Please install mmdet to run the demo.

But I install this library.

jianwang-mpi commented 1 year ago

same issue here.

jianwang-mpi commented 1 year ago

The problem is mmtrack requires scipy<=1.7.3, scipy 1.7.3 requires numpy<1.23.0, but mmdet requires numpy>=1.23.0

Uninstalling the mmtrack and upgrade scipy, numpy (to 1.23.x) solve the issue

The numpy 1.24.x does not work

shihzenq commented 1 year ago

hello, Has the problem been solved?

shihzenq commented 1 year ago

python demo/estimate_smpl.py \ configs/hmr/resnet50_hmr_pw3d.py \ data/checkpoints/resnet50_hmr_pw3d.pth \ --single_person_demo \ --det_config demo/mmdetection_cfg/faster_rcnn_r50_fpn_coco.py \ --det_checkpoint https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth \ --input_path demo/resources/single_person_demo.mp4 \ --show_path vis_results/single_person_demo.mp4 \ --output demo_result \ --smooth_type savgol \ --speed_up_type deciwatch \ --draw_bbox

When running this command, you must install mmtrack. When installing mmtrack, The problem is mmtrack requires scipy<=1.7.3, scipy 1.7.3 requires numpy<1.23.0, but mmdet requires numpy>=1.23.0. The problem is mmtrack requires Scipy <=1.7.3, Scipy 1.7.3 requires Numpy <= 1.23.0

Uninstalling the mmtrack and upgrade scipy, numpy (to 1.23.x) solve the issue. It's like entering a loop

Whiplash-18 commented 8 months ago

python demo/estimate_smpl.py configs/hmr/resnet50_hmr_pw3d.py data/checkpoints/resnet50_hmr_pw3d.pth --single_person_demo --det_config demo/mmdetection_cfg/faster_rcnn_r50_fpn_coco.py --det_checkpoint https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth --input_path demo/resources/single_person_demo.mp4 --show_path vis_results/single_person_demo.mp4 --output demo_result --smooth_type savgol --speed_up_type deciwatch --draw_bbox

When running this command, you must install mmtrack. When installing mmtrack, The problem is mmtrack requires scipy<=1.7.3, scipy 1.7.3 requires numpy<1.23.0, but mmdet requires numpy>=1.23.0. The problem is mmtrack requires Scipy <=1.7.3, Scipy 1.7.3 requires Numpy <= 1.23.0

Uninstalling the mmtrack and upgrade scipy, numpy (to 1.23.x) solve the issue. It's like entering a loop

so we can not get multi_person_demo as the demo needs both mmdet and mmtrack