Skip to content

Switching between models for automatic segmentation from command line #1494

Discussion options

You must be logged in to vote

Hi again,

I found a solution to my problem! Using the following command, you can choose the loaded model which you want to use for automatic segmentation:
slicer.modules.MONAILabelWidget.ui.segmentationModelSelector.setCurrentText()

As argument you give a string with the name of the preferred model.
For example,
slicer.modules.MONAILabelWidget.ui.segmentationModelSelector.setCurrentText("deepedit_seg")
switches the selected model to the deepedit model.

Thanks for the help!

Lukas

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lukasvanderstricht
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lukasvanderstricht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants