Operating system: macOS M1
Slicer version: 5.0.2
Expected behavior:
Actual behavior:
Hello,
I am completely new to the 3D slicer.
I have my deep learning model coded in python and my dataset ready. I want to deploy it in 3D Slicer and generate outputs.
What is the process or commands? Any links to follow the procedure are appreciated.
Thank you.
pieper
(Steve Pieper (Isomics, Inc.))
July 18, 2022, 6:31pm
2
You can start by watching this recent webinar and reading up on the topics discussed. You can follow up with specific questions here:
lassoan
(Andras Lasso)
July 18, 2022, 11:00pm
3
If you don’t use MONAI then you can find a complete example that brings a Pytorch-based model into Slicer:
import logging
import os
import vtk
import slicer
from slicer.ScriptedLoadableModule import *
from slicer.util import VTKObservationMixin
#
# HDBrainExtractionTool
#
class HDBrainExtractionTool(ScriptedLoadableModule):
"""Uses ScriptedLoadableModule base class, available at:
https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedLoadableModule.py
"""
def __init__(self, parent):
This file has been truncated. show original
The module installs pytorch, installs the deep learning based segmentation tool, downloads the model, and displays GUI for specifying inputs and outputs for the model.