Skip to content

Use ensemble just to save the predictions #1189

Answered by KumoLiu
cugwu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cugwu, you could comment key_val_metric, then it will not calculate the metric if you don't have the label.

#         key_val_metric={
#             "test_mean_dice": MeanDice(
#                 include_background=True,
#                 output_transform=from_engine(["pred", "label"]),
#             )
#         },

And add SaveImaged in the post_transforms, then could save the ensemble results.

mean_post_transforms = Compose (
    [
          ....,
          SaveImaged(
                  keys="pred",
                  meta_keys="image_meta_dict",
                  output_ext=".nii.gz",
                  output_dir=output_dir,
                  output_postfix="pred_",
                 …

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@KumoLiu
Comment options

@ahxmeds
Comment options

@KumoLiu
Comment options

@ahxmeds
Comment options

@ahxmeds
Comment options

Answer selected by cugwu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants