Skip to content

Commit 9f10dcf

Browse files
authored
Merge branch 'dev' into generate_heatmap_transforms
2 parents eafe59a + 53382d8 commit 9f10dcf

File tree

6 files changed

+51
-9
lines changed

6 files changed

+51
-9
lines changed

CHANGELOG.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,38 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77

8+
## [1.5.1] - 2025-09-22
9+
10+
## What's Changed
11+
### Added
12+
* PyTorch 2.7 and 2.8 support (#8429, #8530)
13+
* Create SECURITY.md (#8546)
14+
* Add kwargs in array and functional file (#8508)
15+
* Add .coderabbit.yaml File (#8513)
16+
* Add input validation to ImageStats class (#8501)
17+
* Add support for optional conditioning in PatchInferer, SliceInferer, and SlidingWindowInferer (#8400)
18+
* Add classifier free guidance unconditioned value (#8562)
19+
* Improved `DiffusionModelEncoder` to support output linear layers of different dimensions (#8578, #8580)
20+
21+
### Fixed
22+
* Fix for insecure zip file extraction to address [GHSA-x6ww-pf9m-m73m](https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-x6ww-pf9m-m73m) (#8568)
23+
* Fix for insecure use of `torch.load` and `pickle` to address [GHSA-6vm5-6jv9-rjpj](https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-6vm5-6jv9-rjpj) and [GHSA-p8cm-mm2v-gwjm](https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-p8cm-mm2v-gwjm) (#8566)
24+
* Torchvision fix for loading pretrained weights using current syntax (#8563)
25+
* Fix bug in MAISI vae (#8517)
26+
* Throw exception on invalid images in retinanet detector (#8515)
27+
* Fix: HistogramNormalized doc (#8543)
28+
* Fix build failure by pinning pyamg to versions below 5.3.0 (#8548)
29+
* Fix hardcoded input dim in DiffusionModelEncoder (#8514)
30+
* Fix for gdown downloading fails (#8576)
31+
32+
### Changed
33+
* Update README badges to add research paper citations number (#8494)
34+
* CI: Add custom timeout to ci job in order to save resources (#8504)
35+
* Improve documentation on the datalist format (#8539)
36+
* Tests Cleanup and refactor (#8405, #8535)
37+
* Improve Orientation transform to use the "space" (LPS vs RAS) of a metatensor by default (#8473)
38+
* Updated supported version of Huggingface Transformers (#8574)
39+
840
## [1.5.0] - 2025-06-13
941

1042
## What's Changed
@@ -1229,7 +1261,8 @@ the postprocessing steps should be used before calling the metrics methods
12291261

12301262
[highlights]: https://github.com/Project-MONAI/MONAI/blob/master/docs/source/highlights.md
12311263

1232-
[Unreleased]: https://github.com/Project-MONAI/MONAI/compare/1.5.0...HEAD
1264+
[Unreleased]: https://github.com/Project-MONAI/MONAI/compare/1.5.1...HEAD
1265+
[1.5.1]: https://github.com/Project-MONAI/MONAI/compare/1.5.0...1.5.1
12331266
[1.5.0]: https://github.com/Project-MONAI/MONAI/compare/1.4.0...1.5.0
12341267
[1.4.0]: https://github.com/Project-MONAI/MONAI/compare/1.3.2...1.4.0
12351268
[1.3.2]: https://github.com/Project-MONAI/MONAI/compare/1.3.1...1.3.2

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: 2025-06-13
10-
version: "1.5.0"
9+
date-released: 2025-09-22
10+
version: "1.5.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_5_1.md
910
whatsnew_1_5.md
1011
whatsnew_1_4.md
1112
whatsnew_1_3.md

docs/source/whatsnew_1_5.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.5 🎉🎉
2+
# What's new in 1.5
33

44
- Support numpy 2.x and Pytorch 2.6
55
- MAISI inference accelerate

docs/source/whatsnew_1_5_1.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# What's new in 1.5.1 🎉🎉
3+
4+
This is a minor update for MONAI to address security concerns and improve compatibility with the newest PyTorch release.
5+
6+
With the upgrade support for PyTorch 2.8, MONAI now directly support NVIDIA GeForce RTX 50 series GPUs and other Blackwell-based GPUs!
7+
8+
- Support up to PyTorch 2.8.
9+
- Security fixes to address advisories [GHSA-x6ww-pf9m-m73m](https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-x6ww-pf9m-m73m), [GHSA-6vm5-6jv9-rjpj](https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-6vm5-6jv9-rjpj), and [GHSA-p8cm-mm2v-gwjm](https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-p8cm-mm2v-gwjm),
10+
- Updated version of supported Huggingface Transformers library to address security advisories raised for it.
11+
- Updated Torchvision pretrained network loading to use current arguments.
12+
- Many minor fixes to identified issues, see release notes for details on merged PRs.

monai/networks/nets/diffusion_model_unet.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import math
3535
from collections.abc import Sequence
3636
from functools import reduce
37-
from typing import Optional
3837

3938
import numpy as np
4039
import torch
@@ -2016,7 +2015,7 @@ def __init__(
20162015

20172016
last_dim_flattened = int(reduce(lambda x, y: x * y, input_shape) * channels[-1])
20182017

2019-
self.out: Optional[nn.Module] = nn.Sequential(
2018+
self.out: nn.Module = nn.Sequential(
20202019
nn.Linear(last_dim_flattened, 512), nn.ReLU(), nn.Dropout(0.1), nn.Linear(512, self.out_channels)
20212020
)
20222021

@@ -2063,9 +2062,6 @@ def forward(
20632062
h = h.reshape(h.shape[0], -1)
20642063

20652064
# 5. out
2066-
self.out = nn.Sequential(
2067-
nn.Linear(h.shape[1], 512), nn.ReLU(), nn.Dropout(0.1), nn.Linear(512, self.out_channels)
2068-
)
20692065
output: torch.Tensor = self.out(h)
20702066

20712067
return output

0 commit comments

Comments
 (0)