-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
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