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

input and target size mismatch when running test.lua #46

Open
MaYB2333 opened this issue May 16, 2019 · 3 comments
Open

input and target size mismatch when running test.lua #46

MaYB2333 opened this issue May 16, 2019 · 3 comments

Comments

@MaYB2333
Copy link

Hi Dave!
Sorry to interrupt you. I wanted to run this impressive pipeline but was stuck in an error. I haven't tried to train a new network yet and all data were downloaded from your dropbox directly. But when I run basset_test.lua, it occured that:

[myb@localhost ~]$ cd ./Basset/src
[myb@localhost src]$ basset_test.lua ../data/models/pretrained_model.th ../data/encode_roadmap.h5 ../data
/home/myb/torch/install/bin/lua: /home/myb/torch/install/share/lua/5.2/nn/BCECriterion.lua:24: input and target size mismatch
stack traceback:
[C]: in function 'assert'
/home/myb/torch/install/share/lua/5.2/nn/BCECriterion.lua:24: in function </home/myb/torch/install/share/lua/5.2/nn/BCECriterion.lua:22>
(...tail calls...)
./convnet.lua:1156: in function 'test'
/home/myb/Basset/src/basset_test.lua:75: in main chunk
[C]: in function 'dofile'
.../myb/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: in ?

Would you mind telling me what may lead to it and what I should do? Thanks a lot

@davek44
Copy link
Owner

davek44 commented May 17, 2019

It looks like the sequence lengths are mismatched. What steps did you use to generate the encode_roadmap.h5 file? I just ran the steps here https://github.com/davek44/Basset/blob/master/install_data.py, and it worked for me.

@MaYB2333
Copy link
Author

Well the networks in China are isolated partly so the server can't reach dropbox, run install_data.py and download the data. So I have to download the data manually and may be the error occured. Are there some ways to get the data avoiding the dropbox?

@davek44
Copy link
Owner

davek44 commented Jun 6, 2019 via email

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