File "/home/hzhou/anaconda3/envs/py35/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2961, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('/home/hzhou/code_More/show_attend_and_tell_p1_2/make_flickr_dataset.py', wdir='/home/hzhou/code_More/show_attend_and_tell_p1_2')
File "/home/hzhou/zhoueheng/pycharm-2018.2.4/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/home/hzhou/zhoueheng/pycharm-2018.2.4/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/hzhou/code_More/show_attend_and_tell_p1_2/make_flickr_dataset.py", line 30, in
feats = cnn.get_features(unique_images, layers='conv5_3', layer_sizes=[512,14,14])
File "/home/hzhou/code_More/show_attend_and_tell_p1_2/cnn_util.py", line 72, in get_features
caffe_in = np.zeros(np.array(image_batch.shape)[[0,3,1,2]], dtype=np.float32)
IndexError: index 0 is out of bounds for axis 1 with size 0