yosinski / deep-visualization-toolbox

DeepVis Toolbox
http://yosinski.com/deepvis
MIT License
4.02k stars 924 forks source link

live_vis.py problems expected 2 for FC or 4 for conv layer #123

Open buaa-luzhi opened 7 years ago

buaa-luzhi commented 7 years ago

Traceback (most recent call last): File "./run_toolbox.py", line 33, in main() File "./run_toolbox.py", line 23, in main lv = LiveVis(settings) File "/home/e829/deep-visualization-toolbox/live_vis.py", line 62, in init app = app_class(settings, self.bindings) File "/home/e829/deep-visualization-toolbox/caffevis/app.py", line 101, in init self._populate_net_layer_info() File "/home/e829/deep-visualization-toolbox/caffevis/app.py", line 114, in _populate_net_layer_info assert len(blob_shape) in (2,4), 'Expected either 2 for FC or 4 for conv layer' AssertionError: Expected either 2 for FC or 4 for conv layer

Who can hele me, Thank you very much!

yosinski commented 7 years ago

Try running with ipython --pdb to debug:

$ ipython --pdb -- ./run_toolbox.py

Then poke around the blob and try to figure out what's going on. (Which layer does it choke on? Is that layer FC or Conv? And what shape is the blob?)