Comments (7)
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.
Thank you very much
will give a try
from fcn.tensorflow.
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.
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.
@jiao0805 Maybe you are facing the same problem discussed in Issue #17
from fcn.tensorflow.
Yes I solved this problem by change the num of classes。
Thanks a lot and I will close this problem
from fcn.tensorflow.
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)
- Why not implement batch normalization?
- Questions about training
- Expected string passed to parameter 'tag' of op 'ImageSummary', got 'input_image_1' of type 'str' instead. HOT 1
- run FCN.py , path wrong HOT 1
- is fusion operation the same as the paper?
- 为什么没有把pool5的结果和最后结果上采样做差值,我看代码只做了pool4和pool3的结果 HOT 1
- 论文中是说最后输入1000张特征图,取1000张特征图中的各像素最大值,为啥这个代码要用3通道呢 HOT 2
- KeyError: 'normalization' HOT 1
- Train the model for face parsing problem HOT 2
- how to train my own dataset?
- Training problem HOT 1
- What is output node's name? HOT 1
- Is anyone could share the trained ckpt???thanks!!!!
- ValueError: Cannot feed value of shape (2, 227, 227, 1, 4) for Tensor 'annotation:0', which has shape '(?, 227, 227, 1)' HOT 2
- Can I use FCN on Windows 10?
- 'NoneType' object is not subscriptable
- i made a reimplement with tensorflow2 HOT 3
- ValueError: Unknown mat file type, version 110, 116 HOT 2
- Logging and Visualizing Training Metrics on Tensorboard
- Implementing GradCam HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcn.tensorflow.