Skip to content

'Struct' object has no attribute 'hands_componentsl' #230

@soddday

Description

@soddday

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions