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

Problem of running the test script #4

Closed
YantianZha opened this issue Apr 11, 2018 · 3 comments
Closed

Problem of running the test script #4

YantianZha opened this issue Apr 11, 2018 · 3 comments

Comments

@YantianZha
Copy link

Hello,

I downloaded the data with the .sh downloading script you provided, I also got an nps weights file after training. When I ran the testing command I got the following error:
Traceback (most recent call last):
File "/home/research/DL/VIN/pytorch-value-iteration-networks/test.py", line 158, in
main(config)
File "/home/research/DL/VIN/pytorch-value-iteration-networks/test.py", line 85, in main
_, predictions = vin(X_in, S1_in, S2_in, config)
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 357, in call
result = self.forward(*input, **kwargs)
File "/home/research/DL/VIN/pytorch-value-iteration-networks/model.py", line 64, in forward
return logits, self.sm(logits)
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 352, in call
for hook in self._forward_pre_hooks.values():
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 398, in getattr
type(self).name, name))
AttributeError: 'Softmax' object has no attribute '_forward_pre_hooks'

Thanks for helping!

@kentsommer
Copy link
Owner

Hi @YantianZha

I'm aware of this bug and will fix it as soon as I can set aside some time (likely not until this weekend).

It is due to softmax no longer providing a default dimension. Due to how I am currently saving the weights, fixing this will require retraining. Along with the fix to this bug, I will also be updating how the weights are saved so that this type of issue can be fixed more quickly in the future.

@YantianZha
Copy link
Author

YantianZha commented Apr 11, 2018 via email

@kentsommer
Copy link
Owner

Fixed with 15fefd5

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