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

train image_segmentation_unet with Dice_coef_ Loss #111

Open
Defneh opened this issue Nov 24, 2024 · 0 comments
Open

train image_segmentation_unet with Dice_coef_ Loss #111

Defneh opened this issue Nov 24, 2024 · 0 comments

Comments

@Defneh
Copy link

Defneh commented Nov 24, 2024

Knowing that I am training using the 4 MRI modalities, when I use categorical cross-entropy, in your tutorial from (brain_tumor_segmentation_u_net.ipynb,) the IOU and Dice coefficients work fine. However, when I switch to Dice loss or other loss functions, the loss doesn't change and showed same metrics in all epochs.
Could you please help me figure out why?

When I print the values, I get the following:

y_batch min/max: 0.0 / 1.0
Model output (y_pred) min/max: 0.08728714 / 0.43650725
Could this discrepancy be the cause of the issue?
Thank you so much for your help

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