-
Notifications
You must be signed in to change notification settings - Fork 172
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
training issue #49
Comments
@2529342549 if you don't want to run imitation learning, you should comment out these lines altogether instead of just setting that variable to False: Lines 116 to 133 in 20d6780
Let me know if this fix works for you. |
Hi, thanks for your last answer,I'm here to disturb you again。 |
Hi,sorry to bother you.
I don't want to imitate learning,so I set 'imitation_learning=False' in train.py,but there are some error:
AttributeError: 'JointState' object has no attribute 'unsqueeze' File "train.py", line 188, in
main()
File "train.py", line 140, in main
explorer.run_k_episodes(il_episodes, 'train', update_memory=True, imitation_learning=False)
File "../crowd_nav/utils/explorer.py", line 72, in run_k_episodes
self.update_memory(states, actions, rewards, imitation_learning)
File "../crowd_nav/utils/explorer.py", line 116, in update_memory
value = reward + gamma_bar * self.target_model(next_state.unsqueeze(0)).data.item()
AttributeError: 'JointState' object has no attribute 'unsqueeze'
Can you tell me how to solve it?Thanks very much!
The text was updated successfully, but these errors were encountered: