mks0601 / I2L-MeshNet_RELEASE

Official PyTorch implementation of "I2L-MeshNet: Image-to-Lixel Prediction Network for Accurate 3D Human Pose and Mesh Estimation from a Single RGB Image", ECCV 2020
MIT License
708 stars 130 forks source link

KeyError: 'mesh_coord_cam' #129

Closed ouusan closed 7 months ago

ouusan commented 7 months ago

Thanks for your work, it is so cool !! I am trying to run the demo.py, but following error occurs: Traceback (most recent call last): File "demo.py", line 106, in mesh_param_cam = out['mesh_coord_cam'][0].cpu().numpy() KeyError: 'mesh_coord_cam'

I print the out, it has only 'joint_coord_img','mesh_coord_img','bb2img_trans' , what's my problem, could you please tell me how can i solve it?

mks0601 commented 7 months ago

as in here (https://github.com/mks0601/I2L-MeshNet_RELEASE/blob/eae673ea0b5229c6c7c0ed6d24633f648683da5c/main/model.py#L115), you should set --stage param

ouusan commented 7 months ago

Thank you for your answer! i run the command: python demo.py --gpu 0 --stage param --test_epoch 8, as your README file, still the same error, Is it my misunderstanding? 2023-12-07 22-58-45屏幕截图

mks0601 commented 7 months ago

Could you first check your code is getting mesh_coord_cam in this line? https://github.com/mks0601/I2L-MeshNet_RELEASE/blob/eae673ea0b5229c6c7c0ed6d24633f648683da5c/main/model.py#L115

ouusan commented 7 months ago

Thank you sooo much!! solved it