Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize SegmentationUNet.py #56

Open
stka85 opened this issue Feb 7, 2024 · 1 comment
Open

Customize SegmentationUNet.py #56

stka85 opened this issue Feb 7, 2024 · 1 comment

Comments

@stka85
Copy link

stka85 commented Feb 7, 2024

Hi, I am trying to run Live US Segmentation in Slicer and have customized the loading and preprocessing of the input/output image to my training net. However, the SegmentationUNet extension is no longer visible in the Slicer modules. I am using a FlexibleUNet and Pytorch (Monai Template). How can I adapt the SegmentationUNet.py so that it is available in Slicer?

@ungi
Copy link
Member

ungi commented Feb 7, 2024

Hi, we don't usually install Pytorch (or TensorFlow) in Slicer's python anymore, so there is no extension that would run an AI model in Slicer. Instead, implement a small python program that communicates with Slicer via OpenIGTLink. Here is a small example: https://github.com/SlicerIGT/aigt/blob/master/UltrasoundSegmentation/Inference/ScanConversionInference.py

I think there is a more complex example here: https://github.com/SlicerIGT/aigt/tree/master/DeepLearnLive/RunNeuralNet
This second example is a Slicer module that may start the external program for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants