I had countered an error as something below:
Traceback (most recent call last):
File "make_flickr_dataset.py", line 23, in
feats = cnn.get_features(annotations['image'].values)
File "/home/lei/show_and_tell.tensorflow_lei/cnn_util.py", line 80, in get_features
out = self.net.forward_all(blobs=[layers], {'data':caffe_in})
File "/home/lei/caffe/python/caffe/pycaffe.py", line 202, in _Net_forward_all
outs = self.forward(blobs=blobs, batch)
File "/home/lei/caffe/python/caffe/pycaffe.py", line 134, in _Net_forward
return {out: self.blobs[out].data for out in outputs}
File "/home/lei/caffe/python/caffe/pycaffe.py", line 134, in
return {out: self.blobs[out].data for out in outputs}
KeyError: 'fc7'
I had countered an error as something below: Traceback (most recent call last): File "make_flickr_dataset.py", line 23, in
feats = cnn.get_features(annotations['image'].values)
File "/home/lei/show_and_tell.tensorflow_lei/cnn_util.py", line 80, in get_features
out = self.net.forward_all(blobs=[layers], {'data':caffe_in})
File "/home/lei/caffe/python/caffe/pycaffe.py", line 202, in _Net_forward_all
outs = self.forward(blobs=blobs, batch)
File "/home/lei/caffe/python/caffe/pycaffe.py", line 134, in _Net_forward
return {out: self.blobs[out].data for out in outputs}
File "/home/lei/caffe/python/caffe/pycaffe.py", line 134, in
return {out: self.blobs[out].data for out in outputs}
KeyError: 'fc7'
How to fix it?