Closed VatsalBambhania closed 2 weeks ago
Could you print the shape of x and skip2?
Hi, So nevermind, actually my input shape was not multiple of 4 and after second block it was equating to an odd number, so at this line it tried to add the two values, I was getting this error. I solved it by changing input shape to multiple of 8.
Thanks for you replay.
Regards, Vatsal
Hi, I'm trying to train the CoTr model on Hippocampus dataset that I downloaded from http://medicaldecathlon.com/ However, I'm getting the error that the size of the tensors when performing the in skip connection operation doesn't match.
The error is basically somewhere in the CoTr/network_architecture/ResTranUnet.py line 156 x = x + skip2
I tried to solve the issue but I don't fully understand the source of the error. Any help will be really appreciated
Thank you