googlenet: Resize the network's input image size

720 views
Skip to first unread message

201power

unread,
Aug 11, 2015, 2:23:56 PM8/11/15
to Caffe Users
Hi all,

I tried to use caffe for deep dream. 

I trained a googlenet using single channel gray-scale image (instead of 3 channels). 
I tried to resize the network's input image size for deep dreaming, however, I got an error:

src=net.blobs['data']
src.reshape(1,1,h,w)

h,w is the new input image size

Error:
Check failed: K_ == new_K (2048 vs 3200) Input size incompatible with inner product parameters.

However, for 3 channel image

src.reshape(1,3,h,w) worked fine. 

Any suggestions? Thanks!

201power

unread,
Aug 11, 2015, 2:49:13 PM8/11/15
to Caffe Users
The layer I used for dream is inception_4c/output
Reply all
Reply to author
Forward
0 new messages