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

How to compute the IG score of the LSUN 2016 Challenge. #2

Open
junting opened this issue Oct 19, 2016 · 2 comments
Open

How to compute the IG score of the LSUN 2016 Challenge. #2

junting opened this issue Oct 19, 2016 · 2 comments

Comments

@junting
Copy link

junting commented Oct 19, 2016

Hello @matthias-k ,

I don't really understand how you compute the information gain score as unique number for the LSUN challenge. Could please show me how to compute this score, with jupiter or a python script?

Thanks,
Junting

@matthias-k
Copy link
Owner

Hello @junting,

sorry for the long delay. For a probabilistic model (pysaliency.model) this is easy: You need a baseline model to compare to. I recommend to use a nonparametric prior model to capture the centerbias:

from pysaliency.baselines import BaselineModel
baseline = BaselineModel(stimuli, fixations, bandwidth=0.03)
ig = (my_model.log_likelihood(stimuli, fixations) - baseline.log_likelihood(stimuli, fixations))/np.log(2)

I divide by log(2) to get a number in bits/fixation instead of nats/fixation.

If don't have a probabilistic saliency model, you first have to convert the model to a probabilistic model. If this is the case let me know, then I will give you more details on how we did this for this years LSUN challenge.

@ManooshSamiei
Copy link

Hello @junting,

sorry for the long delay. For a probabilistic model (pysaliency.model) this is easy: You need a baseline model to compare to. I recommend to use a nonparametric prior model to capture the centerbias:

from pysaliency.baselines import BaselineModel
baseline = BaselineModel(stimuli, fixations, bandwidth=0.03)
ig = (my_model.log_likelihood(stimuli, fixations) - baseline.log_likelihood(stimuli, fixations))/np.log(2)

I divide by log(2) to get a number in bits/fixation instead of nats/fixation.

If don't have a probabilistic saliency model, you first have to convert the model to a probabilistic model. If this is the case let me know, then I will give you more details on how we did this for this years LSUN challenge.

Hello, would you please include the instructions on how to convert our model to a probabilistic model?
When I use your code, I encounter the error : 'SaliencyMapModelFromDirectory' object has no attribute 'log_likelihood'

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