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

run demo_vis_filter.m error #31

Open
FelixZhang00 opened this issue Mar 4, 2016 · 4 comments
Open

run demo_vis_filter.m error #31

FelixZhang00 opened this issue Mar 4, 2016 · 4 comments

Comments

@FelixZhang00
Copy link

I use Mac OS X. I want to run the mnist example, and I can train a model correctly by run demo.sh,but get error when demo_vis_filter.m in matlab:

Error using feof
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in readTensors (line 13)
while ~feof(fp)

Error in demo_vis_filter (line 11)
t=readTensors(sprintf('./filters_conv1_%d.tensor',n-1));

@FelixZhang00
Copy link
Author

And when I run ./marvin activate examples/mnist/lenet.json examples/mnist/lenet.marvin data conv1 [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] mnist/filters_ 100 20 in the terminal ,get this error:
zsh: no matches found: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]

@HKUSTmji
Copy link

HKUSTmji commented Apr 1, 2016

same problem on ubuntu, any suggestion please?

@HKUSTmji
Copy link

HKUSTmji commented Apr 4, 2016

Solved by refering the 36th slide of the Marvin tutorial: http://marvin.is/teaching
Need to run the command: ./marvin activate examples/mnist/lenet.json examples/mnist/lenet.marvin data conv1 [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] examples/mnist/filters_ 100 20
before visualize the filters~

@daikiyamanaka
Copy link

daikiyamanaka commented Jan 2, 2017

This is because square brackets in zsh has special meaning, so you have to escape them by putting \(backslash) before them like this ./marvin activate examples/mnist/lenet.json examples/mnist/lenet.marvin data conv1 \[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\] examples/mnist/filters_ 100 20.

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

3 participants