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

KeyError: 'depth_actor_state_dict' #24

Open
XanderWangXY opened this issue Jan 19, 2024 · 4 comments
Open

KeyError: 'depth_actor_state_dict' #24

XanderWangXY opened this issue Jan 19, 2024 · 4 comments

Comments

@XanderWangXY
Copy link

When I use command "python save_jit.py --exptid xxx-xx" I meet this error.

Traceback (most recent call last):
File "/home/adc/pycharm-community-2023.3.2/plugins/python-ce/helpers/pydev/pydevd.py", line 1534, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/adc/pycharm-community-2023.3.2/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/adc/extreme-parkour/legged_gym/legged_gym/scripts/save_jit.py", line 123, in
play(args)
File "/home/adc/extreme-parkour/legged_gym/legged_gym/scripts/save_jit.py", line 91, in play
policy.actor.load_state_dict(ac_state_dict['depth_actor_state_dict'], strict=True)
KeyError: 'depth_actor_state_dict'

How can I solve it?

@XanderWangXY
Copy link
Author

I have solved it..

@sdalal1
Copy link

sdalal1 commented Jan 23, 2024

I am getting the same error. Can you share how you solved it?

@XanderWangXY
Copy link
Author

XanderWangXY commented Jan 24, 2024

I am getting the same error. Can you share how you solved it?

change "--exptid" value to the same file name as the trained distill model file
python save_jit.py --exptid yyy-yy

@KUsaka-xu
Copy link

Have you deploy the model into real robot?

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

3 participants