GithubHelp home page GithubHelp logo

Comments (13)

eleboss avatar eleboss commented on May 27, 2024 1

@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!

from sam.

marcellacornia avatar marcellacornia commented on May 27, 2024

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?

from sam.

 avatar commented on May 27, 2024

I use the SALICON

from sam.

 avatar commented on May 27, 2024

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

from sam.

 avatar commented on May 27, 2024

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

from sam.

marcellacornia avatar marcellacornia commented on May 27, 2024

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.

from sam.

 avatar commented on May 27, 2024

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

from sam.

marcellacornia avatar marcellacornia commented on May 27, 2024

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.

from sam.

 avatar commented on May 27, 2024

thank you very much

from sam.

 avatar commented on May 27, 2024

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

from sam.

plin24 avatar plin24 commented on May 27, 2024

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

from sam.

eleboss avatar eleboss commented on May 27, 2024

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

from sam.

marcellacornia avatar marcellacornia commented on May 27, 2024

@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.

from sam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.