Replies: 2 comments
-
Hi @junxiant, if you crop to (64, 64, 32), and random flip in three axes, the images may have different shapes. Maybe try to set ((64, 64, 64) and run again. Hope it can help you, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @KumoLiu , So changing it to 64,64,64 didn't work. I wasn't able to find out which part of the code was giving the error, so I made a fresh copy of the tutorial notebook and made minimal changes and it was working again |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I was following the 3D segmentation with swin unetr on BTCV, which was working fine. Then I swapped over to my own datasets, and made changes to some of the transforms used. The training starts just fine, but then it triggers a cuda error. Setting
did not help as it still returned the same error. I'm using a jupyter notebook. I don't think it was a memory error as nvidia-smi was showing 5gb/16gb usage when the model started training.
Could it be due to some of the transforms that I am using? These are the train transforms which I am using:
I was also using DiceFocalLoss with
Swapping over to DiceCELoss also returned the same error. I am using SwinUNetr with in_channels=1 and out_channels=2, these are the settings that I have
with device set to torch.device("cuda")
Error:
If the EnsureTyped transform is uncommented, it returns an error related to EnsureTyped:
Package versions:
I'm not sure what else to try, or do I just have bad data?
Link to the notebook tutorial:
https://github.com/Project-MONAI/tutorials/blob/main/3d_segmentation/swin_unetr_btcv_segmentation_3d.ipynb
Beta Was this translation helpful? Give feedback.
All reactions