Skip to content
Discussion options

You must be logged in to vote

Hi @OmarAshkar,
In our tutorials, now we only calculate the NP dice. And if you want to calculate other metrics, you could set additional_metrics in SupervisedTrainer.

trainer = SupervisedTrainer(
   .......
    key_train_metric={
        "train_dice": MeanDice(
            include_background=False,
            output_transform=from_engine_hovernet(keys=["pred", "label"], nested_key=HoVerNetBranch.NP.value),
        )
    },
  additional_metrics={
       "nc_dice": MeanDice(
            include_background=False,
            output_transform=from_engine_hovernet(keys=["pred", "label"], nested_key=HoVerNetBranch.NC.value),
        )
   },
  ......
)

You may also need to change the post-pro…

Replies: 1 comment 9 replies

Comment options

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

@OmarAshkar
Comment options

@KumoLiu
Comment options

@OmarAshkar
Comment options

@KumoLiu
Comment options

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