medicaltorch
medicaltorch copied to clipboard
Invalid argument 0: Sizes of tensors must match except in dimension 1. Got 173 and 172 in dimension 2
I try to resample input from torch.Size([2, 1, 512, 512])
to torch.Size([2, 1, 256, 256])
but that error occurred when get concat I don't understand why the y(x3) have this size torch.Size([2, 128, 173, 173])
I have print out (x8.size(), x3.size()) and in the last line is line before error.
`torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])
--->> torch.Size([2, 256, 86, 86]) torch.Size([2, 128, 173, 173])`