GithubHelp home page GithubHelp logo

Comments (7)

shekkizh avatar shekkizh commented on August 22, 2024 1

Each value in the annotation image corresponds to an object in the image. NUM_OF_CLASSESS corresponds to the maximum number of objects to be annotated i.e the max. value in annotation image provided the values are continuous.

Nan can result due to several reasons. Assuming your inputs are all fine, try reducing learning rate.

from fcn.tensorflow.

jiao0805 avatar jiao0805 commented on August 22, 2024

Thank you very much
will give a try

from fcn.tensorflow.

jiao0805 avatar jiao0805 commented on August 22, 2024

I tried to reduce my learning rate but the loss still remained nan.
I turned on the debug mode and i got the following error.

InvalidArgumentError (see above for traceback): Nan in summary histogram for: inference/conv2_1_w_1
[[Node: inference/conv2_1_w_1 = HistogramSummary[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](inference/conv2_1_w_1/tag, inference/conv2_1_w/read/_107)]]

CONV2_1_W_1 is loaded from the vgg19.mat, isn't it?
Then what makes the node value nan?

from fcn.tensorflow.

shekkizh avatar shekkizh commented on August 22, 2024

Although the weights are loaded from saved file while training you are changing weights which at some point becomes nan. Try learning rates in the order of 10-7 or even smaller to verify if the problem is actually due to large loss terms.

from fcn.tensorflow.

shekkizh avatar shekkizh commented on August 22, 2024

@jiao0805 Maybe you are facing the same problem discussed in Issue #17

from fcn.tensorflow.

jiao0805 avatar jiao0805 commented on August 22, 2024

Yes I solved this problem by change the num of classes。
Thanks a lot and I will close this problem

from fcn.tensorflow.

myusernamesxy avatar myusernamesxy commented on August 22, 2024

Hi, I face the same problem with you, but I haven't solved it, may I discuss with you?

from fcn.tensorflow.

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.