Replies: 6 comments 22 replies
-
Hi @Suchi97, This is a good question. Which App are you using? How did you get the pre-trained model? Importing pre-trained models obtained from other pipelines is something MONAI Label can be used for. My suggestion is to use the Segmentation App. Other Apps such as DeepGrow and DeepEdit have more sophisticated training loops that involved click simulation. Input tensors of these Apps have several channels as you may know: image, foreground, and background clicks. As the Segmentation App is a non-interactive model, the input tensor is only the image. The pre-trained model should be located in a folder called model inside the folder App and the .pt file should be named pretrained You should also make sure that the network architecture is the same as the pre-trained model https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/segmentation/main.py#L48 Please let us know how that goes. |
Beta Was this translation helpful? Give feedback.
-
Hi Team, We trained a model having the labels background, spleen and liver. For the training purpose, we used BTCV dataset. We are trying to use this model as a pretrained model in MONAI Label server. Here, I used the Segmentation app. To do this, we followed the below steps: Changes done in
Changes done in
These are the pretransforms which I used for training purpose. When I inferred a sample image of BTCV dataset outside MONAI Label, we got the below result From the above image, we can see that the predicted results are almost good. After training we got a mean dice of 0.93. When we used the same model in 3D Slcier, the below results are obtained. From the above image, we can see that the results are not matched correctly. Can you please help me to solve this Any suggestions is appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi @Suchi97, Thanks for your comment. It is nice to see the results you're getting. Please let us know how that goes. Thanks again!! |
Beta Was this translation helpful? Give feedback.
-
I suggest to refer latest radiology app and there segmentation model.. Similarly you can add your 3-label model into radiology app.. few things are simplified new latest main branch (which shall be released in 0.4 version) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update, @Suchi97. If you don't mind having the images upside down, you don't need to reorient them first. As @SachidanandAlle commented, all radiology apps were merged into single App. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hello! I have a similar questions. Some information about my requests: The task is to make the automated segmentation, but I can't see my target organ in default labels (rectum and colon). So, I decided to train custom model for my needs, based on Your deepedit model. I'd like to train deepedit model for several times with different volumes. As I understand, after every training session server downloading trained weights: So, the first question is: which one is needed to continue training my new model? What I already understood:
Also, that would be great, if You give me some more recommendations to simplify my work! |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
We are trying to use our trained model to predict the labels in MONAI Label via 3D Slicer. Our trained model is trained on the labels background and spleen and we are trying to use this trained model as pretrained model and then predict the spleen using MONAI Label via 3D silcer. So, this model having a mean dice of 0.95. Since this model having input channels as 1 and output channels as 2, we changed the input from 1 to 3 (background, spleen, image) and output channels to 2 (background and spleen) to match the dimensions. When I use this trained model, the prediction result looks different. Spleen organ is not correctly predicted.
So, how can we use our trained model as the pretrained model in MONAI Label which gives the same result when predicted outside the MONAI Label.
Can you help me to understand how the pretrained model used in MONAI Label is trained. Like, is the model is trained using MONAI Label via 3D Slicer or any other methods.
Any suggestions is appreciated.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions