To turn pretrained Auto3dseg segresnet model into a MONAI Label custom app #6516
Replies: 2 comments 3 replies
-
Hi @Hirriririir, thanks for your interest here. |
Beta Was this translation helpful? Give feedback.
-
Hi @Hirriririir, I'm glad you found Segresnet model useful! Try these debugging steps.
set correct path to "segmenter.py" (that you used for training) and the path to "hyper_parameters.yaml" (default is in configs folder). And in your "datalist.json" file with a list of training images, add a new key "testing" with a list of images to run inference on (same structure as training set, but only the "image" key is necessary) this will run inference and save the result .nii.gz files in the "predictions" folder.
with 2 lines
you can find intensity_bounds values in hyper_parameters.yaml (they were auto detected) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Great toolkits first. I have trained a segmentation model for thigh muscles using the Auto3dseg pipeline. The segresnet model turned out to perform the best compared to the other three algorithms. However, I don't want to use the ensemble model because it appears larger than I need. Therefore, I want to add my pretrained segresnet model into Monai Label.
I have referenced the [MONAI Label Radiology App - OHIF Spleen Segmentation Example] tutorial to start the Monai Label service. Additionally, I used the README.md file called [DeepLearning models for Radiology use-case(s)] in the Radiology app to build a thigh muscle app based on the code provided by the spleen seg app and the segmenter.py provided by Auto3dseg/segresnet_0/scripts.
The model is perfect and the Monai Label server indeed ran successfully in 3D Slicer (
monailabel start_server --app apps/radiology --studies datasets/Thigh_muscles --conf models segmentation_muscle --conf skip_trainers true
),but the results are not as expected. I believe this might be caused by the wrong transforms I configured in the apps/radiology/lib/configs/segmentation_muscle.py and apps/radiology/lib/infers/segmentation_muscle.py.Could you please help me? Thank you!
I attached my Auto3dseg segresnet config files as below:
[Auto3dseg segresnet] training.log
[Auto3dseg segresnet] hyper_parameters.yaml.txt
Monai label configs: segmentation_muscle.py
Monai label infer: segmentation_muscle.py
Beta Was this translation helpful? Give feedback.
All reactions