|
4 | 4 | "cell_type": "markdown", |
5 | 5 | "metadata": {}, |
6 | 6 | "source": [ |
| 7 | + "Copyright (c) MONAI Consortium \n", |
| 8 | + "Licensed under the Apache License, Version 2.0 (the \"License\"); \n", |
| 9 | + "you may not use this file except in compliance with the License. \n", |
| 10 | + "You may obtain a copy of the License at \n", |
| 11 | + " http://www.apache.org/licenses/LICENSE-2.0 \n", |
| 12 | + "Unless required by applicable law or agreed to in writing, software \n", |
| 13 | + "distributed under the License is distributed on an \"AS IS\" BASIS, \n", |
| 14 | + "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \n", |
| 15 | + "See the License for the specific language governing permissions and \n", |
| 16 | + "limitations under the License.\n", |
| 17 | + "\n", |
7 | 18 | "# Spleen 3D segmentation with MONAI\n", |
8 | 19 | "\n", |
9 | 20 | "This tutorial shows how to integrate MONAI into an existing PyTorch medical DL program.\n", |
|
21 | 32 | "\n", |
22 | 33 | "The Spleen dataset can be downloaded from http://medicaldecathlon.com/.\n", |
23 | 34 | "\n", |
24 | | - "\n", |
| 35 | + "\n", |
25 | 36 | "\n", |
26 | 37 | "Target: Spleen \n", |
27 | 38 | "Modality: CT \n", |
|
50 | 61 | "%matplotlib inline" |
51 | 62 | ] |
52 | 63 | }, |
| 64 | + { |
| 65 | + "cell_type": "markdown", |
| 66 | + "metadata": {}, |
| 67 | + "source": [ |
| 68 | + "## Setup imports" |
| 69 | + ] |
| 70 | + }, |
53 | 71 | { |
54 | 72 | "cell_type": "code", |
55 | 73 | "execution_count": 2, |
56 | 74 | "metadata": { |
57 | 75 | "tags": [] |
58 | 76 | }, |
59 | | - "outputs": [], |
| 77 | + "outputs": [ |
| 78 | + { |
| 79 | + "name": "stderr", |
| 80 | + "output_type": "stream", |
| 81 | + "text": [ |
| 82 | + "/opt/conda/lib/python3.8/site-packages/tqdm/auto.py:22: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", |
| 83 | + " from .autonotebook import tqdm as notebook_tqdm\n" |
| 84 | + ] |
| 85 | + }, |
| 86 | + { |
| 87 | + "name": "stdout", |
| 88 | + "output_type": "stream", |
| 89 | + "text": [ |
| 90 | + "MONAI version: 1.1.0+2.g97918e46\n", |
| 91 | + "Numpy version: 1.22.2\n", |
| 92 | + "Pytorch version: 1.13.0a0+d0d6b1f\n", |
| 93 | + "MONAI flags: HAS_EXT = True, USE_COMPILED = False, USE_META_DICT = False\n", |
| 94 | + "MONAI rev id: 97918e46e0d2700c050e678d72e3edb35afbd737\n", |
| 95 | + "MONAI __file__: /opt/monai/monai/__init__.py\n", |
| 96 | + "\n", |
| 97 | + "Optional dependencies:\n", |
| 98 | + "Pytorch Ignite version: 0.4.10\n", |
| 99 | + "Nibabel version: 4.0.2\n", |
| 100 | + "scikit-image version: 0.19.3\n", |
| 101 | + "Pillow version: 9.0.1\n", |
| 102 | + "Tensorboard version: 2.10.1\n", |
| 103 | + "gdown version: 4.6.0\n", |
| 104 | + "TorchVision version: 0.14.0a0\n", |
| 105 | + "tqdm version: 4.64.1\n", |
| 106 | + "lmdb version: 1.3.0\n", |
| 107 | + "psutil version: 5.9.2\n", |
| 108 | + "pandas version: 1.4.4\n", |
| 109 | + "einops version: 0.6.0\n", |
| 110 | + "transformers version: 4.21.3\n", |
| 111 | + "mlflow version: 2.0.1\n", |
| 112 | + "pynrrd version: 1.0.0\n", |
| 113 | + "\n", |
| 114 | + "For details about installing the optional dependencies, please visit:\n", |
| 115 | + " https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies\n", |
| 116 | + "\n" |
| 117 | + ] |
| 118 | + } |
| 119 | + ], |
60 | 120 | "source": [ |
61 | 121 | "from monai.utils import first, set_determinism\n", |
62 | 122 | "from monai.transforms import (\n", |
|
87 | 147 | "import tempfile\n", |
88 | 148 | "import shutil\n", |
89 | 149 | "import os\n", |
90 | | - "import glob" |
91 | | - ] |
92 | | - }, |
93 | | - { |
94 | | - "cell_type": "markdown", |
95 | | - "metadata": {}, |
96 | | - "source": [ |
97 | | - "## Setup imports" |
98 | | - ] |
99 | | - }, |
100 | | - { |
101 | | - "cell_type": "code", |
102 | | - "execution_count": 3, |
103 | | - "metadata": { |
104 | | - "tags": [] |
105 | | - }, |
106 | | - "outputs": [ |
107 | | - { |
108 | | - "name": "stdout", |
109 | | - "output_type": "stream", |
110 | | - "text": [ |
111 | | - "MONAI version: 0.9.1\n", |
112 | | - "Numpy version: 1.22.4\n", |
113 | | - "Pytorch version: 1.13.0a0+340c412\n", |
114 | | - "MONAI flags: HAS_EXT = True, USE_COMPILED = False, USE_META_DICT = False\n", |
115 | | - "MONAI rev id: 356d2d2f41b473f588899d705bbc682308cee52c\n", |
116 | | - "MONAI __file__: /opt/monai/monai/__init__.py\n", |
117 | | - "\n", |
118 | | - "Optional dependencies:\n", |
119 | | - "Pytorch Ignite version: 0.4.9\n", |
120 | | - "Nibabel version: 4.0.1\n", |
121 | | - "scikit-image version: 0.19.3\n", |
122 | | - "Pillow version: 9.0.1\n", |
123 | | - "Tensorboard version: 2.9.1\n", |
124 | | - "gdown version: 4.5.1\n", |
125 | | - "TorchVision version: 0.13.0a0\n", |
126 | | - "tqdm version: 4.64.0\n", |
127 | | - "lmdb version: 1.3.0\n", |
128 | | - "psutil version: 5.9.1\n", |
129 | | - "pandas version: 1.3.5\n", |
130 | | - "einops version: 0.4.1\n", |
131 | | - "transformers version: 4.20.1\n", |
132 | | - "mlflow version: 1.27.0\n", |
133 | | - "pynrrd version: 0.4.3\n", |
134 | | - "\n", |
135 | | - "For details about installing the optional dependencies, please visit:\n", |
136 | | - " https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies\n", |
137 | | - "\n" |
138 | | - ] |
139 | | - } |
140 | | - ], |
141 | | - "source": [ |
142 | | - "# Copyright 2020 MONAI Consortium\n", |
143 | | - "# Licensed under the Apache License, Version 2.0 (the \"License\");\n", |
144 | | - "# you may not use this file except in compliance with the License.\n", |
145 | | - "# You may obtain a copy of the License at\n", |
146 | | - "# http://www.apache.org/licenses/LICENSE-2.0\n", |
147 | | - "# Unless required by applicable law or agreed to in writing, software\n", |
148 | | - "# distributed under the License is distributed on an \"AS IS\" BASIS,\n", |
149 | | - "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", |
150 | | - "# See the License for the specific language governing permissions and\n", |
151 | | - "# limitations under the License.\n", |
152 | | - "\n", |
| 150 | + "import glob\n", |
153 | 151 | "\n", |
154 | 152 | "print_config()" |
155 | 153 | ] |
|
0 commit comments