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

Add OpenVINO model inference when models are run on CPU #72

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MONAIAuto3DSeg/MONAIAuto3DSeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ def setupPythonRequirements(self, upgrade=False):
if upgrade:
monaiInstallString += " --upgrade"
slicer.util.pip_install(monaiInstallString)
slicer.util.pip_install("openvino")

self.dependenciesInstalled = True
self.log("Dependencies are set up successfully.")
Expand Down
102 changes: 51 additions & 51 deletions MONAIAuto3DSeg/Resources/Models.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-organs-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-organs-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 64.6,
Expand Down Expand Up @@ -53,7 +53,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-organs-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-organs-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 95.3,
Expand Down Expand Up @@ -95,7 +95,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/body-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/body-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 37.6,
Expand All @@ -116,7 +116,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/body-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/body-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 40.7,
Expand All @@ -137,10 +137,10 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/vertebrae-3mm-v2.0.1.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/vertebrae-3mm-v2.0.1.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/vertebrae-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/vertebrae-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 41.0,
Expand Down Expand Up @@ -185,10 +185,10 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/vertebrae-v2.0.1.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/vertebrae-v2.0.1.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/vertebrae-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/vertebrae-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 62.4,
Expand Down Expand Up @@ -233,13 +233,13 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/mediastinal-anatomy-v2.0.2.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/mediastinal-anatomy-v2.0.2.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/mediastinal-anatomy-v2.0.1.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/mediastinal-anatomy-v2.0.1.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/mediastinal-anatomy-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/mediastinal-anatomy-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 109.1,
Expand Down Expand Up @@ -281,7 +281,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/mediastinal-anatomy-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/mediastinal-anatomy-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 45.3,
Expand Down Expand Up @@ -325,7 +325,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/whole-head-05mm-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/whole-head-05mm-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 64.6,
Expand Down Expand Up @@ -358,7 +358,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/whole-head-1mm-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/whole-head-1mm-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 30,
Expand Down Expand Up @@ -386,10 +386,10 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-v1.0.1.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-v1.0.1.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 201.9,
Expand Down Expand Up @@ -512,7 +512,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-3mm-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-3mm-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 82.3,
Expand Down Expand Up @@ -634,10 +634,10 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-v2.0.1.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-v2.0.1.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 49.5,
Expand Down Expand Up @@ -773,7 +773,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/whole-body-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 74.5,
Expand Down Expand Up @@ -909,19 +909,19 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.4.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.4.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.3.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.3.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.2.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.2.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.1.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.1.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/abdominal-17-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 83.5,
Expand Down Expand Up @@ -968,10 +968,10 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/prostate-v1.0.1.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/prostate-v1.0.1.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/prostate-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/prostate-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 30.8,
Expand All @@ -992,7 +992,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/ribs-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/ribs-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 45.5,
Expand Down Expand Up @@ -1037,7 +1037,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/ribs-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/ribs-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 66.2,
Expand Down Expand Up @@ -1082,7 +1082,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/muscles-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/muscles-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 60.5,
Expand Down Expand Up @@ -1124,7 +1124,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/muscles-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/muscles-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 88.5,
Expand Down Expand Up @@ -1166,7 +1166,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/cardiac-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/cardiac-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 42.9,
Expand Down Expand Up @@ -1203,7 +1203,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/cardiac-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/cardiac-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 95.6,
Expand Down Expand Up @@ -1240,7 +1240,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-3mm-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-3mm-v2.0.0.zip"
}
],
"segmentationTimeSecGPU": 37.5,
Expand All @@ -1266,19 +1266,19 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v2.0.1.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v2.0.1.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v2.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v2.0.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v1.2.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v1.2.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v1.1.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v1.1.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/lungs-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 25.5,
Expand Down Expand Up @@ -1306,13 +1306,13 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/hips-and-spine-v1.2.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/hips-and-spine-v1.2.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/hips-and-spine-v1.1.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/hips-and-spine-v1.1.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/hips-and-spine-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/hips-and-spine-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 86.9,
Expand Down Expand Up @@ -1358,10 +1358,10 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/aorta-v1.1.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/aorta-v1.1.0.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/aorta-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/aorta-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 60.0,
Expand All @@ -1381,7 +1381,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/icrh-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/icrh-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 21.7,
Expand All @@ -1407,7 +1407,7 @@
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/anatomy_and_icrh-v1.0.1.zip"
},
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/anatomy_and_icrh-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/anatomy_and_icrh-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 40.1,
Expand Down Expand Up @@ -1459,7 +1459,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/brats-gli-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/brats-gli-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 32.4,
Expand Down Expand Up @@ -1499,7 +1499,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/brats-men-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/brats-men-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 36.2,
Expand Down Expand Up @@ -1539,7 +1539,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/brats-met-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/brats-met-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 39.5,
Expand Down Expand Up @@ -1579,7 +1579,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/brats-ped-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/brats-ped-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 42.0,
Expand Down Expand Up @@ -1619,7 +1619,7 @@
],
"versions": [
{
"url": "https://github.com/lassoan/SlicerMONAIAuto3DSeg/releases/download/Models/brats-ssa-v1.0.0.zip"
"url": "https://github.com/surajpaib/SlicerMONAIAuto3DSeg/releases/download/Models/brats-ssa-v1.0.0.zip"
}
],
"segmentationTimeSecGPU": 43.2,
Expand Down
Loading