Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dice per label metric to segmentation bundles #660

Open
AHarouni opened this issue Sep 18, 2024 · 0 comments
Open

Add dice per label metric to segmentation bundles #660

AHarouni opened this issue Sep 18, 2024 · 0 comments

Comments

@AHarouni
Copy link

Is your feature request related to a problem? Please describe.
In segmentation tasks the user would need ot

Describe the solution you'd like
we should add this in the val section

        "additional_metrics": {
            "val_dice_lb": {
                "_target_": "MeanDice",
                "include_background": true,
                "output_transform": "$monai.handlers.from_engine(['pred', 'label'])",
                "num_classes": "@output_classes",
                "return_with_label": true,
                "reduction": "mean_batch"
            }
        },
        "evaluator": {
            "_target_": "SupervisedEvaluator",
            "device": "@device",
            "val_data_loader": "@validate#dataloader",
            "network": "@network",
            "inferer": "@validate#inferer",
            "postprocessing": "@validate#postprocessing",
            "key_val_metric": "@validate#key_metric",
            "additional_metrics": "@validate#additional_metrics",
            "val_handlers": "@validate#handlers",
            "amp": true
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant