Skip to content

Nan in nifti files breaks inference #1846

@neuronflow

Description

@neuronflow

Is your feature request related to a problem? Please describe.
I just ran inference on a dataset, some of the nifti files contain Nan. My resulting segmentations where empty due to this.

Describe the solution you'd like
Monai should run np.nan_to_numon the array in the nifti loader or at least throw a warning.

Describe alternatives you've considered
warning or np.nan_to_num

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feedback welcomedwelcome developer and community feedback (make comments or create new tickets if needed)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions