iamaaditya / VQA_Demo

Visual Question Answering Demo on pretrained model
http://iamaaditya.github.io/2016/04/visual_question_answering_demo_notebook
MIT License
242 stars 133 forks source link

KeyError: 'Unable to open object (bad symbol table node signature)' #17

Closed anurgsrivastava closed 6 years ago

anurgsrivastava commented 6 years ago

Loading image features ... Traceback (most recent call last): File "demo.py", line 117, in main() File "demo.py", line 95, in main image_features = get_image_features(args.image_file_name, CNN_weights_file_name) File "demo.py", line 58, in get_image_features image_features[0,:] = get_image_model(CNN_weights_file_name).predict(im)[0] File "demo.py", line 23, in get_image_model image_model = VGG_16(CNN_weights_file_name) File "/home/anurag/Desktop/VQA_Demo/models/CNN/VGG.py", line 101, in VGG_16 load_model_legacy(model, weights_path) File "/home/anurag/Desktop/VQA_Demo/models/CNN/VGG.py", line 41, in load_modellegacy g = f['layer{}'.format(k)] File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "/home/anurag/.local/lib/python3.6/site-packages/h5py/_hl/group.py", line 167, in getitem oid = h5o.open(self.id, self._e(name), lapl=self._lapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5o.pyx", line 190, in h5py.h5o.open

What should I do to resolve this error? Please help

iamaaditya commented 6 years ago

Do a git pull origin master. I have pushed the new weights, that should load.

Dishank99 commented 3 years ago

Hi, even i had the same error. I did pull from your repo. But i am still getting the error..Please help