Catch Invertd Transform if CUDA Out of Memory #7657
Replies: 3 comments 1 reply
-
Hi @idinsmore1, could you please check the env var Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @KumoLiu I have checked this, it's still 1 after the error catches, and looking at |
Beta Was this translation helpful? Give feedback.
-
Hi there, I'm going to reopen this discussion, as this operation does not seem to be consistently working and I'm more confused than before. I think there may be something going on with the storage/collection of the metadata when the gpu_postprocessing fails, and the cpu_postprocessing tries to pick the process back up. If anyone has any insight to this, it would be greatly appreciated. thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for such an amazing job with MONAI.
I'm running an inference pipeline where I want to do the postprocessing on the GPU when possible, but catch and switch to CPU if out of memory. My preprocessing and postprocessing transformations always work when not OOM, but when the exception catches, I always get the same error.
This is my code
Beta Was this translation helpful? Give feedback.
All reactions