jazzsaxmafia / show_and_tell.tensorflow

BSD 2-Clause "Simplified" License
291 stars 92 forks source link

KeyError: 'fc7' while running make_flickr_dataset.py #23

Closed JamesLee789 closed 3 years ago

JamesLee789 commented 6 years ago

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?