Skip to content

Commit ae2e55f

Browse files
committed
Updates
1 parent 95bbd24 commit ae2e55f

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

docs/source/installation.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,20 @@ pip install monai
5252
MONAI supports the extras syntax such as `pip install 'monai[nibabel]'`. The options are
5353

5454
```text
55-
clearml, cucim, cupy, einops, fire, gdown, h5py, huggingface_hub, hyena, ignite, imagecodecs, itk, jsonschema, lmdb, lpips, matplotlib, metrics_reloaded, mlflow, nibabel, nni, onnx, openslide, optuna, pandas, pillow, polygraphy, psutil, pyamg, pybind11, pydicom, pynrrd, pytest, pynvml, pyyaml, requests, segment_anything, scipy, skimage, tensorboard, tensorboardX, tifffile, torchio, torchvision, tqdm, transformers, zarr
55+
clearml, cucim, cupy, einops, fire, gdown, h5py, huggingface_hub, hyena, ignite, imagecodecs, itk, jsonschema, lmdb, lpips, matplotlib, metrics_reloaded, mlflow, nibabel, nni, onnx, openslide, optuna, pandas, pillow, polygraphy, psutil, pyamg, pybind11, pydicom, pynrrd, pynvml, pyyaml, requests, segment_anything, scipy, skimage, tensorboard, tensorboardX, tifffile, torchio, torchvision, tqdm, transformers, zarr
5656
```
5757

58-
which correspond to the packages: `clearml`, `cucim` (`cucim-cu12` or `cucim-cu13`), `cupy`, `einops`, `fire`, `gdown`, `h5py`, `huggingface_hub`, `nvsubquadratic`, `omegaconf`, `pytorch-ignite`, `imagecodecs`, `itk`, `jsonschema`, `lmdb`, `lpips`, `matplotlib`, `MetricsReloaded`, `mlflow`, `nibabel`, `nni`, `filelock`, `onnx`, `onnxruntime`, `onnx_graphsurgeon`, `onnxscript`, `openslide-python`, `openslide-bin`, `optuna`, `pandas`, `pillow`, `polygraphy`, `psutil`, `pyamg`, `pybind11`, `pydicom`, `pynrrd`, `pytest`, `nvidia-ml-py`, `pyyaml`, `requests`, `segment_anything`, `scipy`, `scikit-image`, `tensorboard`, `tensorboardX`, `tifffile`, `torchio`, `torchvision`, `tqdm`, `transformers`, `zarr`.
58+
which correspond to the packages: `clearml`, `cucim` (`cucim-cu12` or `cucim-cu13`), `cupy-cuda13x`, `einops`, `fire`, `gdown`, `h5py`, `huggingface_hub`, `nvsubquadratic`, `omegaconf`, `pytorch-ignite`, `imagecodecs`, `itk`, `jsonschema`, `lmdb`, `lpips`, `matplotlib`, `MetricsReloaded`, `mlflow`, `nibabel`, `nni`, `filelock`, `onnx`, `onnxruntime`, `onnx_graphsurgeon`, `onnxscript`, `openslide-python`, `openslide-bin`, `optuna`, `pandas`, `pillow`, `polygraphy`, `psutil`, `pyamg`, `pybind11`, `pydicom`, `pynrrd`, `nvidia-ml-py`, `pyyaml`, `requests`, `segment_anything`, `scipy`, `scikit-image`, `tensorboard`, `tensorboardX`, `tifffile`, `torchio`, `torchvision`, `tqdm`, `transformers`, `zarr`.
5959

60-
Almost all of these can be installed together with the `all` option. For development on MONAI, this should be accompanied by `testing` which will install the testing static checking packages.
60+
Almost all of these can be installed together with the `all` option. For development on MONAI, this should be accompanied by `testing` which will install the testing static checking packages. Cupy is omitted from `all` since the choice between
61+
Cuda 12 and 13 versions of the library can't be resolved when installing and must be manually installed.
6162

6263
The `hyena` extra pulls in [`nvsubquadratic`](https://github.com/NVIDIA-BioNeMo/nvSubquadratic),
6364
required by `HyenaNDUNETR` / `HyenaMixer` / `HyenaTransformerBlock` (subquadratic
6465
O(N log N) alternatives to windowed self-attention). Install with
6566
`pip install 'monai[hyena]'`.
6667

67-
The command `pip install 'monai[all,hyena,testing]'` installs all the optional dependencies.
68+
The command `pip install 'monai[all,hyena,testing]'` installs almost all the optional dependencies.
6869

6970
When installing MONAI, the compiled extensions are not compiled by default. Set the environment variable `BUILD_MONAI` to `1` when invoking `pip` to compile these, see below for details.
7071

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ all = [
7171
"lmdb",
7272
"lpips==0.1.4",
7373
"matplotlib>=3.6.3",
74-
# TODO: change URL to https://github.com/Project-MONAI/MetricsReloaded@monai-support before finalising
75-
"MetricsReloaded @ git+https://github.com/ericspod/MetricsReloaded@monai-support-fix",
74+
"MetricsReloaded @ git+https://github.com/Project-MONAI/MetricsReloaded@monai-support",
7675
"mlflow>=2.12.2,<3.13",
7776
"nibabel",
7877
"ninja",
@@ -93,7 +92,6 @@ all = [
9392
"pybind11",
9493
"pydicom",
9594
"pynrrd",
96-
"pytest", # FIXME: CuPy 14.1.0 required this through polygraphy and trt_compiler https://github.com/Project-MONAI/MONAI/pull/8867
9795
"pytorch-ignite",
9896
"pyyaml",
9997
"requests",
@@ -114,7 +112,7 @@ cucim = [
114112
"cucim-cu12; platform_system == 'Linux' and python_version <= '3.10'",
115113
"cucim-cu13; platform_system == 'Linux' and python_version >= '3.11'"
116114
]
117-
cupy = ["cupy"]
115+
cupy = ["cupy-cuda13x!=14.1.0"] # not in all, the choice between cuda12x and cuda13x that can't be resolved here
118116
einops = ["einops"]
119117
fire = ["fire"]
120118
gdown = ["gdown>=4.7.3"]
@@ -146,7 +144,6 @@ pyamg = ["pyamg>=5.0.0,<5.3.0"]
146144
pybind11 = ["pybind11"]
147145
pydicom = ["pydicom"]
148146
pynrrd = ["pynrrd"]
149-
pytest = ["pytest"]
150147
pynvml = ["nvidia-ml-py"]
151148
pyyaml = ["pyyaml"]
152149
requests = ["requests"]

0 commit comments

Comments
 (0)