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

recurrent-visual-attention.lua issue #30

Closed
northeastsquare opened this issue Sep 7, 2015 · 3 comments
Closed

recurrent-visual-attention.lua issue #30

northeastsquare opened this issue Sep 7, 2015 · 3 comments

Comments

@northeastsquare
Copy link

Hello, thank you for great project!
After I trained a model using recurrent-visual-attention.lua ,

  1. How do I use the model to get a picture's visual attention?
  2. When I ran:
    th recurrent-visual-attention.lua --cuda --xpPath /home/silva/save/silva-XPS-8300:1441270258:1.dat
    I got the following error:
    /home/silva/torch/install/bin/luajit: /home/silva/torch/install/share/lua/5.1/torch/File.lua:262: unknown Torch class <optim.ConfusionMatrix>
    stack traceback:
    [C]: in function 'error'
    /home/silva/torch/install/bin/luajit: /home/silva/torch/install/share/lua/5.1/torch/File.lua:262: unknown Torch class <optim.ConfusionMatrix>
@northeastsquare
Copy link
Author

This is caused by: torch.load(xpfile)
How to solve?

@nicholas-leonard
Copy link
Member

This should be fixed in latest rnn version (re-install it). However, you won't be able to retrain existing saved models using xpPath. For loading the model, you can still use the logic used by xpPath (it was just missing a require 'optim')

@northeastsquare
Copy link
Author

Thank you, require 'optim' fix it. But how can I use the trained module to get a picture's visual attention?

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