OOM when predict in transforms.Invertd #4191
-
There are no error in my training process and most of prediction. But when i predict some file , there will be an error about cuda oom. I dont konw how to fix it. My transforms and prediction code at this.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @XIANYUNYEHE-DEL , Thanks for your interest here and experiments. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Hi @XIANYUNYEHE-DEL ,
Thanks for your interest here and experiments.
I think that may be because your
inverse
transform computation is on GPU Tensor, could you please help addEnsureTyped(keys="image")
to your preprocessing transform chain and try again? Refer to:https://github.com/Project-MONAI/tutorials/blob/master/3d_segmentation/torch/unet_inference_dict.py#L61
Thanks in advance.