Run monailabel on my own dataset #1607
-
Hello! First of all, thank you for developing such a useful plugin as Monailabel! I'm really interested about it, and I configured my environment on Windows followed the tutorial and successfully downloaded monailabel as well as 3D slicer. Then I created my own dataset just like Task09_Spleen dataset. Due to that I have already trained my own dataset, I put the pretrained model named 'pretrained_segmentation.pt' trained by UNet into the directory 'C:\Users\TRY\apps\radiology\model', and also change the segmentation.py in ‘C:\Users\TRY\apps\radiology\lib\configs’ to fit my task. However, When I clicked the auto-segmentation button, the results is very strange unlike the results by pretrained model. Could you please tell me how to solve this problem? Thanks very much! Code: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I just found that the monailabel didn't include the ScaleIntensityRanged function which I used in the pretraining process, I guess it is the reason that the output in 3D Slicer is really strange! Could you please tell me how to add this fuction in the segmentation.py code! Thanks really much! |
Beta Was this translation helpful? Give feedback.
Hi @Yangtting,
Thanks for posting this question and updating it as well with your experience.
That's correct, the pre-processing transforms for inference can be found under the lib/infers folder. The same applies to the inferrer arguments: https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/radiology/lib/infers/segmentation.py#L77