PrincetonVision / marvin

Marvin: A Minimalist GPU-only N-Dimensional ConvNets Framework
MIT License
421 stars 137 forks source link

run demo_vis_filter.m error #31

Open FelixZhang00 opened 8 years ago

FelixZhang00 commented 8 years ago

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('./filtersconv1%d.tensor',n-1));

FelixZhang00 commented 8 years ago

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 commented 8 years ago

same problem on ubuntu, any suggestion please?

HKUSTmji commented 8 years ago

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 commented 7 years ago

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.