marcellacornia / sam

Predicting Human Eye Fixations via an LSTM-based Saliency Attentive Model. IEEE Transactions on Image Processing (2018)
https://ieeexplore.ieee.org/document/8400593
MIT License
205 stars 76 forks source link

Getting this IOError #39

Closed Zifan27 closed 4 years ago

Zifan27 commented 4 years ago

(SAM) v818-0a87825a:SAM-VGG: SAM-ResNet $ python main.py test sample_images/ Using Theano backend. /Users/opt/anaconda2/envs/SAM/lib/python2.7/site-packages/keras/engine/topology.py:376: UserWarning: The regularizers property of layers/models is deprecated. Regularization losses are now managed via the losses layer/model property. warnings.warn('The regularizers property of layers/models ' Compiling SAM-ResNet Loading SAM-ResNet weights Traceback (most recent call last): File "main.py", line 108, in m.load_weights('weights/sam-resnet_salicon_weights.pkl') File "/Users/opt/anaconda2/envs/SAM/lib/python2.7/site-packages/keras/engine/topology.py", line 2695, in load_weights f = h5py.File(filepath, mode='r') File "/Users/opt/anaconda2/envs/SAM/lib/python2.7/site-packages/h5py/_hl/files.py", line 394, in init swmr=swmr) File "/Users/opt/anaconda2/envs/SAM/lib/python2.7/site-packages/h5py/_hl/files.py", line 170, in make_fid fid = h5f.open(name, flags, fapl=fapl) 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/h5f.pyx", line 85, in h5py.h5f.open IOError: Unable to open file (unable to open file: name = 'weights/sam-resnet_salicon_weights.pkl', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Zifan27 commented 4 years ago

Didn't download pretrained models