How to use different ignite handlers with hovernet? #5981
-
Hello, I want to get the following:
I found no quick way but use a combination of ClassificationSaver, MetricsSaver and TensorBoardImageHandler. I added MetricsSaver, but it doesn't work as expected. It saves the single last mean_dice for NP calculated and overwrite the previous one. I need to keep track of epochs and add other metrics like mean_dice for NC. The TensorBoardImageHandler and ClassificationSaver doesn't work at all for me. I don't know excatly how to apply batch_transform and output_transform and when to use them. Any help would be useful especially if I can capture ignite.engine.state.batch and ignite.engine.state.output with training and extract what is needed without he need of the handlers. Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @OmarAshkar,
You may also need to change the post-processing since it only processes the NP branch now. For how to save all the metrics you could use MONAI/monai/handlers/tensorboard_handlers.py Lines 79 to 83 in 58c256e In addition, you could refer to this tutorial to learn about how to set Hope it can help you, thanks! |
Beta Was this translation helpful? Give feedback.
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
inSupervisedTrainer
.You may also need to change the post-pro…