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

negative losses #11

Open
hhjjaaa opened this issue Oct 31, 2024 · 3 comments
Open

negative losses #11

hhjjaaa opened this issue Oct 31, 2024 · 3 comments

Comments

@hhjjaaa
Copy link

hhjjaaa commented Oct 31, 2024

Hi , I am finding negative losses while training with my own dataset. I would like to ask you what causes this.
Snipaste_2024-10-31_16-21-27

@McGregorWwww
Copy link
Collaborator

Hi, sorry for the late reply, I hope you have solved the issue, mostly this is due to incorrect data processing, e.g., incorrect GT mask value. Carefully checking the data would be a possible solution.

@Flash98-cc
Copy link

hi, I conducted experiments on my other CT dataset, I got the negative loss too, but the results is good. Is there anything wrong? can you give me some advice to fix this? thanks

@McGregorWwww
Copy link
Collaborator

Hi, my previous answer was wrong; since we use -dice as a loss rather than 1-dice, a negative loss is correct; if you prefer a positive loss, you can change it to 1-dice in the loss.py file.

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