Cuda Assert Triggered #698
-
Hi! Thank you to all contributors for this wonderful repo, really is a great source for beginners like myself I am making use of the spleen_segmentation_3D.ipynb to perform segmentation on the dataset that I currently have, which is the dataset downloaded from the Kidney and Kidney Tumor Segmentation Challenge 2021. There are 4 classes defined in the dataset, where it includes background, kidney, tumor and cyst. However, in my implementation, I removed the cyst label, thereby only leaving it with 3 classes. I am using Google Colab to run this code, with the GPU enabled. This is the config printed out:
While this is the error generated when I ran the block for Execute a typical PyTorch Training Process.
https://github.com/Project-MONAI/tutorials/blob/master/3d_segmentation/spleen_segmentation_3d.ipynb this is the link to the code that I am using. Note that I only changed the variables such as
I have also made sure that my labels are starting with 0,1,2,3 instead of 1,2,3,4, where I am able to find some sources that mention this could be causing the issue. Also, the error code pointed that this line was causing the problem, but I am unsure what is the problem with this
Thanks for the attention Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @dannyhow12 , Do you still have the issue if removed the metrics computation? I suspect it may be CUDA out of memory, can you reduce your image size in transforms and try again? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @Nic-Ma , Surprisingly, I was not able to reproduce the issue when I restarted my Google Colab Jupyter Notebook. Unsure what is causing this issue. Nevertheless, the pipeline is now working fine for my kidney CT scan images. Thank you for the help! |
Beta Was this translation helpful? Give feedback.
Hi @dannyhow12 ,
Do you still have the issue if removed the metrics computation? I suspect it may be CUDA out of memory, can you reduce your image size in transforms and try again?
And I am not sure whether there is an environment issue, can you run the original spleen notebook successfully? Maybe you can have a try as the spleen dataset is not very big.
Thanks.