mmpose
mmpose copied to clipboard
[Bug] Unknown layout when running simple 3d inference models
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
Linux with Python3.10
Reproduces the problem - code sample
after installing the library and successfully inferenced the 2d models, I and getting an Unknown Layout error when trying to run demo/body3d_pose_lifter_demo.py
Reproduces the problem - command or script
python demo/body3d_pose_lifter_demo.py
demo/mmdetection_cfg/rtmdet_m_640-8xb32_coco-person.py
https://download.openmmlab.com/mmpose/v1/projects/rtmpose/rtmdet_m_8xb32-100e_coco-obj365-person-235e8209.pth
configs/body_2d_keypoint/rtmpose/body8/rtmpose-m_8xb256-420e_body8-256x192.py
https://download.openmmlab.com/mmpose/v1/projects/rtmposev1/rtmpose-m_simcc-body7_pt-body7_420e-256x192-e48f03d0_20230504.pth
configs/body_3d_keypoint/video_pose_lift/h36m/video-pose-lift_tcn-243frm-supv-cpn-ft_8xb128-200e_h36m.py
https://download.openmmlab.com/mmpose/body3d/videopose/videopose_h36m_243frames_fullconv_supervised_cpn_ft-88f5abbb_20210527.pth
--input https://user-images.githubusercontent.com/87690686/164970135-b14e424c-765a-4180-9bc8-fa8d6abc5510.mp4
--output-root vis_results
--save-predictions
Reproduces the problem - error message
Loads checkpoint by http backend from path: https://download.openmmlab.com/mmpose/v1/projects/rtmpose/rtmdet_m_8xb32-100e_coco-obj365-person-235e8209.pth
Downloading: "https://download.openmmlab.com/mmpose/v1/projects/rtmpose/rtmdet_m_8xb32-100e_coco-obj365-person-235e8209.pth" to /home/ec2-user/.cache/torch/hub/checkpoints/rtmdet_m_8xb32-100e_coco-obj365-person-235e8209.pth
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 94.4M/94.4M [00:06<00:00, 16.1MB/s]
Loads checkpoint by http backend from path: https://download.openmmlab.com/mmpose/v1/projects/rtmposev1/rtmpose-m_simcc-body7_pt-body7_420e-256x192-e48f03d0_20230504.pth
Downloading: "https://download.openmmlab.com/mmpose/v1/projects/rtmposev1/rtmpose-m_simcc-body7_pt-body7_420e-256x192-e48f03d0_20230504.pth" to /home/ec2-user/.cache/torch/hub/checkpoints/rtmpose-m_simcc-body7_pt-body7_420e-256x192-e48f03d0_20230504.pth
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 52.0M/52.0M [00:03<00:00, 15.5MB/s]
Loads checkpoint by http backend from path: https://download.openmmlab.com/mmpose/body3d/videopose/videopose_h36m_243frames_fullconv_supervised_cpn_ft-88f5abbb_20210527.pth
Downloading: "https://download.openmmlab.com/mmpose/body3d/videopose/videopose_h36m_243frames_fullconv_supervised_cpn_ft-88f5abbb_20210527.pth" to /home/ec2-user/.cache/torch/hub/checkpoints/videopose_h36m_243frames_fullconv_supervised_cpn_ft-88f5abbb_20210527.pth
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 64.8M/64.8M [00:04<00:00, 15.6MB/s]
/opt/conda/lib/python3.10/site-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3549.)
return VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
Traceback (most recent call last):
File "/home/ec2-user/mmpose/demo/body3d_pose_lifter_demo.py", line 553, in
Additional information
seems the older version of the code works
Could you please share the package details displayed by running pip list | grep mm? This could help identify any version discrepancies.
Could you please share the package details displayed by running
pip list | grep mm? This could help identify any version discrepancies.
Hi,
Here it is
Based on the error message, it seems that there is an incompatibility between the pre-compiled package and your device. To fix the issue, try reinstalling mmcv from source using the command pip install git+https://github.com/open-mmlab/mmcv.git.
Based on the error message, it seems that there is an incompatibility between the pre-compiled package and your device. To fix the issue, try reinstalling mmcv from source using the command
pip install git+https://github.com/open-mmlab/mmcv.git.
Yeah, I have tried this command and it gives the same error. It seems the command just installed the same version of mmcv.
Same issue