You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [Validating the install](#validating-the-install)
16
+
- [MONAI version string](#monai-version-string)
17
+
- [From DockerHub](#from-dockerhub)
18
+
- [Installing the recommended dependencies](#installing-the-recommended-dependencies)
16
19
17
20
---
18
21
@@ -24,32 +27,39 @@ and the Python package index (PyPI). The pre-built Docker images are made availa
24
27
To install optional features such as handling the NIfTI files using
25
28
[Nibabel](https://nipy.org/nibabel/), or building workflows using [Pytorch
26
29
Ignite](https://pytorch.org/ignite/), please follow the instructions:
30
+
27
31
-[Installing the recommended dependencies](#installing-the-recommended-dependencies)
28
32
29
33
The installation commands bellow usually end up installing CPU variant of PyTorch. To install GPU-enabled PyTorch:
34
+
30
35
1. Install the latest NVIDIA driver.
31
36
1. Check [PyTorch Official Guide](https://pytorch.org/get-started/locally/) for the recommended CUDA versions. For Pip package, the user needs to download the CUDA manually, install it on the system, and ensure CUDA_PATH is set properly.
32
37
1. Continue to follow the guide and install PyTorch.
33
38
1. Install MONAI using one the ways described below.
34
-
---
35
39
40
+
---
36
41
37
42
## From PyPI
38
43
39
44
### Milestone release
45
+
40
46
To install the [current milestone release](https://pypi.org/project/monai/):
47
+
41
48
```bash
42
49
pip install monai
43
50
```
44
51
45
52
### Weekly preview release
53
+
46
54
To install the [weekly preview release](https://pypi.org/project/monai-weekly/):
55
+
47
56
```bash
48
57
pip install monai-weekly
49
58
```
50
59
51
60
The weekly build is released to PyPI every Sunday with a pre-release build number `dev[%y%U]`.
52
61
To report any issues on the weekly preview, please include the version and commit information:
If the installation is successful, this command will print out the MONAI version information, and this confirms the core
150
178
modules of MONAI are ready-to-use.
151
179
152
-
153
180
## MONAI version string
181
+
154
182
The MONAI version string shows the current status of your local installation. For example:
183
+
155
184
```
156
185
MONAI version: 0.1.0+144.g52c763d.dirty
157
186
```
158
-
-``0.1.0`` indicates that your installation is based on the ``0.1.0`` milestone release.
159
-
-``+144`` indicates that your installation is 144 git commits ahead of the milestone release.
160
-
-``g52c763d`` indicates that your installation corresponds to the git commit hash ``52c763d``.
161
-
-``dirty`` indicates that you have modified the codebase locally, and the codebase is inconsistent with ``52c763d``.
162
187
188
+
-`0.1.0` indicates that your installation is based on the `0.1.0` milestone release.
189
+
-`+144` indicates that your installation is 144 git commits ahead of the milestone release.
190
+
-`g52c763d` indicates that your installation corresponds to the git commit hash `52c763d`.
191
+
-`dirty` indicates that you have modified the codebase locally, and the codebase is inconsistent with `52c763d`.
163
192
164
193
## From DockerHub
194
+
165
195
Make sure you have installed the NVIDIA driver and Docker 19.03+ for your Linux distribution.
166
196
Note that you do not need to install the CUDA toolkit on the host, but the driver needs to be installed.
167
197
Please find out more information on [nvidia-docker](https://github.com/NVIDIA/nvidia-docker).
168
198
169
199
Assuming that you have the Nvidia driver and Docker 19.03+ installed, running the following command will
170
200
download and start a container with the latest version of MONAI. The latest `dev` branch of MONAI from GitHub
171
201
is included in the image.
202
+
172
203
```bash
173
204
docker run --gpus all --rm -ti --ipc=host projectmonai/monai:latest
174
205
```
175
206
176
207
You can also run a milestone release docker image by specifying the image tag, for example:
208
+
177
209
```
178
210
docker run --gpus all --rm -ti --ipc=host projectmonai/monai:0.1.0
179
211
```
180
212
181
213
## Installing the recommended dependencies
214
+
182
215
By default, the installation steps will only download and install the minimal requirements of MONAI.
183
216
Optional dependencies can be installed using [the extras syntax](https://packaging.python.org/tutorials/installing-packages/#installing-setuptools-extras) to support additional features.
184
217
185
218
For example, to install MONAI with Nibabel and Scikit-image support:
To install all optional dependencies with `conda` based on MONAI development environment settings (`environment-dev.yml`;
207
243
this will install PyTorch as well as `pytorch-cuda`, please follow https://pytorch.org/get-started/locally/#start-locally for more details about installing PyTorch):
0 commit comments