-
I would like to create a pipeline that the first stage uses hovernet from https://github.com/Project-MONAI/MONAILabel/tree/0.7.0/sample-apps/pathology to get segmentation result, and then in the second stage, I need the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @hubutui, This is a great question. Once you create the infer and train files for each of the stages, you should create an infer file for this pipeline. Here is an example of a pipeline we did for vertebra segmentation: https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/radiology/lib/infers/vertebra_pipeline.py#L135 That pipeline has 3 stages. Here is another example of a 2-stages approach: https://github.com/Project-MONAI/MONAILabel/blob/KidneyMultiStage/sample-apps/radiology/lib/infers/kidney_pipeline.py Hope this serves as an inspiration for a pipeline in pathology app |
Beta Was this translation helpful? Give feedback.
-
Thanks, @diazandr3s. I got an example and found I just need to rewrite |
Beta Was this translation helpful? Give feedback.
-
Superb! Glad to hear this. |
Beta Was this translation helpful? Give feedback.
Thanks, @diazandr3s. I got an example and found I just need to rewrite
writer()
method to return the data I need when the InferTask is inpipeline_mode
. https://github.com/dgmato/MONAILabel/blob/fee2f92d3e9c51a8a7acf11a288d66cf6805801b/sample-apps/radiology/lib/infers/segmentation_teeth.py#L112-L114