duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
52 stars 19 forks source link

AttributeError when training imitation learning model #124

Closed duckieT closed 5 years ago

duckieT commented 5 years ago

After running experiments/train_imitation.py --map-name loop_obstacles, I got this error:

Traceback (most recent call last): File "experiments/train_imitation.py", line 113, in model = Model() File "experiments/train_imitation.py", line 55, in init self.apply(init_weights) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 198, in apply module.apply(fn) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 198, in apply module.apply(fn) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 199, in apply fn(self) File "/Users/angelwoo/gym-duckietown/experiments/utils.py", line 29, in initweights nn.init.orthogonal(m.weight.data) AttributeError: module 'torch.nn.init' has no attribute 'orthogonal_'

Can anyone help :(

bhairavmehta95 commented 5 years ago

What Pytorch version are you using?

bhairavmehta95 commented 5 years ago

Check #130. We're about to add some cleaner IL examples in both TF and Pytorch, so they should be more thoroughly checked than some of the old code.

Keeping open until we merge.