vchoutas / smplify-x

Expressive Body Capture: 3D Hands, Face, and Body from a Single Image
https://smpl-x.is.tue.mpg.de/
Other
1.76k stars 340 forks source link

AssertionError: Number of Body pose prior weights 4 does not match the number of data term weights 5 #225

Open whl-007 opened 2 months ago

whl-007 commented 2 months ago

I find some errors in smplifyx /fit_single_frame.py from line 108 to 120, data_weights‘s shape is 5,but body_pose_prior_weights‘s shape is 4 so that this will raise an error: AssertionError: Number of Body pose prior weights 4 does not match the number of data term weights 5 if data_weights is None: data_weights = [1, ] * 5

if body_pose_prior_weights is None:
    body_pose_prior_weights = [4.04 * 1e2, 4.04 * 1e2, 57.4, 4.78]

msg = (
    'Number of Body pose prior weights {}'.format(
        len(body_pose_prior_weights)) +
    ' does not match the number of data term weights {}'.format(
        len(data_weights)))
assert (len(data_weights) ==
        len(body_pose_prior_weights)), msg
whl-007 commented 2 months ago

Can somebody help me?

whiteRedBlue commented 1 month ago

Hello, I also had the same problem, can you please solve it