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

TypeError: 'SMPLXLayer' object does not support item assignment #5

Closed
sillybirrrd opened this issue Dec 6, 2022 · 1 comment
Closed

Comments

@sillybirrrd
Copy link

Hi Otaheri,

when trying to train GNet with the following command:
python train/GNet_train.py --work-dir path/to/work/dir --grab-path /path/to/GRAB --smplx-path /path/to/models/ --expr-id EXPERIMENT_ID

I encountered an error below:
TypeError: 'SMPLXLayer' object does not support item assignment

There are 4 lines causing such error, which are:
self.female_model['v_template'] = v_template[females] at line 397 in GNet_train.py
self.male_model['v_template'] = v_template[males] at line 423
self.female_model['v_template'] = v_template[females] at line 565
self.male_model['v_template'] = v_template[males] at line 571

After checking the source code of smplx, I made a substitution and figured out this bug:
['v_template'] -> .v_template

Is it a right correction or there are something else I missed?
Thanks!

@otaheri
Copy link
Owner

otaheri commented Dec 7, 2022

Hi @sillybirrrd, thank you for reporting the bug. Yeah, this is the correct way to do it.

@otaheri otaheri closed this as completed Apr 22, 2024
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

2 participants