Skip to content

fix: typo in PerceptualLoss MedicalNet warning message #8923

Closed

Description

@rtmalikian

Problem

In monai/losses/perceptual.py line 115, the warning message for MedicalNet channel_wise has a typo:

warnings.warn(
    "MedicalNet networks supp, ort channel-wise loss. Consider setting channel_wise=True.", stacklevel=2
)

supp, ort should be support.

Proposed Fix

Correct the typo: "MedicalNet networks support channel-wise loss. Consider setting channel_wise=True."

Affected Files

  • monai/losses/perceptual.py (line 115)

Activity

  1. added a commit that references this issue on Jun 19, 2026
    5dbb26f
  2. MDSALMANSHAMS commented on Aug 4, 2026

    @MDSALMANSHAMS
    Contributor

    This one looks resolved. monai/losses/perceptual.py:115 on dev now reads:

    "MedicalNet networks support channel-wise loss. Consider setting channel_wise=True.", stacklevel=2

    No supp, ort anywhere in the file. Matches what @ericspod said when closing #8924 — the typo was picked up in another commit. Safe to close.

    (Apologies for the mangled first version of this comment, since edited.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions