karpathy / neuraltalk

NeuralTalk is a Python+numpy project for learning Multimodal Recurrent Neural Networks that describe images with sentences.
5.41k stars 1.32k forks source link

change in extract_features needed due to caffe update #31

Open samim23 opened 9 years ago

samim23 commented 9 years ago

This code line: features = out[net.outputs[0]].squeeze(axis=(2,3)) Has to be this in order to work with the newest caffe: features = out[net.outputs[0]]

Additionally remove this line: caffe.set_phase_test()

alyxb commented 9 years ago

+1 I had to modify extract_features.py with these changes to get it to run on latest caffe