How to enable CUDA acceleration and benchmark metric of single image pair #3510
-
Hello I am comparing Monai metrics as gold standard to some other tools - for this purpose I want to run the metrics like Dice metric ... with CUDA acceleration on given images - as an example i took whole body bone segmentation where I compare original to translated image. Metric evaluates but I do not see how to switch on CUDA acceleration for it and synchronize GPU in order to get valid benchmark results. I had seen this example https://github.com/Project-MONAI/tutorials/blob/master/acceleration/fast_training_tutorial.ipynb where optimizers and transforms are done with CUDA acceleration, but I am not sure what about metrics.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @jakubMitura14 , Thanks for your interest and experiments here. Thanks. |
Beta Was this translation helpful? Give feedback.
Hi @jakubMitura14 ,
Thanks for your interest and experiments here.
Actually, when you compute metrics for the GPU Tensor data(image, label), it executes on GPU.
Thanks.