PrincetonVision / marvin

Marvin: A Minimalist GPU-only N-Dimensional ConvNets Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run demo_vis_filter.m error

FelixZhang00 opened this issue · comments

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));

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]

same problem on ubuntu, any suggestion please?

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~

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.