Skip to content

KeyError: 'label' monai/apps/auto3dseg/data_analyzer.py #5427

@wyli

Description

@wyli

Describe the bug
running python -m monai.apps.auto3dseg DataAnalyzer get_all_case_stats with --label_key=None

there's a KeyError: 'label' with this line:

del d["image"], d["label"]

would be great to have test cases for label_key=None

cc @mingxin-zheng do you have time for this?

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