If we set gender_gt in openpose keypoints file. Run smplifyx/main will occur an error:
Traceback (most recent call last):
File "smplifyx/main.py", line 272, in <module>
main(**args)
File "smplifyx/main.py", line 236, in main
if gender == 'neutral':
UnboundLocalError: local variable 'gender' referenced before assignment
Is this a typing mistake?
if 'gender_gt' in person_data:
gender_pd.append(person_data['gender_gt'])
If we set gender_gt in openpose keypoints file. Run smplifyx/main will occur an error:
Is this a typing mistake?
https://github.com/vchoutas/smplify-x/blob/be588c4742b6aed262edad769a18dcb6f4af2f7e/smplifyx/data_parser.py#L95
I think it's should use
gender_gt.append
, notgender_pd.append
at here.I tested after this change the above
UnboundLocalError: local variable 'gender' referenced before assignment
will disappear.