Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix_map = scipy.io.loadmat(path)["I"] KeyError: 'I' #15

Closed
ghost opened this issue Oct 16, 2018 · 13 comments
Closed

fix_map = scipy.io.loadmat(path)["I"] KeyError: 'I' #15

ghost opened this issue Oct 16, 2018 · 13 comments

Comments

@ghost
Copy link

ghost commented Oct 16, 2018

fix_map = scipy.io.loadmat(path)["I"]
KeyError: 'I'
please help me,thanks

@marcellacornia
Copy link
Owner

Hi @chenbolinstudent,
thanks for downloading our code.

The data loading functions are compatible with the original release of the SALICON dataset. Which dataset are you using?

@ghost
Copy link
Author

ghost commented Oct 16, 2018

I use the SALICON

@ghost
Copy link
Author

ghost commented Oct 16, 2018

my configure is cuda9,python2.7,keras=1.1.0,theano=1.0.3,it that any configure require?thanks

@ghost
Copy link
Author

ghost commented Oct 16, 2018

I do not know the function of ["I"] in the scipy

@marcellacornia
Copy link
Owner

The ["I"] is not a function of SciPy. For the original release of the SALICON dataset, authors provided matlab files with the fixation map for each image and the ["I"] is an attribute of those matlab files.

@ghost
Copy link
Author

ghost commented Oct 16, 2018

can you give me the source of the original release of the SALICON dataset?thanks

@marcellacornia
Copy link
Owner

At the end of this page, you can find matlab files and saliency maps of the original release (i.e. the previous one) of the SALICON.

@ghost
Copy link
Author

ghost commented Oct 16, 2018

thank you very much

@ghost
Copy link
Author

ghost commented Oct 17, 2018

however,when I use the release salicon, i meet the same problem:
fix_map = scipy.io.loadmat(path)["I"]
KeyError: 'I'

@eleboss
Copy link

eleboss commented Nov 6, 2018

@chenbolinstudent Hi!
There is an old issue talked about this problem: link

Following this modification, you can avoid this problem.

While for me, my loss started from about 180 and suddenly jumped to nan (seems it will never back).

@marcellacornia Could you give us an intro about how to train correctly?
Many thanks!

@plin24
Copy link

plin24 commented Nov 21, 2018

@eleboss Hi! I'm also experiencing a sudden drop to nan for loss. Did you figure out anything?

@eleboss
Copy link

eleboss commented Nov 21, 2018

@plin24
Sorry, seems everyone experienced the same issue.
I am waiting for the answer from author.

@marcellacornia
Copy link
Owner

marcellacornia commented Nov 22, 2018

@eleboss @plin24 Hi! Thanks for downloading our code and sorry for the delay.

In our experiments, we did not notice the same behavior during training and it's difficult to understand what caused the problem.

It could be helpful to understand if a specific metric drops to nan. Note that our model is trained by using a combination of three different saliency evaluation metrics (i.e. KL-Divergence, Normalized Scanpath Saliency, and Linear Correlation Coefficient). Could you please try to train the network by using a single metric at a time as loss function?

However, if you are interested, I have released the weights of our model (the ResNet version) also on the new release of the SALICON dataset. You can find them in the Pretrained Models Section of the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants