From 4b0c3db5197cbca831725ce93df519721842ba52 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Dec 2025 07:11:49 +0000 Subject: [PATCH 01/18] Bump actions/checkout from 4 to 6 (#8649) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
Release notes

Sourced from actions/checkout's releases.

v6.0.0

What's Changed

Full Changelog: https://github.com/actions/checkout/compare/v5.0.0...v6.0.0

v6-beta

What's Changed

Updated persist-credentials to store the credentials under $RUNNER_TEMP instead of directly in the local git config.

This requires a minimum Actions Runner version of v2.329.0 to access the persisted credentials for Docker container action scenarios.

v5.0.1

What's Changed

Full Changelog: https://github.com/actions/checkout/compare/v5...v5.0.1

v5.0.0

What's Changed

⚠️ Minimum Compatible Runner Version

v2.327.1
Release Notes

Make sure your runner is updated to this version or newer to use this release.

Full Changelog: https://github.com/actions/checkout/compare/v4...v5.0.0

v4.3.1

What's Changed

Full Changelog: https://github.com/actions/checkout/compare/v4...v4.3.1

v4.3.0

What's Changed

... (truncated)

Changelog

Sourced from actions/checkout's changelog.

Changelog

V6.0.0

V5.0.1

V5.0.0

V4.3.1

V4.3.0

v4.2.2

v4.2.1

v4.2.0

v4.1.7

v4.1.6

v4.1.5

... (truncated)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/checkout&package-manager=github_actions&previous-version=4&new-version=6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
--------- Signed-off-by: dependabot[bot] Signed-off-by: Yun Liu Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yun Liu Signed-off-by: Mohammad Amanour Rahman --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/conda.yml | 2 +- .github/workflows/cron-ngc-bundle.yml | 2 +- .github/workflows/cron.yml | 8 ++++---- .github/workflows/docker.yml | 4 ++-- .github/workflows/integration.yml | 4 ++-- .github/workflows/pythonapp-gpu.yml | 2 +- .github/workflows/pythonapp-min.yml | 6 +++--- .github/workflows/pythonapp.yml | 8 ++++---- .github/workflows/release.yml | 6 +++--- .github/workflows/setupapp.yml | 6 +++--- .github/workflows/weekly-preview.yml | 4 ++-- 12 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 10ca752a5e..5166517cbe 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml index ec753adace..6103e30ae6 100644 --- a/.github/workflows/conda.yml +++ b/.github/workflows/conda.yml @@ -32,7 +32,7 @@ jobs: minimum-size: 8GB maximum-size: 16GB disk-root: "D:" - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Clean up disk space run: | find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \; diff --git a/.github/workflows/cron-ngc-bundle.yml b/.github/workflows/cron-ngc-bundle.yml index c9bebc7bff..3bdebd5730 100644 --- a/.github/workflows/cron-ngc-bundle.yml +++ b/.github/workflows/cron-ngc-bundle.yml @@ -17,7 +17,7 @@ jobs: if: github.repository == 'Project-MONAI/MONAI' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python 3.9 uses: actions/setup-python@v6 with: diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index f33faf8c1a..dca48dd9c8 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -32,7 +32,7 @@ jobs: options: "--gpus all" runs-on: [self-hosted, linux, x64, common] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: apt install run: | apt-get update @@ -82,7 +82,7 @@ jobs: options: "--gpus all" runs-on: [self-hosted, linux, x64, integration] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install APT dependencies run: | apt-get update @@ -131,7 +131,7 @@ jobs: options: "--gpus all" runs-on: [self-hosted, linux, x64, integration] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Install the dependencies @@ -233,7 +233,7 @@ jobs: options: "--gpus all --ipc=host" runs-on: [self-hosted, linux, x64, integration] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install MONAI id: monai-install run: | diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4741dca858..25cffc09c3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -21,7 +21,7 @@ jobs: if: ${{ false }} # disable docker build job project-monai/monai#7450 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 # full history so that we can git describe with: ref: dev @@ -53,7 +53,7 @@ jobs: needs: versioning_dev runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: ref: dev - name: Download version diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 597f59f767..54b5a3f381 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -13,7 +13,7 @@ jobs: runs-on: [self-hosted, linux, x64, command] steps: # checkout the pull request branch - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: token: ${{ secrets.PR_MAINTAIN }} repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} @@ -89,7 +89,7 @@ jobs: runs-on: [self-hosted, linux, x64, command1] steps: # checkout the pull request branch - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: token: ${{ secrets.PR_MAINTAIN }} repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} diff --git a/.github/workflows/pythonapp-gpu.yml b/.github/workflows/pythonapp-gpu.yml index 347b49bba3..036ef50f41 100644 --- a/.github/workflows/pythonapp-gpu.yml +++ b/.github/workflows/pythonapp-gpu.yml @@ -44,7 +44,7 @@ jobs: options: --gpus all --env NVIDIA_DISABLE_REQUIRE=true # workaround for unsatisfied condition: cuda>=11.6 runs-on: [self-hosted, linux, x64, common] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: apt install if: github.event.pull_request.merged != true run: | diff --git a/.github/workflows/pythonapp-min.yml b/.github/workflows/pythonapp-min.yml index 34a328672a..844d8c844e 100644 --- a/.github/workflows/pythonapp-min.yml +++ b/.github/workflows/pythonapp-min.yml @@ -30,7 +30,7 @@ jobs: os: [windows-latest, macOS-latest, ubuntu-latest] timeout-minutes: 40 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python 3.9 uses: actions/setup-python@v6 with: @@ -79,7 +79,7 @@ jobs: python-version: ['3.9', '3.10', '3.11', '3.12'] timeout-minutes: 40 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6 with: @@ -128,7 +128,7 @@ jobs: pytorch-version: ['2.5.1', '2.6.0', '2.7.1', '2.8.0'] timeout-minutes: 40 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python 3.9 uses: actions/setup-python@v6 with: diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index ddc42b8975..fca9136763 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -28,7 +28,7 @@ jobs: matrix: opt: ["codeformat", "pytype", "mypy"] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python 3.9 uses: actions/setup-python@v6 with: @@ -70,7 +70,7 @@ jobs: minimum-size: 8GB maximum-size: 16GB disk-root: "D:" - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python 3.9 uses: actions/setup-python@v6 with: @@ -129,7 +129,7 @@ jobs: QUICKTEST: True shell: bash steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Set up Python 3.9 @@ -213,7 +213,7 @@ jobs: build-docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python 3.9 uses: actions/setup-python@v6 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a8e8ffdf6..fe1f8ea411 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: matrix: python-version: ['3.9', '3.10', '3.11'] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} @@ -93,7 +93,7 @@ jobs: needs: packaging runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 # full history so that we can git describe with: fetch-depth: 0 @@ -125,7 +125,7 @@ jobs: needs: versioning runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Download version uses: actions/download-artifact@v6 with: diff --git a/.github/workflows/setupapp.yml b/.github/workflows/setupapp.yml index acd72eaf6f..46e02592df 100644 --- a/.github/workflows/setupapp.yml +++ b/.github/workflows/setupapp.yml @@ -28,7 +28,7 @@ jobs: options: --gpus all runs-on: [self-hosted, linux, x64, integration] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: cache weekly timestamp id: pip-cache run: | @@ -83,7 +83,7 @@ jobs: matrix: python-version: ['3.9', '3.10', '3.11'] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} @@ -159,7 +159,7 @@ jobs: python -c 'import monai; monai.config.print_config()' - name: Get the test cases (dev branch only) if: github.ref == 'refs/heads/dev' - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: dev - name: Quick test installed (dev branch only) diff --git a/.github/workflows/weekly-preview.yml b/.github/workflows/weekly-preview.yml index 93d6f67f09..44618b58d8 100644 --- a/.github/workflows/weekly-preview.yml +++ b/.github/workflows/weekly-preview.yml @@ -11,7 +11,7 @@ jobs: matrix: opt: ["codeformat", "pytype", "mypy"] steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python 3.9 uses: actions/setup-python@v6 with: @@ -42,7 +42,7 @@ jobs: if: github.repository == 'Project-MONAI/MONAI' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: ref: dev fetch-depth: 0 From 0509ef2a6ba12ded9bf626c69468ce2ab40fbddd Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Mon, 22 Dec 2025 23:10:50 +0600 Subject: [PATCH 02/18] Fix network_type docstring formatting in PerceptualLoss Signed-off-by: Mohammad Amanour Rahman --- monai/losses/perceptual.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/monai/losses/perceptual.py b/monai/losses/perceptual.py index 2ae03bc8dc..3c9e22c36a 100644 --- a/monai/losses/perceptual.py +++ b/monai/losses/perceptual.py @@ -49,9 +49,11 @@ class PerceptualLoss(nn.Module): Args: spatial_dims: number of spatial dimensions. - network_type: {``"alex"``, ``"vgg"``, ``"squeeze"``, ``"radimagenet_resnet50"``, - ``"medicalnet_resnet10_23datasets"``, ``"medicalnet_resnet50_23datasets"``, ``"resnet50"``} - Specifies the network architecture to use. Defaults to ``"alex"``. + network_type: str or PercetualNetworkType Specifies the network architecture to use. Supported values are defined in + ``PercetualNetworkType`` (e.g., ``"alex"``, ``"vgg"``, ``"squeeze"``, + ``"radimagenet_resnet50"``, ``"medicalnet_resnet10_23datasets"``, + ``"medicalnet_resnet50_23datasets"``, ``"resnet50"``). + Defaults to ``PercetualNetworkType.alex``. is_fake_3d: if True use 2.5D approach for a 3D perceptual loss. fake_3d_ratio: ratio of how many slices per axis are used in the 2.5D approach. cache_dir: path to cache directory to save the pretrained network weights. From c0b0bdb0d5a3a74490a899a44d8abc58b8e7c886 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Mon, 22 Dec 2025 23:33:53 +0600 Subject: [PATCH 03/18] DCO Remediation Commit for Mohammad Amanour Rahman I, Mohammad Amanour Rahman , hereby add my Signed-off-by to this commit. Signed-off-by: Mohammad Amanour Rahman --- monai/losses/perceptual.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/monai/losses/perceptual.py b/monai/losses/perceptual.py index 3c9e22c36a..219f35c7dd 100644 --- a/monai/losses/perceptual.py +++ b/monai/losses/perceptual.py @@ -23,7 +23,7 @@ torchvision, _ = optional_import("torchvision") -class PercetualNetworkType(StrEnum): +class PerceptualNetworkType(StrEnum): alex = "alex" vgg = "vgg" squeeze = "squeeze" @@ -49,11 +49,15 @@ class PerceptualLoss(nn.Module): Args: spatial_dims: number of spatial dimensions. - network_type: str or PercetualNetworkType Specifies the network architecture to use. Supported values are defined in - ``PercetualNetworkType`` (e.g., ``"alex"``, ``"vgg"``, ``"squeeze"``, - ``"radimagenet_resnet50"``, ``"medicalnet_resnet10_23datasets"``, - ``"medicalnet_resnet50_23datasets"``, ``"resnet50"``). - Defaults to ``PercetualNetworkType.alex``. + network_type : str + One of: + - "alex" + - "vgg" + - "squeeze" + - "radimagenet_resnet50" + - "medicalnet_resnet10_23datasets" + - "medicalnet_resnet50_23datasets" + - "resnet50" is_fake_3d: if True use 2.5D approach for a 3D perceptual loss. fake_3d_ratio: ratio of how many slices per axis are used in the 2.5D approach. cache_dir: path to cache directory to save the pretrained network weights. From 658af7160c9979d7769ea5f71132fe01753ccc09 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Mon, 22 Dec 2025 23:35:40 +0600 Subject: [PATCH 04/18] DCO Remediation Commit for Mohammad Amanour Rahman I, Mohammad Amanour Rahman , hereby add my Signed-off-by to this commit. Signed-off-by: Mohammad Amanour Rahman From 2563a3c051317d358d260c1f0ab764ef2d8af270 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 00:04:10 +0600 Subject: [PATCH 05/18] Fix PerceptualLoss enum references and docstrings Signed-off-by: Mohammad Amanour Rahman --- monai/losses/perceptual.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monai/losses/perceptual.py b/monai/losses/perceptual.py index 219f35c7dd..37d6cd692d 100644 --- a/monai/losses/perceptual.py +++ b/monai/losses/perceptual.py @@ -76,7 +76,7 @@ class PerceptualLoss(nn.Module): def __init__( self, spatial_dims: int, - network_type: str = PercetualNetworkType.alex, + network_type: str = PerceptualNetworkType.alex, is_fake_3d: bool = True, fake_3d_ratio: float = 0.5, cache_dir: str | None = None, @@ -99,10 +99,10 @@ def __init__( if channel_wise and "medicalnet_" not in network_type: raise ValueError("Channel-wise loss is only compatible with MedicalNet networks.") - if network_type.lower() not in list(PercetualNetworkType): + if network_type.lower() not in list(PerceptualNetworkType): raise ValueError( "Unrecognised criterion entered for Adversarial Loss. Must be one in: %s" - % ", ".join(PercetualNetworkType) + % ", ".join(PerceptualNetworkType) ) if cache_dir: From d2de10dca8db8c6e56c175de4172fa3263eb65e4 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 00:06:13 +0600 Subject: [PATCH 06/18] DCO Remediation Commit for Mohammad Amanour Rahman I, Mohammad Amanour Rahman , hereby add my Signed-off-by to this commit: 7ce29a1 Signed-off-by: Mohammad Amanour Rahman From f9c15591ae3b34bc48dbdce1031ec5f627773f78 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 00:06:17 +0600 Subject: [PATCH 07/18] DCO Remediation Commit for Mohammad Amanour Rahman I, Mohammad Amanour Rahman , hereby add my Signed-off-by to this commit: cc0c951 Signed-off-by: Mohammad Amanour Rahman From 695609c38cd52edde11a07a5817db6ccce5e81dd Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 00:07:53 +0600 Subject: [PATCH 08/18] Fix PerceptualLoss enum references and docstrings Signed-off-by: Mohammad Amanour Rahman --- monai/losses/perceptual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/losses/perceptual.py b/monai/losses/perceptual.py index 37d6cd692d..dca3ec30e2 100644 --- a/monai/losses/perceptual.py +++ b/monai/losses/perceptual.py @@ -49,7 +49,7 @@ class PerceptualLoss(nn.Module): Args: spatial_dims: number of spatial dimensions. - network_type : str + network_type: str | PercetualNetworkType = PercetualNetworkType.alex, One of: - "alex" - "vgg" From 67ba0fa31f145e5d01471327790da9b90506ea32 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 00:16:53 +0600 Subject: [PATCH 09/18] DCO Remediation Commit for Mohammad Amanour Rahman I, Mohammad Amanour Rahman , hereby add my Signed-off-by to this commit: 7ce29a1 Signed-off-by: Mohammad Amanour Rahman From 10b5cdabd67df5d71b49aa0e8bacc35f995ec849 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 00:17:00 +0600 Subject: [PATCH 10/18] DCO Remediation Commit for Mohammad Amanour Rahman I, Mohammad Amanour Rahman , hereby add my Signed-off-by to this commit: cc0c951 Signed-off-by: Mohammad Amanour Rahman From eae8ca5730a518db35fca27db3986fec305ca559 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 00:17:04 +0600 Subject: [PATCH 11/18] DCO Remediation Commit for Mohammad Amanour Rahman I, Mohammad Amanour Rahman , hereby add my Signed-off-by to this commit: 3e92d74 Signed-off-by: Mohammad Amanour Rahman From 0bad60d0e8876881b37446075b43154f5adcf19b Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Mon, 22 Dec 2025 23:10:50 +0600 Subject: [PATCH 12/18] Fix network_type docstring formatting in PerceptualLoss Signed-off-by: Mohammad Amanour Rahman --- e --abort | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 e --abort diff --git a/e --abort b/e --abort new file mode 100644 index 0000000000..08c6a46e26 --- /dev/null +++ b/e --abort @@ -0,0 +1,114 @@ +bc38c962 (HEAD -> dev) Fix PerceptualLoss enum references and docstrings +be2869df Fix network_type docstring formatting in PerceptualLoss +ccea8930 (origin/dev, origin/HEAD) DCO Remediation Commit for Mohammad Amanour Rahman +0c667a99 DCO Remediation Commit for Mohammad Amanour Rahman +ea64afaf DCO Remediation Commit for Mohammad Amanour Rahman +3e92d74e Fix PerceptualLoss enum references and docstrings +84e7d704 DCO Remediation Commit for Mohammad Amanour Rahman +eeef1729 DCO Remediation Commit for Mohammad Amanour Rahman +cc0c951f Fix PerceptualLoss enum references and docstrings +96ea131f DCO Remediation Commit for Mohammad Amanour Rahman +e2d0a027 DCO Remediation Commit for Mohammad Amanour Rahman +7ce29a1e Fix network_type docstring formatting in PerceptualLoss +15fd428c Bump actions/checkout from 4 to 6 (#8649) +e5417c86 Bump al-cheb/configure-pagefile-action from 1.4 to 1.5 (#8648) +c1d02cf1 Bump peter-evans/slash-command-dispatch from 4.0.0 to 5.0.0 (#8650) +e2677053 Added an optional_import check for onnxruntime and applied the @unitt… (#8641) +04a89ee9 Generate heatmap transforms (#8579) +f493ecdd 8620 modulenotfounderror no module named onnxscript in test py3x 311 pipeline (#8638) +9a456274 Fix #8350: Clarify LocalNormalizedCrossCorrelationLoss docstring (#8639) +865b0e70 Update documentation links (#8637) +c968907c Fix #8599: Add track_meta and weights_only arguments to PersistentDataset for MetaTensor support. (#8628) +806c0e84 Fix index using tuple for image cropping operation (#8633) +23c271ea feat: add activation checkpointing to unet (#8554) +16e469c8 Correct H&E stain ordering heuristic in ExtractHEStains (#8551) +a8a7e575 timestep scheduling with np.linspace (#8623) +f315bcb0 8620 ModuleNotFoundError: No module named \'onnxscript\' in test-py3x (3.11) pipeline (#8621) +e72145ce Fix box_iou returning 0 for floating-point results less than 1. #8369 (#8553) +579cec52 added ReduceTrait and FlattenSequence (#8531) +d260b785 Bump github/codeql-action from 3 to 4 (#8616) +b10410ce Bump actions/upload-artifact from 4 to 5 (#8615) +69444c13 Bump actions/download-artifact from 5 to 6 (#8614) +d9cfa3e6 Bump peter-evans/create-or-update-comment from 4 to 5 (#8612) +09ace633 Include more-itertools in build env (#8611) +42a99477 8564 fourier positional encoding (#8570) +69f3dd26 Bump actions/setup-python from 5 to 6 (#8589) +c4a1acc8 Bump actions/checkout from 4 to 5 (#8588) +8a2efcb0 Bump actions/download-artifact from 4 to 5 (#8590) +53382d83 Update citation for 1.5.1 (#8582) +9c6d819f Release 1.5.1 Updates (#8575) +9122739e Removing instantiation in forward (#8580) +cf5790db Fix gdown fails (#8576) +cf5505a5 Diffusion Model Encoder has an output layer set in forward method and this leads to problems (#8578) +6327a861 Transformers version (#8574) +946cfdff Path traversal issue security fix (#8568) +948fbb70 Torch and Pickle Safe Load Fixes (#8566) +401ea4a0 Fix hardcoded input dim in DiffusionModelEncoder (#8514) +fd13c1b5 Create SECURITY.md (#8546) +725c8dea Torchvision pretrain fix (#8563) +b5bc69d0 Classifier free guidance unconditioned value (#8562) +0968da20 Improve Orientation transform to use the "space" (LPS vs RAS) of a metatensor by default (#8473) +d4ba52e3 Fix build failure by pinning pyamg to versions below 5.3.0 (#8548) +cb200af0 Tests Cleanup (#8535) +1e6c6615 8525 improve documentation on the datalist format (#8539) +cf869814 fix: HistogramNormalized doc (#8543) +cafc1feb Pytorch 2.8 Support (#8530) +b92b2ce8 Add support for optional conditioning in PatchInferer, SliceInferer, and SlidingWindowInferer (#8400) +2a12c4b4 Add input validation to ImageStats class (#8501) +ede6ace8 Throw exception on invalid images in retinanet detector (#8515) +1dc0e68c 8185 test refactor 2 (#8405) +503b4ede fix bug in maisi vae (#8517) +8ee3f89b Updates for Pytorch 2.7 (#8429) +def42221 Adding .coderabbit.yaml File (#8513) +e0be5d27 Update README badges to add research paper citations number (#8494) +e499362b add kwargs in array and functional file (#8508) +4b69748a ci: add custom timeout to ci job in order to save resources (#8504) +d388d1c6 Update citation (#8484) +3d6021a6 Fix: ZarrAvgMerger ValueError with zarr_format 3 (#8477) +d38c93f9 Removed or Replaced Broken URLs (#8483) +e5c512ff Fix integration test in 24.10 (#8480) +423ea748 Fixing URLs in README.md (#8481) +dfe6fc77 Changelog For 1.5 (#8474) +c3a317d2 Adding CODEOWNERS (#8457) +c3a3397d Remove unused test cases in bundle load (#8463) +2d416557 Classifier free guidance (#8460) +f85135b0 Remove deprecated `net_name` in test file (#8461) +d4b4bff9 Adding Support Policy + Doc Updates (#8458) +222d5094 Migrate to modern Python Logger API (#8449) +bf6bc1fd Enable code coverage comments on PRs in codecov configuration (#8402) +707b2305 Remove deprecated `return_state_dict ` in bundle `load` (#8454) +03a0d851 Fix AutoencoderKL docstrings. (#8445) +daf9f054 Update default overlap value in occlusion_sensitivity to 0.6 (#8446) +f97a0e9b Remove deprecated functionality for v1.5 (#8430) +4305bb81 :bug: fix cosine noise scheduler (#8427) +0d19a72f Temporarily Restrict setuptools Version to 79.0.1 (#8441) +b58e883c selfattention block: Remove the fc linear layer if it is not used (#8325) +f27517b8 Inverse Threading Fix (#8418) +8f3d8e87 Update get latest bundle version function (#8420) +eadffd24 Fix OptionalImportError: required package `openslide` is not installed (#8419) +9586071c Add Skip test in TestTranschex (#8416) +6c8de354 8394 Update bundle download API (#8403) +83dcd35c Fix: correctly apply fftshift to real-valued data inputs (#8407) +90ead4bf 8328 nnunet bundle integration (#8329) +4986d7ff Auto3DSeg algo_template hash update (#8406) +bfcb318b Restormer Implementation (#8312) +8aef9a98 Update Dice Metric Docs (#8388) +5c5ca232 Auto3DSeg algo_template hash update (#8397) +0f5da113 Auto3DSeg algo_template hash update (#8393) +41d6c9c2 8201 Fix DataFrame subsets indexing in CSVDataset() (#8351) +34f37973 add prediction type for rflow scheduler (#8386) +90de55b1 Add rectified flow noise scheduler for accelerated diffusion model (#8374) +7c26e5af Enable Pytorch 2.6 (#8309) +1983f277 Auto3DSeg algo_template hash update (#8378) +2e391c82 Bump torch minimum to mitigate CVE-2024-31580 & CVE-2024-31583 and enable numpy 2 compatibility (#8368) +a09c1f08 Update monaihosting download method (#8364) +ab075234 Modify ControlNet inferer so that it takes in context when the diffus… (#8360) +a7905909 8354 fix path at test onnx trt export (#8361) +d98f3481 Solves path problem in test_bundle_trt_export.py (#8357) +af54a17b Add Average Precision to metrics (#8089) +b0ed2534 Fix CommonKeys docstring (#8342) +fb8c5bf7 Removed outdated `torch` version checks from transform functions (#8359) +960c59b4 Fix `packaging` imports in version comparison logic (#8347) +0a85eed2 Inferer modification - save_intermediates clashes with latent shape adjustment in latent diffusion inferers (#8343) +44add8d1 Bump min torch to 1.13.1 to mitigate CVE-2022-45907 unsafe usage of eval (#8296) +e538f7fd Recursive Item Mapping for Nested Lists in Compose (#8187) From 8f9f5078f15082c3499fa00398f76d75075334d6 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 00:04:10 +0600 Subject: [PATCH 13/18] WIP: temp commit before cherry-pick Signed-off-by: Mohammad Amanour Rahman --- e --abort | 114 ------------------------------------------------------ 1 file changed, 114 deletions(-) delete mode 100644 e --abort diff --git a/e --abort b/e --abort deleted file mode 100644 index 08c6a46e26..0000000000 --- a/e --abort +++ /dev/null @@ -1,114 +0,0 @@ -bc38c962 (HEAD -> dev) Fix PerceptualLoss enum references and docstrings -be2869df Fix network_type docstring formatting in PerceptualLoss -ccea8930 (origin/dev, origin/HEAD) DCO Remediation Commit for Mohammad Amanour Rahman -0c667a99 DCO Remediation Commit for Mohammad Amanour Rahman -ea64afaf DCO Remediation Commit for Mohammad Amanour Rahman -3e92d74e Fix PerceptualLoss enum references and docstrings -84e7d704 DCO Remediation Commit for Mohammad Amanour Rahman -eeef1729 DCO Remediation Commit for Mohammad Amanour Rahman -cc0c951f Fix PerceptualLoss enum references and docstrings -96ea131f DCO Remediation Commit for Mohammad Amanour Rahman -e2d0a027 DCO Remediation Commit for Mohammad Amanour Rahman -7ce29a1e Fix network_type docstring formatting in PerceptualLoss -15fd428c Bump actions/checkout from 4 to 6 (#8649) -e5417c86 Bump al-cheb/configure-pagefile-action from 1.4 to 1.5 (#8648) -c1d02cf1 Bump peter-evans/slash-command-dispatch from 4.0.0 to 5.0.0 (#8650) -e2677053 Added an optional_import check for onnxruntime and applied the @unitt… (#8641) -04a89ee9 Generate heatmap transforms (#8579) -f493ecdd 8620 modulenotfounderror no module named onnxscript in test py3x 311 pipeline (#8638) -9a456274 Fix #8350: Clarify LocalNormalizedCrossCorrelationLoss docstring (#8639) -865b0e70 Update documentation links (#8637) -c968907c Fix #8599: Add track_meta and weights_only arguments to PersistentDataset for MetaTensor support. (#8628) -806c0e84 Fix index using tuple for image cropping operation (#8633) -23c271ea feat: add activation checkpointing to unet (#8554) -16e469c8 Correct H&E stain ordering heuristic in ExtractHEStains (#8551) -a8a7e575 timestep scheduling with np.linspace (#8623) -f315bcb0 8620 ModuleNotFoundError: No module named \'onnxscript\' in test-py3x (3.11) pipeline (#8621) -e72145ce Fix box_iou returning 0 for floating-point results less than 1. #8369 (#8553) -579cec52 added ReduceTrait and FlattenSequence (#8531) -d260b785 Bump github/codeql-action from 3 to 4 (#8616) -b10410ce Bump actions/upload-artifact from 4 to 5 (#8615) -69444c13 Bump actions/download-artifact from 5 to 6 (#8614) -d9cfa3e6 Bump peter-evans/create-or-update-comment from 4 to 5 (#8612) -09ace633 Include more-itertools in build env (#8611) -42a99477 8564 fourier positional encoding (#8570) -69f3dd26 Bump actions/setup-python from 5 to 6 (#8589) -c4a1acc8 Bump actions/checkout from 4 to 5 (#8588) -8a2efcb0 Bump actions/download-artifact from 4 to 5 (#8590) -53382d83 Update citation for 1.5.1 (#8582) -9c6d819f Release 1.5.1 Updates (#8575) -9122739e Removing instantiation in forward (#8580) -cf5790db Fix gdown fails (#8576) -cf5505a5 Diffusion Model Encoder has an output layer set in forward method and this leads to problems (#8578) -6327a861 Transformers version (#8574) -946cfdff Path traversal issue security fix (#8568) -948fbb70 Torch and Pickle Safe Load Fixes (#8566) -401ea4a0 Fix hardcoded input dim in DiffusionModelEncoder (#8514) -fd13c1b5 Create SECURITY.md (#8546) -725c8dea Torchvision pretrain fix (#8563) -b5bc69d0 Classifier free guidance unconditioned value (#8562) -0968da20 Improve Orientation transform to use the "space" (LPS vs RAS) of a metatensor by default (#8473) -d4ba52e3 Fix build failure by pinning pyamg to versions below 5.3.0 (#8548) -cb200af0 Tests Cleanup (#8535) -1e6c6615 8525 improve documentation on the datalist format (#8539) -cf869814 fix: HistogramNormalized doc (#8543) -cafc1feb Pytorch 2.8 Support (#8530) -b92b2ce8 Add support for optional conditioning in PatchInferer, SliceInferer, and SlidingWindowInferer (#8400) -2a12c4b4 Add input validation to ImageStats class (#8501) -ede6ace8 Throw exception on invalid images in retinanet detector (#8515) -1dc0e68c 8185 test refactor 2 (#8405) -503b4ede fix bug in maisi vae (#8517) -8ee3f89b Updates for Pytorch 2.7 (#8429) -def42221 Adding .coderabbit.yaml File (#8513) -e0be5d27 Update README badges to add research paper citations number (#8494) -e499362b add kwargs in array and functional file (#8508) -4b69748a ci: add custom timeout to ci job in order to save resources (#8504) -d388d1c6 Update citation (#8484) -3d6021a6 Fix: ZarrAvgMerger ValueError with zarr_format 3 (#8477) -d38c93f9 Removed or Replaced Broken URLs (#8483) -e5c512ff Fix integration test in 24.10 (#8480) -423ea748 Fixing URLs in README.md (#8481) -dfe6fc77 Changelog For 1.5 (#8474) -c3a317d2 Adding CODEOWNERS (#8457) -c3a3397d Remove unused test cases in bundle load (#8463) -2d416557 Classifier free guidance (#8460) -f85135b0 Remove deprecated `net_name` in test file (#8461) -d4b4bff9 Adding Support Policy + Doc Updates (#8458) -222d5094 Migrate to modern Python Logger API (#8449) -bf6bc1fd Enable code coverage comments on PRs in codecov configuration (#8402) -707b2305 Remove deprecated `return_state_dict ` in bundle `load` (#8454) -03a0d851 Fix AutoencoderKL docstrings. (#8445) -daf9f054 Update default overlap value in occlusion_sensitivity to 0.6 (#8446) -f97a0e9b Remove deprecated functionality for v1.5 (#8430) -4305bb81 :bug: fix cosine noise scheduler (#8427) -0d19a72f Temporarily Restrict setuptools Version to 79.0.1 (#8441) -b58e883c selfattention block: Remove the fc linear layer if it is not used (#8325) -f27517b8 Inverse Threading Fix (#8418) -8f3d8e87 Update get latest bundle version function (#8420) -eadffd24 Fix OptionalImportError: required package `openslide` is not installed (#8419) -9586071c Add Skip test in TestTranschex (#8416) -6c8de354 8394 Update bundle download API (#8403) -83dcd35c Fix: correctly apply fftshift to real-valued data inputs (#8407) -90ead4bf 8328 nnunet bundle integration (#8329) -4986d7ff Auto3DSeg algo_template hash update (#8406) -bfcb318b Restormer Implementation (#8312) -8aef9a98 Update Dice Metric Docs (#8388) -5c5ca232 Auto3DSeg algo_template hash update (#8397) -0f5da113 Auto3DSeg algo_template hash update (#8393) -41d6c9c2 8201 Fix DataFrame subsets indexing in CSVDataset() (#8351) -34f37973 add prediction type for rflow scheduler (#8386) -90de55b1 Add rectified flow noise scheduler for accelerated diffusion model (#8374) -7c26e5af Enable Pytorch 2.6 (#8309) -1983f277 Auto3DSeg algo_template hash update (#8378) -2e391c82 Bump torch minimum to mitigate CVE-2024-31580 & CVE-2024-31583 and enable numpy 2 compatibility (#8368) -a09c1f08 Update monaihosting download method (#8364) -ab075234 Modify ControlNet inferer so that it takes in context when the diffus… (#8360) -a7905909 8354 fix path at test onnx trt export (#8361) -d98f3481 Solves path problem in test_bundle_trt_export.py (#8357) -af54a17b Add Average Precision to metrics (#8089) -b0ed2534 Fix CommonKeys docstring (#8342) -fb8c5bf7 Removed outdated `torch` version checks from transform functions (#8359) -960c59b4 Fix `packaging` imports in version comparison logic (#8347) -0a85eed2 Inferer modification - save_intermediates clashes with latent shape adjustment in latent diffusion inferers (#8343) -44add8d1 Bump min torch to 1.13.1 to mitigate CVE-2022-45907 unsafe usage of eval (#8296) -e538f7fd Recursive Item Mapping for Nested Lists in Compose (#8187) From 31e620ae8ceef7465106bee7a91713e1d0b92bb7 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 23 Dec 2025 02:04:38 +0600 Subject: [PATCH 14/18] Mohammad Amanour Rahman DCO Remediation Commit for Mohammad Amanour Rahman I, Mohammad Amanour Rahman , hereby add my Signed-off-by to the previous commits. Signed-off-by: Mohammad Amanour Rahman From 3b7a5c09cecd6f9b6cb3524da0163798b6ceefb1 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Wed, 24 Dec 2025 01:12:21 +0600 Subject: [PATCH 15/18] feat: add installation hints for missing image writers #7980 Signed-off-by: Mohammad Amanour Rahman --- monai/data/image_writer.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/monai/data/image_writer.py b/monai/data/image_writer.py index b9e8b9e68e..35684e1300 100644 --- a/monai/data/image_writer.py +++ b/monai/data/image_writer.py @@ -116,7 +116,26 @@ def resolve_writer(ext_name, error_if_not_found=True) -> Sequence: except Exception: # other writer init errors indicating it exists avail_writers.append(_writer) if not avail_writers and error_if_not_found: - raise OptionalImportError(f"No ImageWriter backend found for {fmt}.") + RECOMMENDED_PACKAGES = { + "png": "Pillow", + "jpg": "Pillow", + "jpeg": "Pillow", + "nii": "nibabel or SimpleITK", + "nii.gz": "nibabel or SimpleITK", + "nrrd": "pynrrd", + "tif": "Pillow or tifffile", + "tiff": "Pillow or tifffile", + } + + fmt_clean = fmt.replace(".", "").lower() + package_hint = RECOMMENDED_PACKAGES.get(fmt_clean, "") + + msg = f"No ImageWriter backend found for {fmt}." + if package_hint: + msg += f" Please install '{package_hint}' (e.g., pip install {package_hint})." + + raise OptionalImportError(msg) + writer_tuple = ensure_tuple(avail_writers) SUPPORTED_WRITERS[fmt] = writer_tuple return writer_tuple From c9a472877a04437e2e112f68ec556cb8678e6361 Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Mon, 29 Dec 2025 22:48:18 +0600 Subject: [PATCH 16/18] Fix N806: rename RECOMMENDED_PACKAGES to lowercase Signed-off-by: Mohammad Amanour Rahman --- monai/data/image_writer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monai/data/image_writer.py b/monai/data/image_writer.py index 35684e1300..68ace96ce6 100644 --- a/monai/data/image_writer.py +++ b/monai/data/image_writer.py @@ -116,7 +116,7 @@ def resolve_writer(ext_name, error_if_not_found=True) -> Sequence: except Exception: # other writer init errors indicating it exists avail_writers.append(_writer) if not avail_writers and error_if_not_found: - RECOMMENDED_PACKAGES = { + recommended_packages = { "png": "Pillow", "jpg": "Pillow", "jpeg": "Pillow", @@ -128,7 +128,7 @@ def resolve_writer(ext_name, error_if_not_found=True) -> Sequence: } fmt_clean = fmt.replace(".", "").lower() - package_hint = RECOMMENDED_PACKAGES.get(fmt_clean, "") + package_hint = recommended_packages.get(fmt_clean, "") msg = f"No ImageWriter backend found for {fmt}." if package_hint: From 3d3b0cc5588a790e9436fae9b004d448853d5d7a Mon Sep 17 00:00:00 2001 From: Mohammad Amanour Rahman Date: Tue, 30 Dec 2025 00:03:09 +0600 Subject: [PATCH 17/18] Fix logic: preserve dots in format extension for nii.gz lookup Signed-off-by: Mohammad Amanour Rahman --- monai/data/image_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/data/image_writer.py b/monai/data/image_writer.py index 68ace96ce6..0c2fae7e1e 100644 --- a/monai/data/image_writer.py +++ b/monai/data/image_writer.py @@ -127,7 +127,7 @@ def resolve_writer(ext_name, error_if_not_found=True) -> Sequence: "tiff": "Pillow or tifffile", } - fmt_clean = fmt.replace(".", "").lower() + fmt_clean = fmt.lower() package_hint = recommended_packages.get(fmt_clean, "") msg = f"No ImageWriter backend found for {fmt}." From f1210bbfbeb981255f3530568bcc1b21ce28bd2d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Dec 2025 18:03:40 +0000 Subject: [PATCH 18/18] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- monai/data/image_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/data/image_writer.py b/monai/data/image_writer.py index 0c2fae7e1e..1003806f4c 100644 --- a/monai/data/image_writer.py +++ b/monai/data/image_writer.py @@ -133,7 +133,7 @@ def resolve_writer(ext_name, error_if_not_found=True) -> Sequence: msg = f"No ImageWriter backend found for {fmt}." if package_hint: msg += f" Please install '{package_hint}' (e.g., pip install {package_hint})." - + raise OptionalImportError(msg) writer_tuple = ensure_tuple(avail_writers)