Nicholasli1995 / EvoSkeleton

Official project website for the CVPR 2020 paper (Oral Presentation) "Cascaded deep monocular 3D human pose estimation wth evolutionary training data"
https://arxiv.org/abs/2006.07778
MIT License
332 stars 44 forks source link

Obtain 3D skeleton with 2D key-points as inputs using SMPLify by own data #77

Closed tdat1995 closed 2 years ago

tdat1995 commented 2 years ago

Thank you so much for providing the code also now I met the problem when I want to obtain a 3D skeleton with 2D keypoint. The error is like this when I run the code "python fit_3d.py -dataset_dir anno -model_dir smplify/models/basicModel_neutral_lbs_10_207_0_v1.0.0.pkl" Traceback (most recent call last): File "fit_3d.py", line 99, in main(opt) File "fit_3d.py", line 62, in main do_degrees=do_degrees File "/home/panda/EvoSkeleton/libs/annotator/smplify/fit_3d.py", line 451, in run_single_fit viz=viz) File "/home/panda/EvoSkeleton/libs/annotator/smplify/fit_3d.py", line 120, in initialize_camera center = np.array([img.shape[1] / 2, img.shape[0] / 2]) AttributeError: 'NoneType' object has no attribute 'shape'

It shows that it can not use my 2D input keypoint. Many thanks

2samgu2 commented 2 years ago

img is None Match the image path in annotation path

Nicholasli1995 commented 2 years ago

Thank you so much for providing the code also now I met the problem when I want to obtain a 3D skeleton with 2D keypoint. The error is like this when I run the code "python fit_3d.py -dataset_dir anno -model_dir smplify/models/basicModel_neutral_lbs_10_207_0_v1.0.0.pkl" Traceback (most recent call last): File "fit_3d.py", line 99, in main(opt) File "fit_3d.py", line 62, in main do_degrees=do_degrees File "/home/panda/EvoSkeleton/libs/annotator/smplify/fit_3d.py", line 451, in run_single_fit viz=viz) File "/home/panda/EvoSkeleton/libs/annotator/smplify/fit_3d.py", line 120, in initialize_camera center = np.array([img.shape[1] / 2, img.shape[0] / 2]) AttributeError: 'NoneType' object has no attribute 'shape'

It shows that it can not use my 2D input keypoint. Many thanks

Hi, please check your paths to your input images.

tdat1995 commented 2 years ago

Thank you so much guys