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_mcnet_2d.py #3

Closed
GuozhengSui opened this issue Sep 24, 2022 · 3 comments
Closed

train_mcnet_2d.py #3

GuozhengSui opened this issue Sep 24, 2022 · 3 comments

Comments

@GuozhengSui
Copy link

There are two num_classes in the CT slice of my own dataset, but these two categories will not appear in the same slice, that is, each slice only shows one category. I found that MEAN_dice and HD95 were displayed as 0 in most of the time during the training, I wonder if they are related to my dataset itself. Experiments with the ACDC dataset are fine

@ycwu1997
Copy link
Owner

This description is too abstract, and I cannot catch your main issue. Since the 2D training codes are only designed on the ACDC dataset, please carefully check the dataloader part (training/val) if you use your in-house dataset. BTW, it is extremely hard to obtain the 95HD of 0. I guess the problematic mini-batch of your data does not contain any foregrounds. Please check them as a reference.

@GuozhengSui
Copy link
Author

Thanks for the answer. I'll check back. Do you have a program on how to preprocess CT images? My data are CT images in DICOM format, so I don't know how to preprocess them. I don't use Nnunet method very well.

@ycwu1997
Copy link
Owner

You can check the data processing codes on the Pancreas-CT dataset (https://github.com/ycwu1997/MC-Net/blob/main/data/Pancreas/Pre-processing.ipynb) as a reference. Read the data, crop via a HU window (according to the target itself), and then do the normalization. You can customize your pre-processing part according to the nnUNet repo. Thanks.

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

2 participants