Skip to content

Commit c40f66e

Browse files
authored
Merge branch 'dev' into max_seed_fix
2 parents 0bc721a + 7b9a523 commit c40f66e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2830
-352
lines changed

.github/workflows/pythonapp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
name: Install itk pre-release (Linux only)
100100
run: |
101101
python -m pip install --pre -U itk
102+
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
102103
- name: Install the dependencies
103104
run: |
104105
python -m pip install --user --upgrade pip wheel
@@ -149,7 +150,8 @@ jobs:
149150
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
150151
- name: Install dependencies
151152
run: |
152-
python -m pip install --user --upgrade pip setuptools wheel twine
153+
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
154+
python -m pip install --user --upgrade pip setuptools wheel twine packaging
153155
# install the latest pytorch for testing
154156
# however, "pip install monai*.tar.gz" will build cpp/cuda with an isolated
155157
# fresh torch installation according to pyproject.toml

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install setuptools
2626
run: |
27-
python -m pip install --user --upgrade setuptools wheel
27+
python -m pip install --user --upgrade setuptools wheel packaging
2828
- name: Build and test source archive and wheel file
2929
run: |
3030
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
@@ -104,7 +104,7 @@ jobs:
104104
run: |
105105
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
106106
git describe
107-
python -m pip install --user --upgrade setuptools wheel
107+
python -m pip install --user --upgrade setuptools wheel packaging
108108
python setup.py build
109109
cat build/lib/monai/_version.py
110110
- name: Upload version

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ onnxruntime; python_version <= '3.10'
4141
zarr
4242
huggingface_hub
4343
pyamg>=5.0.0
44+
packaging

docs/source/apps.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,3 @@ FastMRIReader
261261

262262
.. autoclass:: monai.apps.nnunet.nnUNetV2Runner
263263
:members:
264-
265-
`Generative AI`
266-
---------------
267-
268-
`MAISI Utilities`
269-
~~~~~~~~~~~~~~~~~
270-
.. automodule:: monai.apps.generation.maisi.utils.morphological_ops
271-
:members:

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Features
3737
Getting started
3838
---------------
3939

40-
`MedNIST demo <https://colab.research.google.com/drive/1wy8XUSnNWlhDNazFdvGBHLfdkGvOHBKe>`_ and `MONAI for PyTorch Users <https://colab.research.google.com/drive/1boqy7ENpKrqaJoxFlbHIBnIODAs1Ih1T>`_ are available on Colab.
40+
`MedNIST demo <https://colab.research.google.com/github/Project-MONAI/tutorials/blob/main/2d_classification/mednist_tutorial.ipynb>`_ and `MONAI for PyTorch Users <https://colab.research.google.com/github/Project-MONAI/tutorials/blob/main/modules/developer_guide.ipynb>`_ are available on Colab.
4141

4242
Examples and notebook tutorials are located at `Project-MONAI/tutorials <https://github.com/Project-MONAI/tutorials>`_.
4343

docs/source/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ Since MONAI v0.2.0, the extras syntax such as `pip install 'monai[nibabel]'` is
254254
- The options are
255255

256256
```
257-
[nibabel, skimage, scipy, pillow, tensorboard, gdown, ignite, torchvision, itk, tqdm, lmdb, psutil, cucim, openslide, pandas, einops, transformers, mlflow, clearml, matplotlib, tensorboardX, tifffile, imagecodecs, pyyaml, fire, jsonschema, ninja, pynrrd, pydicom, h5py, nni, optuna, onnx, onnxruntime, zarr, lpips, pynvml, huggingface_hub]
257+
[nibabel, skimage, scipy, pillow, tensorboard, gdown, ignite, torchvision, itk, tqdm, lmdb, psutil, cucim, openslide, pandas, einops, transformers, mlflow, clearml, matplotlib, tensorboardX, tifffile, imagecodecs, pyyaml, fire, jsonschema, ninja, pynrrd, pydicom, h5py, nni, optuna, onnx, onnxruntime, zarr, lpips, pynvml, huggingface_hub, segment-anything]
258258
```
259259

260260
which correspond to `nibabel`, `scikit-image`,`scipy`, `pillow`, `tensorboard`,
261-
`gdown`, `pytorch-ignite`, `torchvision`, `itk`, `tqdm`, `lmdb`, `psutil`, `cucim`, `openslide-python`, `pandas`, `einops`, `transformers`, `mlflow`, `clearml`, `matplotlib`, `tensorboardX`, `tifffile`, `imagecodecs`, `pyyaml`, `fire`, `jsonschema`, `ninja`, `pynrrd`, `pydicom`, `h5py`, `nni`, `optuna`, `onnx`, `onnxruntime`, `zarr`, `lpips`, `nvidia-ml-py`, `huggingface_hub` and `pyamg` respectively.
261+
`gdown`, `pytorch-ignite`, `torchvision`, `itk`, `tqdm`, `lmdb`, `psutil`, `cucim`, `openslide-python`, `pandas`, `einops`, `transformers`, `mlflow`, `clearml`, `matplotlib`, `tensorboardX`, `tifffile`, `imagecodecs`, `pyyaml`, `fire`, `jsonschema`, `ninja`, `pynrrd`, `pydicom`, `h5py`, `nni`, `optuna`, `onnx`, `onnxruntime`, `zarr`, `lpips`, `nvidia-ml-py`, `huggingface_hub`, `pyamg` and `segment-anything` respectively.
262262

263263
- `pip install 'monai[all]'` installs all the optional dependencies.

docs/source/losses.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ Segmentation Losses
9393
.. autoclass:: SoftDiceclDiceLoss
9494
:members:
9595

96+
`NACLLoss`
97+
~~~~~~~~~~
98+
.. autoclass:: NACLLoss
99+
:members:
100+
96101
Registration Losses
97102
-------------------
98103

docs/source/mb_specification.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ This file contains the metadata information relating to the model, including wha
6363
* **monai_version**: version of MONAI the bundle was generated on, later versions expected to work.
6464
* **pytorch_version**: version of Pytorch the bundle was generated on, later versions expected to work.
6565
* **numpy_version**: version of Numpy the bundle was generated on, later versions expected to work.
66-
* **optional_packages_version**: dictionary relating optional package names to their versions, these packages are not needed but are recommended to be installed with this stated minimum version.
66+
* **required_packages_version**: dictionary relating required package names to their versions. These are packages in addition to the base requirements of MONAI which this bundle absolutely needs. For example, if the bundle must load Nifti files the Nibabel package will be required.
6767
* **task**: plain-language description of what the model is meant to do.
6868
* **description**: longer form plain-language description of what the model is, what it does, etc.
6969
* **authors**: state author(s) of the model.
7070
* **copyright**: state model copyright.
71-
* **network_data_format**: defines the format, shape, and meaning of inputs and outputs to the model, contains keys "inputs" and "outputs" relating named inputs/outputs to their format specifiers (defined below).
71+
* **network_data_format**: defines the format, shape, and meaning of inputs and outputs to the (primary) model, contains keys "inputs" and "outputs" relating named inputs/outputs to their format specifiers (defined below). There is also an optional "post_processed_outputs" key stating the format of "outputs" after postprocessing transforms are applied, this is used to describe the final output from the bundle if it varies from the raw network output. These keys can also relate to primitive values (number, string, boolean), instead of the tensor format specified below.
7272

7373
Tensor format specifiers are used to define input and output tensors and their meanings, and must be a dictionary containing at least these keys:
7474

@@ -89,6 +89,8 @@ Optional keys:
8989
* **data_source**: description of where training/validation can be sourced.
9090
* **data_type**: type of source data used for training/validation.
9191
* **references**: list of published referenced relating to the model.
92+
* **supported_apps**: list of supported applications which use bundles, eg. 'monai-label' would be present if the bundle is compatible with MONAI Label applications.
93+
* **\*_data_format**: defines the format, shape, and meaning of inputs and outputs to additional models which are secondary to the main model. This contains the same sort of information as **network_data_format** which describes networks providing secondary functionality, eg. a localisation network used to identify ROI in an image for cropping before data is sent to the primary network of this bundle.
9294

9395
The format for tensors used as inputs and outputs can be used to specify semantic meaning of these values, and later is used by software handling bundles to determine how to process and interpret this data. There are various types of image data that MONAI is uses, and other data types such as point clouds, dictionary sequences, time signals, and others. The following list is provided as a set of supported definitions of what a tensor "format" is but is not exhaustive and users can provide their own which would be left up to the model users to interpret:
9496

@@ -124,7 +126,7 @@ An example JSON metadata file:
124126
"monai_version": "0.9.0",
125127
"pytorch_version": "1.10.0",
126128
"numpy_version": "1.21.2",
127-
"optional_packages_version": {"nibabel": "3.2.1"},
129+
"required_packages_version": {"nibabel": "3.2.1"},
128130
"task": "Decathlon spleen segmentation",
129131
"description": "A pre-trained model for volumetric (3D) segmentation of the spleen from CT image",
130132
"authors": "MONAI team",

docs/source/networks.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,11 @@ Nets
481481
.. autoclass:: SegResNetDS
482482
:members:
483483

484+
`SegResNetDS2`
485+
~~~~~~~~~~~~~~
486+
.. autoclass:: SegResNetDS2
487+
:members:
488+
484489
`SegResNetVAE`
485490
~~~~~~~~~~~~~~
486491
.. autoclass:: SegResNetVAE
@@ -556,6 +561,11 @@ Nets
556561
.. autoclass:: UNETR
557562
:members:
558563

564+
`VISTA3D`
565+
~~~~~~~~~
566+
.. autoclass:: VISTA3D
567+
:members:
568+
559569
`SwinUNETR`
560570
~~~~~~~~~~~
561571
.. autoclass:: SwinUNETR

docs/source/transforms.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,6 +2310,9 @@ Utilities
23102310
.. automodule:: monai.transforms.utils_pytorch_numpy_unification
23112311
:members:
23122312

2313+
.. automodule:: monai.transforms.utils_morphological_ops
2314+
:members:
2315+
23132316
By Categories
23142317
-------------
23152318
.. toctree::

0 commit comments

Comments
 (0)