MASILab / 3DUX-Net

237 stars 33 forks source link

erros using SWINUNETR #70

Open ramdhan1989 opened 5 months ago

ramdhan1989 commented 5 months ago

Hi, I got error when using SWINUNETR, my input size to the model is 4,1,96,96,96. When changing to 3DUXNET it works.

raise ValueError("Expected more than 1 spatial element when training, got input size {}".format(size)) ValueError: Expected more than 1 spatial element when training, got input size torch.Size([4, 768, 1, 1, 1])

please advise,

Thank you

10dutel commented 3 months ago

hello, i am using SWINUNETR too, but i can't properly run it yet.

RuntimeError: CUDA error: out of memory CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

same configuration, run 3d-uxnet is ok, but run SWINUNETR is error........Could you tell me how to handle this?

10dutel commented 3 months ago

ramdhan1989 hello@, i am using SWINUNETR too, but i can't properly run it yet.

RuntimeError: CUDA error: out of memory CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

same configuration, run 3d-uxnet is ok, but run SWINUNETR is error........Could you tell me how to handle this?