Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I making annotation files, I encountered the following error. #15

Closed
Ruaabick opened this issue Apr 16, 2023 · 9 comments
Closed

Comments

@Ruaabick
Copy link

When I making annotation files, I encountered the following error.

Traceback (most recent call last):
File "agora2coco.py", line 63, in
smplx_layer = smplx.create(args.human_model_path, 'smplx', use_pca=False)
File "/root/anaconda3/envs/test/lib/python3.8/site-packages/smplx/body_models.py", line 2404, in create
return SMPLX(model_path, **kwargs)
File "/root/anaconda3/envs/test/lib/python3.8/site-packages/smplx/body_models.py", line 969, in init
assert osp.exists(smplx_path), 'Path {} does not exist!'.format(
AssertionError: Path /data/OSX/dataset/AGORA/data/smplx does not exist!

So I download and unzip models_smplx_v1_1.zip,It reported the following error.

Traceback (most recent call last):
File "agora2coco.py", line 149, in
joints_2d_lhand = joints_2d[smplx_joint_part['lhand'],:]
IndexError: index 66 is out of bounds for axis 0 with size 45

What files should I place under the human model layer path?

@linjing7
Copy link
Collaborator

Hi, you need to collect the human model files like the following structure:
image

@Ruaabick
Copy link
Author

I collected human model files following the steps, but when I ran it again, it seems to require other files…?

Traceback (most recent call last):
  File "agora2coco.py", line 63, in <module>
    smplx_layer = smplx.create(args.human_model_path, 'smplx', use_pca=False)
  File "/root/anaconda3/envs/test/lib/python3.8/site-packages/smplx/body_models.py", line 2404, in create
    return SMPLX(model_path, **kwargs)
  File "/root/anaconda3/envs/test/lib/python3.8/site-packages/smplx/body_models.py", line 969, in __init__
    assert osp.exists(smplx_path), 'Path {} does not exist!'.format(
AssertionError: Path /data/OSX/common/utils/human_model_files/smplx/SMPLX_NEUTRAL.npz does not exist!

@linjing7
Copy link
Collaborator

Yes, you are right, please download SMPLX_NEUTRAL.npz and place it into human_model_files/smplx/ folder.

@linjing7
Copy link
Collaborator

linjing7 commented Apr 16, 2023

It seems that the joints number of your data data_smplx['gt_joints_2d'] is wrong. I guess you download the SMPL-version AGORA instead of SMPLX-version.

@Ruaabick
Copy link
Author

Sorry to bother you again. I noticed that the data_smplx variable is loaded from the train_SMPLX and validation_SMPLX in dataset_path. I downloaded the file from the here and extracted it to the dataset_path directory. Did I download the wrong file? Should it be the smplx-version file?

image

image

@kmaksatk
Copy link

kmaksatk commented Oct 23, 2023

I have the same error, since you closed this issue, I was wondering if you found the solution to this. @Ruaabick

@carlinl
Copy link

carlinl commented Jan 7, 2024

I encountered the same issue, and following the instructions above still leads me to the same problem. I would be grateful if anyone could share their solution to this!

@Followmeczx
Copy link

Followmeczx commented Jan 16, 2024

@carlinl I found the solution, something was wrong with the code.
Load data_smplx by specifying to read the _SMPLX file
image

@chojinie
Copy link

@Followmeczx Thanks! I encountered same error, and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants