Skip to content

Prepend path to "mask" #1947

@bhashemian

Description

@bhashemian

Is your feature request related to a problem? Please describe.
decathlon_dataloader.py only prepend base_dir path to "image" and if it's segmentation to "label". However, if we have a "mask" entry it is not prepended by base_dir.
https://github.com/Project-MONAI/MONAI/blob/master/monai/data/decathlon_datalist.py#L65-L68

Describe the solution you'd like

            if k == "image" or k == "mask":
                item[k] = _compute_path(base_dir, v)
            elif is_segmentation and k == "label":
                item[k] = _compute_path(base_dir, v)

Metadata

Metadata

Assignees

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