-
|
Hi all, I've got a bunch of CT volumes like 512x512x301 etc. which I need to train. Despite the all my research I couldn't find any implementation of methods in order to do that. How can I train a 2D ( CT slice ) segmentation with UNet from 3D CT volume ? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Hi @Spawnfile, here are some tutorials you could refer to: These are written in terms of sampling 2D from 3D, but they can generate 3D samples as well. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, https://github.com/Project-MONAI/tutorials/blob/main/modules/2d_slices_from_3d_training.ipynb this was the tutorial I followed on my training task. I'm using a public CT dataset from kaggle for the training with MonAI. These are the transforms I'm using on patching and loading image data from nifti volume. However, when I apply I need to segmentate the covid area on images but results on test images the DICE metric does not increase properly with above transforms and patching methods after the training despite decreasing dice loss. Lastly, this is the image I'm getting after all transforms have been done. Full training code is written below to examine. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.




Hi @Spawnfile, yeah that's right. I just missed that. There is an interpolation mode used in
Resizewhich defaults is area. You need to set it to "nearest" for the label.MONAI/monai/transforms/spatial/array.py
Lines 725 to 726 in fabc198
Something like:
Thanks!