Skip to content

partition_dataset_classes should output the partitioned labels tooΒ #7157

@JHancox

Description

@JHancox

Is your feature request related to a problem? Please describe.
If you use partion_dataset_classes, it only returns the partitioned images and not the labels. This means that you have to, instead, pass it a numeric range instead of the images and then use that to get the labels and images. This additional step is not obvious from the documentation, adds additional complexity and seems unneccessary.

Describe the solution you'd like
The function should return the labels as a second return parameter

Describe alternatives you've considered
At the very least, improving the documentation to explain the current usage when you have class labels
If compatibility is an issue, then at least have a non-default parameter, such as return_labels=True

Additional context
Noticed this is the Monai-End-to-End notebook and figured not many folks would work this out intuitively

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions