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

RuntimeWarning: invalid value encountered in divide #41

Open
cjfuture opened this issue Jun 4, 2017 · 3 comments
Open

RuntimeWarning: invalid value encountered in divide #41

cjfuture opened this issue Jun 4, 2017 · 3 comments

Comments

@cjfuture
Copy link

cjfuture commented Jun 4, 2017

log20170604h20m24.txt
Uploading log20170604h20m24.txt…

when i run the vnet training, I met the warning in the epoch:
RuntimeWarning: invalid value encountered in divide
(self.gt[i, :] * self.union[i]) / ((self.union[i]) ** 2) - 2.0prob[i,1,:](self.intersection[i]) / (
/home/jamson/3D-caffe/VNet-master/pyLayer.py:65: RuntimeWarning: invalid value encountered in divide
(self.union[i]) ** 2))
but when i print the value of (self.uniion[i])**2, it is valid.
self.union[1]**2 1240996.0
self.union[0]**2 1020100.0
after this epoch, all the loss are 0. it seems that the diff of backpropogation in that epoch result in disruption of model.
is there something wrong? how can i handle this problem?
thanks a lot

@faustomilletari
Copy link
Owner

faustomilletari commented Jun 4, 2017 via email

@faustomilletari
Copy link
Owner

faustomilletari commented Jun 6, 2017 via email

@happyzhouch
Copy link

@cjfuture Was the problem solved? Can you tell me how to solve it ?

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