Skip to content

RuntimeWarning: invalid value encountered in divide #41

Description

@cjfuture

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions