Skip to content

Commit 0444d4d

Browse files
authored
Bump numpy >= 1.20 to avoid MKL error, and add --upgrade for pip install monai-deploy-app-sdk (#211)
Signed-off-by: mmelqin <mingmelvinq@nvidia.com>
1 parent 8085a4b commit 0444d4d

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

examples/apps/ai_livertumor_seg_app/livertumor_seg_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@md.input("image", Image, IOType.IN_MEMORY)
3535
@md.output("seg_image", Image, IOType.IN_MEMORY)
3636
@md.output("saved_images_folder", DataPath, IOType.DISK)
37-
@md.env(pip_packages=["monai==0.6.0", "torch>=1.5", "numpy>=1.17", "nibabel"])
37+
@md.env(pip_packages=["monai==0.6.0", "torch>=1.5", "numpy>=1.20", "nibabel"])
3838
class LiverTumorSegOperator(Operator):
3939
"""Performs liver and tumor segmentation using a DL model with an image converted from a DICOM CT series.
4040

examples/apps/ai_spleen_seg_app/spleen_seg_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
@md.input("image", Image, IOType.IN_MEMORY)
3636
@md.output("seg_image", Image, IOType.IN_MEMORY)
37-
@md.env(pip_packages=["monai==0.6.0", "torch>=1.5", "numpy>=1.17", "nibabel"])
37+
@md.env(pip_packages=["monai==0.6.0", "torch>=1.5", "numpy>=1.20", "nibabel"])
3838
class SpleenSegOperator(Operator):
3939
"""Performs Spleen segmentation with a 3D image converted from a DICOM CT series.
4040

examples/apps/ai_unetr_seg_app/unetr_seg_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
@md.input("image", Image, IOType.IN_MEMORY)
3636
@md.output("seg_image", Image, IOType.IN_MEMORY)
3737
@md.output("saved_images_folder", DataPath, IOType.DISK)
38-
@md.env(pip_packages=["monai==0.6.0", "torch>=1.5", "numpy>=1.17", "nibabel"])
38+
@md.env(pip_packages=["monai==0.6.0", "torch>=1.5", "numpy>=1.20", "nibabel"])
3939
class UnetrSegOperator(Operator):
4040
"""Performs multi-organ segmentation using UNETR model with an image converted from a DICOM CT series.
4141

examples/apps/deply_app_on_aarch64_interim.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Without using the MONAI Deploy App SDK Packager to automatically detect the depe
3131
monai>=0.6.0
3232
monai-deploy-app-sdk>=0.1.0
3333
nibabel
34-
numpy>=1.17
34+
numpy>=1.20
3535
pydicom>=1.4.2
3636
torch>=1.5
3737
```

monai/deploy/operators/monai_seg_inference_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
@md.input("image", Image, IOType.IN_MEMORY)
4343
@md.output("seg_image", Image, IOType.IN_MEMORY)
44-
@md.env(pip_packages=["monai==0.6.0", "torch>=1.5", "numpy>=1.17"])
44+
@md.env(pip_packages=["monai==0.6.0", "torch>=1.5", "numpy>=1.20"])
4545
class MonaiSegInferenceOperator(InferenceOperator):
4646
"""This segmentation operator uses MONAI transforms and Sliding Window Inference.
4747

notebooks/tutorials/03_segmentation_app.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@
9999
"# Install MONAI and other necessary image processing packages for the application\n",
100100
"!python -c \"import monai\" || pip install -q \"monai\"\n",
101101
"!python -c \"import torch\" || pip install -q \"torch>=1.5\"\n",
102-
"!python -c \"import numpy\" || pip install -q \"numpy>=1.17\"\n",
102+
"!python -c \"import numpy\" || pip install -q \"numpy>=1.20\"\n",
103103
"!python -c \"import nibabel\" || pip install -q \"nibabel>=3.2.1\"\n",
104104
"!python -c \"import pydicom\" || pip install -q \"pydicom>=1.4.2\"\n",
105105
"!python -c \"import SimpleITK\" || pip install -q \"SimpleITK>=2.0.0\"\n",
106106
"!python -c \"import typeguard\" || pip install -q \"typeguard>=2.12.1\"\n",
107107
"\n",
108108
"# Install MONAI Deploy App SDK package\n",
109-
"!python -c \"import monai.deploy\" || pip install -q \"monai-deploy-app-sdk\""
109+
"!python -c \"import monai.deploy\" || pip install --upgrade -q \"monai-deploy-app-sdk\""
110110
]
111111
},
112112
{
@@ -747,7 +747,7 @@
747747
"source": [
748748
"@md.input(\"image\", Image, IOType.IN_MEMORY)\n",
749749
"@md.output(\"seg_image\", Image, IOType.IN_MEMORY)\n",
750-
"@md.env(pip_packages=[\"monai==0.6.0\", \"torch>=1.5\", \"numpy>=1.17\", \"nibabel\"])\n",
750+
"@md.env(pip_packages=[\"monai==0.6.0\", \"torch>=1.5\", \"numpy>=1.20\", \"nibabel\"])\n",
751751
"class SpleenSegOperator(Operator):\n",
752752
" \"\"\"Performs Spleen segmentation with a 3D image converted from a DICOM CT series.\n",
753753
" \"\"\"\n",
@@ -1069,7 +1069,7 @@
10691069
"\n",
10701070
"@md.input(\"image\", Image, IOType.IN_MEMORY)\n",
10711071
"@md.output(\"seg_image\", Image, IOType.IN_MEMORY)\n",
1072-
"@md.env(pip_packages=[\"monai==0.6.0\", \"torch>=1.5\", \"numpy>=1.17\", \"nibabel\", \"typeguard\"])\n",
1072+
"@md.env(pip_packages=[\"monai==0.6.0\", \"torch>=1.5\", \"numpy>=1.20\", \"nibabel\", \"typeguard\"])\n",
10731073
"class SpleenSegOperator(Operator):\n",
10741074
" \"\"\"Performs Spleen segmentation with a 3D image converted from a DICOM CT series.\n",
10751075
" \"\"\"\n",

notebooks/tutorials/05_full_tutorial.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@
8989
"# Install MONAI and other necessary image processing packages for the application\n",
9090
"!python -c \"import monai\" || pip install -q \"monai\"\n",
9191
"!python -c \"import torch\" || pip install -q \"torch>=1.5\"\n",
92-
"!python -c \"import numpy\" || pip install -q \"numpy>=1.17\"\n",
92+
"!python -c \"import numpy\" || pip install -q \"numpy>=1.20\"\n",
9393
"!python -c \"import nibabel\" || pip install -q \"nibabel>=3.2.1\"\n",
9494
"!python -c \"import pydicom\" || pip install -q \"pydicom>=1.4.2\"\n",
9595
"!python -c \"import SimpleITK\" || pip install -q \"SimpleITK>=2.0.0\"\n",
9696
"!python -c \"import typeguard\" || pip install -q \"typeguard>=2.12.1\"\n",
9797
"!python -c \"import nilearn\" || pip install -q \"nilearn>=0.8.1\"\n",
9898
"\n",
9999
"# Install MONAI Deploy App SDK package\n",
100-
"!python -c \"import monai.deploy\" || pip install -q \"monai-deploy-app-sdk\""
100+
"!python -c \"import monai.deploy\" || pip install --upgrade -q \"monai-deploy-app-sdk\""
101101
]
102102
},
103103
{
@@ -738,7 +738,7 @@
738738
"source": [
739739
"@md.input(\"image\", Image, IOType.IN_MEMORY)\n",
740740
"@md.output(\"seg_image\", Image, IOType.IN_MEMORY)\n",
741-
"@md.env(pip_packages=[\"monai==0.6.0\", \"torch>=1.5\", \"numpy>=1.17\", \"nibabel\"])\n",
741+
"@md.env(pip_packages=[\"monai==0.6.0\", \"torch>=1.5\", \"numpy>=1.20\", \"nibabel\"])\n",
742742
"class SpleenSegOperator(Operator):\n",
743743
" \"\"\"Performs Spleen segmentation with a 3D image converted from a DICOM CT series.\n",
744744
" \"\"\"\n",
@@ -1016,7 +1016,7 @@
10161016
"\n",
10171017
"@md.input(\"image\", Image, IOType.IN_MEMORY)\n",
10181018
"@md.output(\"seg_image\", Image, IOType.IN_MEMORY)\n",
1019-
"@md.env(pip_packages=[\"monai==0.6.0\", \"torch>=1.5\", \"numpy>=1.17\", \"nibabel\", \"typeguard\"])\n",
1019+
"@md.env(pip_packages=[\"monai==0.6.0\", \"torch>=1.5\", \"numpy>=1.20\", \"nibabel\", \"typeguard\"])\n",
10201020
"class SpleenSegOperator(Operator):\n",
10211021
" \"\"\"Performs Spleen segmentation with a 3D image converted from a DICOM CT series.\n",
10221022
" \"\"\"\n",

0 commit comments

Comments
 (0)