Skip to content

Commit eb6851a

Browse files
committed
[DLMED] update monai and pytorch version
1 parent bee6fb9 commit eb6851a

18 files changed

+169
-175
lines changed

3d_image_transforms.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@
7575
"name": "stdout",
7676
"output_type": "stream",
7777
"text": [
78-
"MONAI version: 0.1.0+317.g031c133.dirty\n",
78+
"MONAI version: 0.2.0\n",
7979
"Python version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]\n",
8080
"Numpy version: 1.18.1\n",
8181
"Pytorch version: 1.6.0\n",
8282
"\n",
8383
"Optional dependencies:\n",
84-
"Pytorch Ignite version: 0.3.0\n",
85-
"Nibabel version: 3.0.1\n",
84+
"Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.\n",
85+
"Nibabel version: 3.1.1\n",
8686
"scikit-image version: 0.15.0\n",
87-
"Pillow version: 7.0.0\n",
87+
"Pillow version: 7.2.0\n",
8888
"Tensorboard version: 2.1.0\n",
8989
"\n",
9090
"For details about installing the optional dependencies, please visit:\n",

automatic_mixed_precision.ipynb

Lines changed: 73 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -19,47 +19,6 @@
1919
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Project-MONAI/MONAI/blob/master/examples/notebooks/automatic_mixed_precision.ipynb)"
2020
]
2121
},
22-
{
23-
"cell_type": "code",
24-
"execution_count": 1,
25-
"metadata": {},
26-
"outputs": [],
27-
"source": [
28-
"# Copyright 2020 MONAI Consortium\n",
29-
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
30-
"# you may not use this file except in compliance with the License.\n",
31-
"# You may obtain a copy of the License at\n",
32-
"# http://www.apache.org/licenses/LICENSE-2.0\n",
33-
"# Unless required by applicable law or agreed to in writing, software\n",
34-
"# distributed under the License is distributed on an \"AS IS\" BASIS,\n",
35-
"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
36-
"# See the License for the specific language governing permissions and\n",
37-
"# limitations under the License.\n",
38-
"\n",
39-
"import os\n",
40-
"import glob\n",
41-
"import time\n",
42-
"import numpy as np\n",
43-
"import torch\n",
44-
"from torch.utils.data import DataLoader\n",
45-
"import matplotlib.pyplot as plt\n",
46-
"\n",
47-
"from monai.config import get_torch_version_tuple\n",
48-
"from monai.data import Dataset, CacheDataset, list_data_collate\n",
49-
"from monai.transforms import \\\n",
50-
" Compose, LoadNiftid, AddChanneld, ScaleIntensityRanged, CropForegroundd, \\\n",
51-
" RandCropByPosNegLabeld, RandAffined, Spacingd, Orientationd, ToTensord\n",
52-
"from monai.inferers import sliding_window_inference\n",
53-
"from monai.networks.layers import Norm\n",
54-
"from monai.networks.nets import UNet\n",
55-
"from monai.losses import DiceLoss\n",
56-
"from monai.metrics import compute_meandice\n",
57-
"from monai.utils import set_determinism\n",
58-
"\n",
59-
"if get_torch_version_tuple() < (1, 6):\n",
60-
" raise RuntimeError('AMP feature only exists in PyTorch version greater than v1.6.')"
61-
]
62-
},
6322
{
6423
"cell_type": "markdown",
6524
"metadata": {},
@@ -102,6 +61,79 @@
10261
"%matplotlib inline"
10362
]
10463
},
64+
{
65+
"cell_type": "markdown",
66+
"metadata": {},
67+
"source": [
68+
"## Setup imports"
69+
]
70+
},
71+
{
72+
"cell_type": "code",
73+
"execution_count": 2,
74+
"metadata": {},
75+
"outputs": [
76+
{
77+
"name": "stdout",
78+
"output_type": "stream",
79+
"text": [
80+
"MONAI version: 0.2.0\n",
81+
"Python version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]\n",
82+
"Numpy version: 1.18.1\n",
83+
"Pytorch version: 1.6.0\n",
84+
"\n",
85+
"Optional dependencies:\n",
86+
"Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.\n",
87+
"Nibabel version: 3.1.1\n",
88+
"scikit-image version: 0.15.0\n",
89+
"Pillow version: 7.2.0\n",
90+
"Tensorboard version: 2.1.0\n",
91+
"\n",
92+
"For details about installing the optional dependencies, please visit:\n",
93+
" https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies\n",
94+
"\n"
95+
]
96+
}
97+
],
98+
"source": [
99+
"# Copyright 2020 MONAI Consortium\n",
100+
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
101+
"# you may not use this file except in compliance with the License.\n",
102+
"# You may obtain a copy of the License at\n",
103+
"# http://www.apache.org/licenses/LICENSE-2.0\n",
104+
"# Unless required by applicable law or agreed to in writing, software\n",
105+
"# distributed under the License is distributed on an \"AS IS\" BASIS,\n",
106+
"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
107+
"# See the License for the specific language governing permissions and\n",
108+
"# limitations under the License.\n",
109+
"\n",
110+
"import os\n",
111+
"import glob\n",
112+
"import time\n",
113+
"import numpy as np\n",
114+
"import torch\n",
115+
"from torch.utils.data import DataLoader\n",
116+
"import matplotlib.pyplot as plt\n",
117+
"\n",
118+
"from monai.config import get_torch_version_tuple\n",
119+
"from monai.data import Dataset, CacheDataset, list_data_collate\n",
120+
"from monai.transforms import \\\n",
121+
" Compose, LoadNiftid, AddChanneld, ScaleIntensityRanged, CropForegroundd, \\\n",
122+
" RandCropByPosNegLabeld, RandAffined, Spacingd, Orientationd, ToTensord\n",
123+
"from monai.inferers import sliding_window_inference\n",
124+
"from monai.networks.layers import Norm\n",
125+
"from monai.networks.nets import UNet\n",
126+
"from monai.losses import DiceLoss\n",
127+
"from monai.metrics import compute_meandice\n",
128+
"from monai.utils import set_determinism\n",
129+
"from monai.config import print_config\n",
130+
"\n",
131+
"print_config()\n",
132+
"\n",
133+
"if get_torch_version_tuple() < (1, 6):\n",
134+
" raise RuntimeError('AMP feature only exists in PyTorch version greater than v1.6.')"
135+
]
136+
},
105137
{
106138
"cell_type": "markdown",
107139
"metadata": {},

brats_segmentation_3d.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
},
7878
{
7979
"cell_type": "code",
80-
"execution_count": 2,
80+
"execution_count": 1,
8181
"metadata": {
8282
"tags": []
8383
},
@@ -86,16 +86,16 @@
8686
"name": "stdout",
8787
"output_type": "stream",
8888
"text": [
89-
"MONAI version: 0.1.0+318.ga2cd842\n",
89+
"MONAI version: 0.2.0\n",
9090
"Python version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]\n",
9191
"Numpy version: 1.18.1\n",
9292
"Pytorch version: 1.6.0\n",
9393
"\n",
9494
"Optional dependencies:\n",
95-
"Pytorch Ignite version: 0.3.0\n",
96-
"Nibabel version: 3.0.1\n",
95+
"Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.\n",
96+
"Nibabel version: 3.1.1\n",
9797
"scikit-image version: 0.15.0\n",
98-
"Pillow version: 7.0.0\n",
98+
"Pillow version: 7.2.0\n",
9999
"Tensorboard version: 2.1.0\n",
100100
"\n",
101101
"For details about installing the optional dependencies, please visit:\n",

cache_dataset_speed.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@
6060
"name": "stdout",
6161
"output_type": "stream",
6262
"text": [
63-
"MONAI version: 0.1.0+318.ga2cd842.dirty\n",
63+
"MONAI version: 0.2.0\n",
6464
"Python version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]\n",
6565
"Numpy version: 1.18.1\n",
6666
"Pytorch version: 1.6.0\n",
6767
"\n",
6868
"Optional dependencies:\n",
69-
"Pytorch Ignite version: 0.3.0\n",
70-
"Nibabel version: 3.0.1\n",
69+
"Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.\n",
70+
"Nibabel version: 3.1.1\n",
7171
"scikit-image version: 0.15.0\n",
72-
"Pillow version: 7.0.0\n",
72+
"Pillow version: 7.2.0\n",
7373
"Tensorboard version: 2.1.0\n",
7474
"\n",
7575
"For details about installing the optional dependencies, please visit:\n",

mednist_GAN_tutorial.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
},
7373
{
7474
"cell_type": "code",
75-
"execution_count": 3,
75+
"execution_count": 1,
7676
"metadata": {
7777
"tags": []
7878
},
@@ -82,16 +82,16 @@
8282
"output_type": "stream",
8383
"text": [
8484
"MONAI version: 0.2.0\n",
85-
"Python version: 3.7.5 (default, Nov 7 2019, 10:50:52) [GCC 8.3.0]\n",
86-
"Numpy version: 1.19.1\n",
85+
"Python version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]\n",
86+
"Numpy version: 1.18.1\n",
8787
"Pytorch version: 1.6.0\n",
8888
"\n",
8989
"Optional dependencies:\n",
9090
"Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.\n",
91-
"Nibabel version: NOT INSTALLED or UNKNOWN VERSION.\n",
92-
"scikit-image version: NOT INSTALLED or UNKNOWN VERSION.\n",
91+
"Nibabel version: 3.1.1\n",
92+
"scikit-image version: 0.15.0\n",
9393
"Pillow version: 7.2.0\n",
94-
"Tensorboard version: NOT INSTALLED or UNKNOWN VERSION.\n",
94+
"Tensorboard version: 2.1.0\n",
9595
"\n",
9696
"For details about installing the optional dependencies, please visit:\n",
9797
" https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies\n",

mednist_GAN_workflow.ipynb

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,13 @@
5656
},
5757
{
5858
"cell_type": "code",
59-
"execution_count": 2,
59+
"execution_count": null,
6060
"metadata": {
6161
"tags": []
6262
},
63-
"outputs": [
64-
{
65-
"name": "stdout",
66-
"output_type": "stream",
67-
"text": [
68-
"Note: you may need to restart the kernel to use updated packages.\n"
69-
]
70-
}
71-
],
63+
"outputs": [],
7264
"source": [
73-
"# temporarily need this, FIXME remove when d93c0a6 released\n",
65+
"# temporarily need this, FIXME: remove when d93c0a6 released\n",
7466
"%pip install -qU git+https://github.com/Project-MONAI/MONAI#egg=MONAI"
7567
]
7668
},
@@ -103,33 +95,11 @@
10395
},
10496
{
10597
"cell_type": "code",
106-
"execution_count": 2,
98+
"execution_count": null,
10799
"metadata": {
108100
"tags": []
109101
},
110-
"outputs": [
111-
{
112-
"name": "stdout",
113-
"output_type": "stream",
114-
"text": [
115-
"MONAI version: 0.1.0+318.ga2cd842.dirty\n",
116-
"Python version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]\n",
117-
"Numpy version: 1.18.1\n",
118-
"Pytorch version: 1.6.0\n",
119-
"\n",
120-
"Optional dependencies:\n",
121-
"Pytorch Ignite version: 0.3.0\n",
122-
"Nibabel version: 3.0.1\n",
123-
"scikit-image version: 0.15.0\n",
124-
"Pillow version: 7.0.0\n",
125-
"Tensorboard version: 2.1.0\n",
126-
"\n",
127-
"For details about installing the optional dependencies, please visit:\n",
128-
" https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies\n",
129-
"\n"
130-
]
131-
}
132-
],
102+
"outputs": [],
133103
"source": [
134104
"import logging\n",
135105
"import os\n",

mednist_tutorial.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@
8282
"name": "stdout",
8383
"output_type": "stream",
8484
"text": [
85-
"MONAI version: 0.1.0+318.ga2cd842.dirty\n",
85+
"MONAI version: 0.2.0\n",
8686
"Python version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]\n",
8787
"Numpy version: 1.18.1\n",
8888
"Pytorch version: 1.6.0\n",
8989
"\n",
9090
"Optional dependencies:\n",
91-
"Pytorch Ignite version: 0.3.0\n",
92-
"Nibabel version: 3.0.1\n",
91+
"Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.\n",
92+
"Nibabel version: 3.1.1\n",
9393
"scikit-image version: 0.15.0\n",
94-
"Pillow version: 7.0.0\n",
94+
"Pillow version: 7.2.0\n",
9595
"Tensorboard version: 2.1.0\n",
9696
"\n",
9797
"For details about installing the optional dependencies, please visit:\n",

models_ensemble.ipynb

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,11 @@
5050
},
5151
{
5252
"cell_type": "code",
53-
"execution_count": 2,
53+
"execution_count": null,
5454
"metadata": {
5555
"tags": []
5656
},
57-
"outputs": [
58-
{
59-
"name": "stdout",
60-
"output_type": "stream",
61-
"text": [
62-
"Note: you may need to restart the kernel to use updated packages.\n"
63-
]
64-
}
65-
],
57+
"outputs": [],
6658
"source": [
6759
"# temporarily need this, FIXME remove when 7143b8b released\n",
6860
"%pip install -qU git+https://github.com/Project-MONAI/MONAI#egg=MONAI"
@@ -77,33 +69,11 @@
7769
},
7870
{
7971
"cell_type": "code",
80-
"execution_count": 1,
72+
"execution_count": null,
8173
"metadata": {
8274
"tags": []
8375
},
84-
"outputs": [
85-
{
86-
"name": "stdout",
87-
"output_type": "stream",
88-
"text": [
89-
"MONAI version: 0.1.0+318.ga2cd842.dirty\n",
90-
"Python version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0]\n",
91-
"Numpy version: 1.18.1\n",
92-
"Pytorch version: 1.6.0\n",
93-
"\n",
94-
"Optional dependencies:\n",
95-
"Pytorch Ignite version: 0.3.0\n",
96-
"Nibabel version: 3.0.1\n",
97-
"scikit-image version: 0.15.0\n",
98-
"Pillow version: 7.0.0\n",
99-
"Tensorboard version: 2.1.0\n",
100-
"\n",
101-
"For details about installing the optional dependencies, please visit:\n",
102-
" https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies\n",
103-
"\n"
104-
]
105-
}
106-
],
76+
"outputs": [],
10777
"source": [
10878
"# Copyright 2020 MONAI Consortium\n",
10979
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",

0 commit comments

Comments
 (0)