Skip to content

ConvertToMultiChannelBasedOnBratsClassesd might be wrong #1355

@guopengf

Description

@guopengf

Describe the bug

This Class ConvertToMultiChannelBasedOnBratsClassesd is used in brats_training_ddp.py and brats_segmentation_3d.ipynb. It may map the label data to wrong classes. According to its docstring, it describes that label 2 is the GD-enhancing tumor, and label 3 is the non-enhancing tumor core.

image

However, the json file in this downloaded dataset describes that label 2 is the non-enhancing tumor and label 3 is the GD-enhancing tumor.

To Reproduce

Download the dataset by from the official website or call monai.apps.DecathlonDataset(task="Task01_BrainTumour"). Find the dataset.json.
image

Expected behavior
N/A

Screenshots
I also visually verified labels. It seems like json file is right. label 2 should be the non-enhancing tumor and label 3 should be the GD-enhancing tumor.
image

Environment (please complete the following information):

  • OS
  • Python version
  • MONAI version [e.g. git commit hash]
  • CUDA/cuDNN version
  • GPU models and configuration

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions