Skip to content

Spleen_segmentation_3d.ipynb was executed and the predicted label and background pixel values were reversed #433

@ljljlj02

Description

@ljljlj02

Hello, Monai is a very good job, but I encountered a problem when learning the tutorial. I used Spleen data, ran spleen_segmentation_3D.ipynb, the code did not change, and the Dice of the training set was the same as the tutorial. Dice can achieve 0.94. But there is a problem in the validation set:

In the 'Evaluation on original Image Spacings' module, the tutorial results in: Metric on original image Spacings: 0.9637420177459717 and MY result is "Metric on original Image spacing: 0.05605338141322136"

In addition, I print out the predicted results, Using SaveImaged(keys="pred",`` meta_keys="pred_meta_dict", output_dir=out_root_dir,resample=False,Output_postfix ="seg")` ,the result is as follows
1
2

The result shows that the pixel values of the label and background are opposite, I wonder how to solve this problem.
Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions