You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2023. It is now read-only.
When using the code and feed the input image with size [4,1,256,256,16] (which the number 4 in the first dimension is the batch size), I am having the following error:
.local/lib/python3.9/site-packages/monai/networks/blocks/dynunet_block.py", line 216, in forward
out = torch.cat((out, skip), dim=1)
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 10 but got size 9 for tensor number 1 in the list.
However, when I use the batch size equal to 1 the code works, but the loss is not decreasing.
My question is that how I can feed the input with batch size equal to 4 without getting this error?
The text was updated successfully, but these errors were encountered:
Almadani92
changed the title
Error in feeding input with Batch=4 to the network.
Error in feeding input with Batch=4.
Mar 27, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using the code and feed the input image with size [4,1,256,256,16] (which the number 4 in the first dimension is the batch size), I am having the following error:
.local/lib/python3.9/site-packages/monai/networks/blocks/dynunet_block.py", line 216, in forward
out = torch.cat((out, skip), dim=1)
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 10 but got size 9 for tensor number 1 in the list.
However, when I use the batch size equal to 1 the code works, but the loss is not decreasing.
My question is that how I can feed the input with batch size equal to 4 without getting this error?
The text was updated successfully, but these errors were encountered: