smplx icon indicating copy to clipboard operation
smplx copied to clipboard

'Struct' object has no attribute 'hands_componentsl'

Open soddday opened this issue 4 months ago • 0 comments

hi @vchoutas when run python write_obj.py --model-folder ../models/ --motion-file ..\transfer_data\support_data\npz_data\00001_0.npz --output-folder ../transfer_data/meshes/amass_sample/ to process my own npz file(SMPL-X NEUTRAL),I meet this error WARNING: You are using a SMPL+H model, with only 16 shape coefficients. num_betas=1, shapedirs.shape=(6890, 3, 16), self.SHAPE_SPACE_DIM=300 Traceback (most recent call last): File "E:\smplx2smplh\smplx\transfer_model\write_obj.py", line 199, in main( File "E:\smplx2smplh\smplx\transfer_model\write_obj.py", line 59, in main model = smplx.create( ^^^^^^^^^^^^^ File "E:\smplx2smplh\smplx\transfer_model\smplx\body_models.py", line 2419, in create return SMPLH(model_path, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\smplx2smplh\smplx\transfer_model\smplx\body_models.py", line 612, in init left_hand_components = data_struct.hands_componentsl[:num_pca_comps] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Struct' object has no attribute 'hands_componentsl' I already get all the pkl and npz files of SMPL

Image

soddday avatar Aug 29 '25 14:08 soddday