-
Notifications
You must be signed in to change notification settings - Fork 345
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
Evaluation results are inconsistent during training and after saving the trained model #405
Comments
Hello, I've encountered the same issue. When I downloaded the author’s pre-trained weights to test on the BTCV dataset, the results were very good. However, when I used my own brain supplement dataset for training, the testing performance was very poor despite achieving high accuracy during the training process. Have you managed to resolve this issue? Looking forward to your reply. |
Hello, I have solved the issue of overly fragmented test datasets, which was mainly due to the strict requirements for sliding window inference size. You can adjust the roi_size and overlap to resolve this problem. Additionally, I found that setting include_background to False in DiceMetric during training makes the performance closer to the test performance. |
Thank you for your response. However, it seems that our issues are somewhat different. I am using SwinUNETR to train on other datasets to obtain weights, and then using the author's test.py for testing. Despite achieving an accuracy of 0.865 during training, the testing performance is not good, with many classes having a Dice score of only 0. |
I feel the same way, but I think the high Dice score during training is due to the include_background setting being set to True, which includes the background class (class 0) in the calculations, leading to a higher Dice score |
Hi. Has anyone tried this model with Brast training? I am facing a very bad Dice score nearly 0.04. I cannot get what is the reason. |
Hi MONAI Team,
First of all, thumbs up for your great work. I am facing the issue of inconsistent results of the SwinUNETR model while evaluating during the training and testing phases.
During training, I am getting good results but when I saved the pre-trained SwinUNETR model I am getting very bad results. I didn't change anything, just download your GitHub repo and trained the SwinUNETR model but the results are inconsistent. Here I am uploading the screenshots when I have trained the model for 100 epochs. Please help me to figure out the issue. Waiting for your response. Thank you in advance.
training results:
![d3ac2c7b01903615d7987a069c2c835](https://private-user-images.githubusercontent.com/154301773/396758479-641a178f-4b44-48fa-a02a-513ec84fd724.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MDM2MTIsIm5iZiI6MTczOTcwMzMxMiwicGF0aCI6Ii8xNTQzMDE3NzMvMzk2NzU4NDc5LTY0MWExNzhmLTRiNDQtNDhmYS1hMDJhLTUxM2VjODRmZDcyNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQxMDU1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYWMyZmE5YThlNDBlOTlmZTk4NWE0ODIyMjM1NGVmZGMzMzcwNmMwY2QxYzc2YmNhNGQ5MTg1ZTBjMmE3ZWI2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.aeFU1fTQmxN1iyVyadUQkUCrFTprwbxSpx5LhXUGIA4)
when I saved the pre-trained SwinUNETR model I am getting very bad results:
![d9db8c911b79b18400c2aaccba17d61](https://private-user-images.githubusercontent.com/154301773/396758501-14308d41-bc32-4cc2-8c53-d90f5027c626.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MDM2MTIsIm5iZiI6MTczOTcwMzMxMiwicGF0aCI6Ii8xNTQzMDE3NzMvMzk2NzU4NTAxLTE0MzA4ZDQxLWJjMzItNGNjMi04YzUzLWQ5MGY1MDI3YzYyNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQxMDU1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zZmE5NDliOWU5MTAyNTQ5MGJiNmViYTVhNDQ1NGFkMGY2YTJkNTc2ZmVhNWRiZTc1ZWM5ZjcxNGZlZTJhYTM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.9OjC-4n4Dr8EAiMalTqveZQJ6DB6wSkBNl7RT6lr_4w)
The text was updated successfully, but these errors were encountered: