Replies: 1 comment 5 replies
-
perhaps you could use a |
Beta Was this translation helpful? Give feedback.
5 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.
-
Describe the bug
Hi there
I am trying to do 3D segmentation from the spleen example. I took the program as it is, but I divided each nifti file into group of 30 slices instead of 300 at least (I am working on full body tumor segmentation).
So I have got this problem:
RuntimeError: Sizes of tensors must match except in dimension 4. Got 4 and 3 (The offending index is 0)
I am trying to solve this problem since a week but I don't know where is the problem, I checked all the input lengths it is the same but I don't know.
The problem is on this line:
outputs = model(inputs)
And this is also with the output error:
127 if self.mode == "cat":
--> 128 return torch.cat([x, y], dim=self.dim)
129 if self.mode == "add":
130 return torch.add(x, y)
Can you tell me where is the problem please.
Thank you.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Ensuring you use the relevant python executable, please paste the output of:
Additional context
I am running the program in google colab.
Beta Was this translation helpful? Give feedback.
All reactions