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

Abnormal results #7

Open
domadaaaa opened this issue Oct 30, 2023 · 2 comments
Open

Abnormal results #7

domadaaaa opened this issue Oct 30, 2023 · 2 comments

Comments

@domadaaaa
Copy link

my running results as followed, why dice and loss become negative and zero?

[ 0.43 mins] After 1 epochs, the Average training loss is tensor(-0.1000, device='cuda:0') and average DICE score is tensor(0.2874, device='cuda:0')
[ 0.24 mins] After 1 epochs, the Average validations loss is tensor(-1.1711e+11, device='cuda:0') and average DICE score is tensor(0.0014, device='cuda:0')
[ 0.44 mins] After 2 epochs, the Average training loss is tensor(-0.1628, device='cuda:0') and average DICE score is tensor(0.0002, device='cuda:0')
[ 0.23 mins] After 2 epochs, the Average validations loss is tensor(0., device='cuda:0') and average DICE score is tensor(0., device='cuda:0')<

@domadaaaa
Copy link
Author

Is it due to overfitting?

@domadaaaa
Copy link
Author

I print the reults of registered_image, finding that

tensor([[[[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.],
...,
[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.]],

     [[0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.],
      ...,
      [0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.]],

     [[0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.],
      ...,
      [0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.]],

     ...,

     [[0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.],
      ...,
      [0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.]],

     [[0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.],
      ...,
      [0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.]],

     [[0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.],
      ...,
      [0., 0., 0.],
      [0., 0., 0.],
      [0., 0., 0.]]]], device='cuda:0', grad_fn=<ReshapeAliasBackward0>)

all elements are zero, I use the data in this program

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

1 participant