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

AttributeError: 'Namespace' object has no attribute 'train_keypoint_mask' #2

Closed
rykawamura opened this issue Aug 10, 2023 · 1 comment

Comments

@rykawamura
Copy link

Hi,

I'm currently facing an issue while attempting to test "Motion Synthesis". When I run the command:
python -m sample.generate --model_path ./save/unet_adazero_xl_x0_abs_proj10_fp16_clipwd_224/model000500000.pt --text_prompt "a person is walking while raising both hands" --guidance_mode kps
I encounter the following error:
File "/home/user/guided-motion-diffusion/utils/model_util.py", line 110, in get_model_args
'train_keypoint_mask': args.train_keypoint_mask,
AttributeError: 'Namespace' object has no attribute 'train_keypoint_mask'

Could you please provide guidance on how to resolve this issue?

@korrawe
Copy link
Owner

korrawe commented Aug 10, 2023

Hi,
Thank you for pointing this out. I forgot to remove the 'train_keypoint_mask' flag. You can pull the fix from the latest commit now. Or, you can remove any line with 'train_keypoint_mask' from the "./guided-motion-diffusion/utils/model_util.py"
Best,

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