MedicalNet icon indicating copy to clipboard operation
MedicalNet copied to clipboard

Test after training leads to 0.0 dice

Open pervinh opened this issue 5 years ago • 11 comments

I trained my model for 2000 epochs. Loss value decreased with every batch. However when i use test.py with the same training data, i obtain 0.0 dice.

mean dice for class-1 is 0.0 mean dice for class-2 is 0.0

What could be the reason for this?

pervinh avatar Sep 02 '19 12:09 pervinh

i found the pre-processing step may cause this problem

Dylanself123 avatar Sep 09 '19 01:09 Dylanself123

@Dylanself123 is it the normalization step in brain18.py?

pervinh avatar Sep 09 '19 13:09 pervinh

Hi,Have you resolve this problem? I have the same problem.

Yufengevan avatar Sep 11 '19 08:09 Yufengevan

@Dylanself123 is it the normalization step in brain18.py?

The crop step, leading the input images different between training and test. U can check the training_data_process and testing_data_process

Dylanself123 avatar Sep 12 '19 00:09 Dylanself123

Did you solve the problem? I have the same problem here, very confused.

infinite-tao avatar Nov 12 '19 13:11 infinite-tao

@Dylanself123 is it the normalization step in brain18.py?

The crop step, leading the input images different between training and test. U can check the training_data_process and testing_data_process

Did you solve the problem? I have the same problem here, very confused.

nuist-xinyu avatar Nov 26 '19 06:11 nuist-xinyu

Thanks! I tried skipping the data processing,the training process is normal, loss is always falling, but the test is very unstable (sometimes dice = 0.2, sometimes dice = 0). Maybe I have another problem here.

Well happy every day!

On 11/26/2019 14:07,nuist-xinyu[email protected] wrote:

@Dylanself123 is it the normalization step in brain18.py?

The crop step, leading the input images different between training and test. U can check the training_data_process and testing_data_process

Did you solve the problem? I have the same problem here, very confused.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

infinite-tao avatar Nov 26 '19 08:11 infinite-tao

Thanks! I tried skipping the data processing,the training process is normal, loss is always falling, but the test is very unstable (sometimes dice = 0.2, sometimes dice = 0). Maybe I have another problem here. Well happy every day! On 11/26/2019 14:07,nuist-xinyu[email protected] wrote: @Dylanself123 is it the normalization step in brain18.py? The crop step, leading the input images different between training and test. U can check the training_data_process and testing_data_process Did you solve the problem? I have the same problem here, very confused. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks! I tried skipping the data processing,the training process is normal, loss is always falling, but the test is very unstable (sometimes dice = 0.2, sometimes dice = 0). Maybe I have another problem here. Well happy every day! On 11/26/2019 14:07,nuist-xinyu[email protected] wrote: @Dylanself123 is it the normalization step in brain18.py? The crop step, leading the input images different between training and test. U can check the training_data_process and testing_data_process Did you solve the problem? I have the same problem here, very confused. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Hello, thank you for your reply. I have recently used 3D segmentation to use this model, There are two types of goals I segmented,but when I tested, there was only one label and no other. How can I solve this problem, this problem has troubled me for a long time

Well happy every day!

nuist-xinyu avatar Nov 26 '19 11:11 nuist-xinyu

Did you solve the problem? I have the same problem here, very confused.

when I use my own dataset as the test ,the dice=0 .Do you kown how to solve it?

wangm-ting avatar Jul 18 '21 10:07 wangm-ting

Did you solve the problem? I have the same problem here, very confused.

when I use my own dataset as the test ,the dice=0 .Do you kown how to solve it?

Do you solve it now?

lander1003 avatar Sep 27 '22 02:09 lander1003

Thanks! I tried skipping the data processing,the training process is normal, loss is always falling, but the test is very unstable (sometimes dice = 0.2, sometimes dice = 0). Maybe I have another problem here. Well happy every day! On 11/26/2019 14:07,nuist-xinyu[email protected] wrote: @Dylanself123 is it the normalization step in brain18.py? The crop step, leading the input images different between training and test. U can check the training_data_process and testing_data_process Did you solve the problem? I have the same problem here, very confused. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Did you solve it ?

lander1003 avatar Sep 28 '22 07:09 lander1003