Skip to content

Commit f2ec87a

Browse files
Release 1.6.1 Docs Updates (#9120)
Fixes documentation part of #9119. ### Description This updates the docs for the upcoming release. This should be merged first then a releasing branch can be made to tag the release candidate. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [x] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fffb113 commit f2ec87a

5 files changed

Lines changed: 143 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,109 @@ All notable changes to MONAI are documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
7+
8+
9+
## [1.6.1] - 2026-09-25
710
### Added
811
* `NaViT` (`monai.networks.nets.NaViT`): Native Resolution Vision Transformer with Patch n' Pack, supporting variable-resolution 2D and 3D inputs. Implements factorized positional embeddings, token dropout, attention pooling, and QK normalization, based on ["Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolution"](https://arxiv.org/abs/2307.06304).
912
* `HyenaMixer`, `HyenaTransformerBlock`, and `DepthwiseFFTConv{2,3}d` in `monai.networks.blocks`: subquadratic O(N log N) alternatives to windowed self-attention, backed by the HyenaND operator from the optional `nvsubquadratic` package.
1013
* `HyenaNDUNETR` (`monai.networks.nets.HyenaNDUNETR`): thin `SwinUNETR` subclass with a `get_variant(name)` classmethod for the three Hyena variants (`HHHH`, `HAHA`, `HHAA`) from the NeurIPS 2026 paper "Native Multi-Dimensional Subquadratic Operators via Input Dependent Long Convolutions" (paper id 26539).
1114
* `SwinUNETR.use_hyena` and `SwinUNETR.hyena_stages` kwargs to thread HyenaND blocks through any subset of Swin stages. Default `use_hyena=False` preserves bit-identical forward behavior of the existing code path.
12-
* New `[hyena]` extras_require in setup.cfg (`pip install monai[hyena]`).
15+
* New `[hyena]` extra added to optional dependencies, use this to install `nvsubquadratic` and other packages.
16+
* Add GPU-accelerated Dicom image decoding through the added `NvImgCodecPydicomReader` reader class. Use the `[nvimgcodec]` extra to install CUDA 13 dependencies.
17+
* Add explicit spatial_ndim tracking to MetaTensor (#8765)
18+
* Enabling MetaTensor Persistent Caching (#8940)
19+
* Add AbsoluteVolumeDifferenceMetric to monai.metrics (#8945)
20+
* Add BoundaryLoss (#8916)
21+
* SwinUNETR: optional flash attention (scaled_dot_product_attention) in WindowAttention (#8977)
22+
* Ignore_index support across dice and other losses (#8757)
23+
* Affine-aware landmark heatmap generation (#8957)
24+
25+
## Security Fixes
26+
* Fix GHSA-873f-pvrv-4x83: warn before executing a bundle's config in load()/run() (#9057)
27+
* Safe eval (#8936)
28+
* fix(safeeval): evaluate rewritten AST instead of original string (#9063)
29+
* Fix GHSA-x6pr-233j-x5cw: warn before executing an FL-provisioned bundle config (#9078)
30+
* Update CodeQL Action (#9079)
31+
* Harden download/deserialize integrity (weights_only, hash checks, path confinement) (#9088)
32+
* Harden nnUNetV2Runner against code execution (#9086)
33+
* Actions Permission and Other CodeQL Fixes (#9098)
34+
* fix: confine nnUNet postprocessing pickle loads to the results directory (GHSA-8f32) (#9113)
35+
* fix: screen logging.conf class=/args= before fileConfig (GHSA-wvpx) (#9114)
36+
* fix: restrict algo_from_json _target_ to Algo subclasses (GHSA-2wx3) (#9115)
37+
* Validate downloaded file integrity and raise ValueError on hash mismatch (#8833)
38+
* Warn before instantiating _target_ from algo_object.json (#9085)
39+
40+
## CI/Testing Fixes
41+
* ci: mute dynamic __warningregistry__ logs noise in pytest suite (#8893)
42+
* tests: remove more duplicate test cases (#8943)
43+
* Enable macOS Install Test Only (#8976)
44+
* feat: replace mypy and pytype with pyrefly for static type analysis (#8868)
45+
* Modernising Build Process (#9010)
46+
* Weekly Preview Fix (#9075)
47+
* Precommit Autofixing (#9061)
48+
* Fixing Git Dependency Weekly Build Issue (#9081)
49+
* Check Environment Script (#9038)
50+
* ci: add local pre-commit DCO hook and setup command (#9094)
51+
* Declare ruff's vendored-file excludes once in pyproject.toml (#9090)
52+
* Route runtests.sh ruff invocations through PY_EXE (#9089)
53+
* tests: remove the temporary directory make_nifti_image creates (#9042)
54+
55+
## Other Fixes
56+
* Add docstring note that Transpose/Transposed do not update the affine matrix (#8888)
57+
* Fix nnUNet test directory leakage into current working directory (#8887)
58+
* tests: remove duplicate and dead test cases (#8896)
59+
* Improve Affine transform documentation and add compute_w_affine tests (#8727)
60+
* fix: update Dockerfile and requirements-dev.txt for MONAI 1.6 tutorial compatibility (#8912)
61+
* Fix division by zero in clDice loss harmonic mean (#8739)
62+
* fix(losses): register buffers in GlobalMutualInformationLoss (#8872)
63+
* Fix batched_nms for ndarray inputs (#8901)
64+
* fix: add missing stacklevel=2 to warnings.warn() in metrics/ (Fixes #8931) (#8932)
65+
* fix: add missing stacklevel=2 to warnings.warn() in losses/ (Fixes #8929) (#8930)
66+
* fix: adaptor map_names calls dict as function when inputs is a name-mapping dict (#8907)
67+
* Use compact [1,-2,1] kernel for BendingEnergyLoss second derivatives (#8918)
68+
* Force GC in WSIReader tests to suppress ResourceWarning for unclosed files (#8919)
69+
* fix: guard division by zero in DICOMReader._get_affine for single-slice volumes (Fixes #8925) (#8926)
70+
* fix: replace `raise UserWarning` with `warnings.warn()` in verify_report_format (Fixes #8927) (#8928)
71+
* Fix FROC num_targets miscount when labels_to_exclude is set (#8951)
72+
* Remove dead and redundant code across monai (#8952)
73+
* docs: add Windows BUILD_MONAI install instructions (#8906)
74+
* Perf: Use a KDTree on CPU instead of full EDT for 1.5x to 16x faster metric computation (#8910)
75+
* Fix nnUNet runner store_true flag command construction (#8941) (#8944)
76+
* fix: emit nnUNet store_true flags as bare CLI args in nnUNetV2Runner (#8968)
77+
* Support configurable rotation order in create_rotate (#8963)
78+
* docs: clarify RandWeightedCrop(d) does not crop the weight map (#7851) (#8962)
79+
* fix(data): avoid divide-by-zero in pydicom affine for single-slice volumes (#8956)
80+
* Perf: skip redundant full-image mask on StdShiftIntensity nonzero=False path (#8975)
81+
* Fix division by zero in Warp for singleton spatial dimensions (#8946)
82+
* fix: warn when PydicomReader cannot determine affine from DICOM metadata (Fixes #8468) (#8922)
83+
* Warn when PydicomReader falls back to an identity affine (#8468) (#8934)
84+
* Fix non-functional jitter in Warp.get_reference_grid (#8953)
85+
* Make Fuzzy Gdown Argument Version-dependent (#8986)
86+
* Perf: faster get_largest_connected_component_mask (bincount + LUT gather) (#8978)
87+
* fix typos in docs: lazy_resampling, modules, whatsnew_1_5 (#9012)
88+
* docs: add documentation to CONTRIBUTING.md (#8878)
89+
* Fix class_labels mutation across multi-metric write_metrics_reports (#8902)
90+
* fix(MetaTensor): astype with torch dtype now returns MetaTensor preserving metadata (#8911)
91+
* Fix clipping boxes with large coordinates (#9047)
92+
* Raise OptionalImportError for unavailable explicit image readers (#9006)
93+
* Lazily import onnx so a broken onnx does not block 'import monai' (#8455) (#8937)
94+
* Fix ClipIntensityPercentiles metadata accumulation (#9003)
95+
* Fix NaN gradient in PerceptualLoss normalize_tensor (#8982)
96+
* Fix dot-notation read on $@ref-backed ConfigParser proxies (#8994)
97+
* fix: address Dependabot alerts for mlflow, transformers, setuptools (#9032)
98+
* fix(transforms): make Crop.compute_slices torch.compile-friendly (#8960)
99+
* Reject non-finite DICOM affine metadata in PydicomReader (#9087)
100+
* Fix VarAutoEncoder reparameterize returning mu+std at inference (#8413) (#8933)
101+
* Clarify CUDA/CuPy install requirements in docs (#8106) (#8983)
102+
* Fix tracing-state leak after transform exceptions (#9019)
103+
* Fix QuickNAT indexed skip connections (#9021)
104+
* Fix AutoRunner to honor num_fold when generating folds (#9110)
105+
* Fix three malformed error messages (#9065)
106+
* Fix 1/N floor in effective-rank collapse score after mean-centering (#8997)
107+
* Adding MedNeXt to documentation (#9074)
108+
* Report a missing nnunetv2 as an optional dependency in nnUNetV2Runner (#9054)
109+
* Improve/writer error messages (#8753)
13110

14111
## [1.6.0] - 2026-06-12
15112

‎CITATION.cff‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ title: "MONAI: Medical Open Network for AI"
66
abstract: "AI Toolkit for Healthcare Imaging"
77
authors:
88
- name: "MONAI Consortium"
9-
date-released: 2026-06-12
10-
version: "1.6.0"
9+
date-released: 2026-09-25
10+
version: "1.6.1"
1111
identifiers:
1212
- description: "This DOI represents all versions of MONAI, and will always resolve to the latest one."
1313
type: doi

‎docs/source/whatsnew.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ What's New
66
.. toctree::
77
:maxdepth: 1
88

9+
whatsnew_1_6_1.md
910
whatsnew_1_6.md
1011
whatsnew_1_5_2.md
1112
whatsnew_1_5_1.md

‎docs/source/whatsnew_1_6.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# What's new in 1.6.0 🎉🎉
2+
# What's new in 1.6.0
33

44
- New losses: AUC-Margin Loss, Matthews Correlation Coefficient (MCC) Loss
55
* AUC-Margin Loss: `AUCMarginLoss` directly optimizes the AUROC metric via a margin-based surrogate loss, enabling training workflows that target ranking-based performance rather than calibration-based objectives.

‎docs/source/whatsnew_1_6_1.md‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
# What's new in 1.6.1 🎉🎉
3+
4+
This is primarily a security release with fixes for vulnerabilities identified through security alerts and tools.
5+
6+
## Security Fixes
7+
8+
A number of recent security alerts are addressed in this release: GHSA-vm9c-7j6g-c7mm, GHSA-8f32-8649-rv87,
9+
GHSA-x6pr-233j-x5cw, GHSA-wvpx-5qmp-46g3, GHSA-2wx3-8x3w-r8qv, GHSA-x4pc-gj5h-3pq7, GHSA-hhh4-h52m-fqh6, and GHSA-6hp3-vr39-rqw8.
10+
These will be published after the release and will be marked as being fixed by version 1.6.1.
11+
12+
Actions permissions were updated to only allow read access when this is all that's required. A few other changes were
13+
made relating to CodeQL identified issues (#9098).
14+
15+
## Added Features
16+
17+
A number of additions are included with this security release:
18+
19+
* `NaViT` (`monai.networks.nets.NaViT`): Native Resolution Vision Transformer with Patch n' Pack, supporting variable-resolution 2D and 3D inputs. Implements factorized positional embeddings, token dropout, attention pooling, and QK normalization, based on ["Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolution"](https://arxiv.org/abs/2307.06304).
20+
* `HyenaMixer`, `HyenaTransformerBlock`, and `DepthwiseFFTConv{2,3}d` in `monai.networks.blocks`: subquadratic O(N log N) alternatives to windowed self-attention, backed by the HyenaND operator from the optional `nvsubquadratic` package. `HyenaNDUNETR` (`monai.networks.nets.HyenaNDUNETR`): thin `SwinUNETR` subclass with a `get_variant(name)` classmethod for the three Hyena variants (`HHHH`, `HAHA`, `HHAA`) from the NeurIPS 2026 paper "Native Multi-Dimensional Subquadratic Operators via Input Dependent Long Convolutions" (paper id 26539).
21+
* Add GPU-accelerated Dicom image decoding through the added `NvImgCodecPydicomReader` reader class. Use the `[nvimgcodec]` extra to install CUDA 13 dependencies.
22+
23+
## CI and Building Fixes
24+
25+
MONAI was updated in this release to use the `pyproject.toml` file exclusively for building and package definition, thus
26+
the requirements text files and `setup.*` files have been removed. An added script `monai/config/print_dependencies.py` is
27+
used to recreate the requirements files when needed, see the docstring for this file for use or see how the Dockerfile
28+
uses it for no-build-isolation installation of MONAI.
29+
30+
With the current version of `pip` the default behaviour is to build MONAI in an isolated environment. This can install
31+
a version of PyTorch that varies from the one in the target environment if already present, this is a problem when compiling
32+
the CUDA extensions as these versions may not be ABI-compatible. An installation with the pip flag `--no-build-isolation`
33+
is needed in this case, for example in the Dockerfile:
34+
35+
```dockerfile
36+
RUN python monai/config/print_dependencies.py build-system | xargs -d '\n' pip install --no-cache-dir --no-build-isolation \
37+
&& FORCE_CUDA=1 pip install --no-cache-dir --no-build-isolation -e .[all,testing]
38+
```
39+
40+
This uses the dependencies script to install the build dependencies then builds MONAI. If build issues are encountered
41+
you can use this two-step method to setup your environment correctly then install without isolation.

0 commit comments

Comments
 (0)