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

医学图像 #5

Open
Saillxl opened this issue Aug 26, 2024 · 7 comments
Open

医学图像 #5

Saillxl opened this issue Aug 26, 2024 · 7 comments

Comments

@Saillxl
Copy link

Saillxl commented Aug 26, 2024

感谢作者的开源代码:我运行了2分类的2D医学图像数据集,训练集大概两三百张,eval.py的结果很差:mDice: 0.168;mIoU: 0.111。请问有人知道原因吗?

@xiongxyowo
Copy link
Collaborator

Hi, is the dataset publicly available? If so, you can provide the dataset name so we can try to verify it. It is worth noting that you may need to adjust the loss function for segmentation tasks with num_class >= 2 (a cross entropy should be fine). Additionally, eval.py and test.py is designed for binary segmentation only. You need to use your own scripts for some customized datasets.

@Saillxl
Copy link
Author

Saillxl commented Aug 26, 2024

Thank you for your prompt reply, here is the download link:https://scholar.cu.edu.eg/?q=afahmy/pages/dataset

@xiongxyowo
Copy link
Collaborator

Hello, we just trained on BUSI and the results don't seem to be bad. We randomly selected 80% of benign and malignant for training and 20% for testing. Note that we did not use the normal subset for testing, as negative samples may be harmful to the metric calculation (easily 0). Maybe you could try expanding your training set.

@Saillxl
Copy link
Author

Saillxl commented Aug 27, 2024

Thanks to the author, what is the hyperparameter you set? The highest mice I tried was 0.44

@xiongxyowo
Copy link
Collaborator

We used the default training hyperparameter in the code.

@Saillxl
Copy link
Author

Saillxl commented Aug 27, 2024

ok, thank you for your patience!

@hczyni
Copy link

hczyni commented Sep 27, 2024

感谢作者的开源代码:我运行了2分类的2D医学图像数据集,训练集大概两三百张,eval.py的结果很差:mDice: 0.168;mIoU: 0.111。请问有人知道原因吗?
Dear AI Engineer, how can I calculate evaluation metrics such as Dice, IOU, and HD? Could you provide me with some code? I found some code online regarding this topic, but I encountered some issues when running it. I would greatly appreciate it if you could share your code for these metrics! Thank you very much!

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