graphific / DL-Meetup-intro

Code for participants of "NLP and Deep Learning: introduction - Session I" at Sthlm NLP Meetup of 22 Jan 2015
GNU General Public License v2.0
38 stars 12 forks source link

ipython notebook crashes at line caffe.Classifier #2

Open nageshkuba opened 9 years ago

nageshkuba commented 9 years ago

I tried to run PyConSe15-cat-vs-dog iPython notebook, but the following line crashes the notebook(The kernel appears to have died. It will restart automatically.): net = caffe.Classifier(MODEL_FILE, PRETRAINED, mean=np.load(caffe_root + 'python/caffe/imagenet/ilsvrc_2012_mean.npy').mean(1).mean(1), channel_swap=(2,1,0), raw_scale=255, image_dims=(256, 256))

Am I doing something wrong here? I have set up Caffe, CUDA and all the prerequisites mentioned in the notebook.

graphific commented 9 years ago

ipython notebooks can be notoriously hard to debug: they tend to just crash with that exact error. You might try to run the same code in the ipython shell to find out more about the exact error. so terminal > ipython