validation dice dropped to 0 immediately after some epochs, using 2d segmentation with dicom #1459
Replies: 1 comment 1 reply
-
Hi @esther1262, I would suggest you reduce your learning rate and try to retrain the experiments. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I want to train a 2d segmentation model on dicom images (dim 256x256). I followed the tutorial
unet_training_dict.py
. Since I imported the files as dicom, the tensor size is 256x256x1. When using the tutorial codes, I modified the partbatch_data["img"].to(device)
tobatch_data["img"].squeeze(dim=4).to(device)
for all training/validation images/labels.I tried
in_channel=1
andout_channel=1
, with sigmoid. I also triedin_channel=1
andout_channel=2
, with softmax, onehotcoding, argmax (like the one inspleen_segmentation_3d.ipynb
). But the training loss and validation dice acted weird after very certain epochs every time (can be 8, 20, 32, no more than 40). All of a sudden, the training loss increased to 0.9 and then validation dice dropped to 0.Training set = 1740 images, validation = 436.
Does it imply the model not learning after certain epochs?
Anyone knows how to fix it? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions