RuntimeError: Sizes of tensors must match except in dimension 1. Got 47 and 48 in dimension 4 (The offending index is 1) #2319
Unanswered
talhaanwarch
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Hi @talhaanwarch , Thanks for your interest here. Thanks. |
Beta Was this translation helpful? Give feedback.
9 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.
-
Here is the model
from monai.networks.nets import UNet
from monai.networks.layers import Norm
When I pass the data
I got this error
RuntimeError: Sizes of tensors must match except in dimension 1. Got 47 and 48 in dimension 4 (The offending index is 1)
I don't think padding 94 to 96 is a solution. because I want output shape to be
(1, 1, 256, 256,94)
Beta Was this translation helpful? Give feedback.
All reactions