Hi,
I am trying to run the codes here [tutorials/unetr_btcv_segmentation_3d.ipynb at master · Project-MONAI/tutorials (github.com)]
tutorials/unetr_btcv_segmentation_3d.ipynb at master · Project-MONAI/tutorials · GitHub)
But I encounter the problem of:
RuntimeError: CUDA out of memory. Tried to allocate 286.00 MiB (GPU 0; 4.00 GiB total capacity; 1.39 GiB already allocated; 227.40 MiB free; 1.97 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
I am not sure if I am using the GPU optimaly. I have also attached the screenshot of the task maanger. Please let me know if I am doing something wrong?
Thanks