Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

128*128*48 size Error #70

Open
yuanpengpeng opened this issue Feb 22, 2024 · 0 comments
Open

128*128*48 size Error #70

yuanpengpeng opened this issue Feb 22, 2024 · 0 comments

Comments

@yuanpengpeng
Copy link

yuanpengpeng commented Feb 22, 2024

Hello, I use the image size 128 * 128 * 48 48 as the layer thickness, your model reports an error
File "/home/yuanpeng/anaconda3/envs/python37/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/yuanpeng/transmorph/OASIS/TransMorph/models/TransMorph.py", line 1291, in forward
x_down = self.downsample(x, H, W, T)
File "/home/yuanpeng/anaconda3/envs/python37/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(input, **kwargs)
File "/home/yuanpeng/transmorph/OASIS/TransMorph/models/TransMorph.py", line 1163, in forward
assert H % 2 == 0 and W % 2 == 0 and T % 2 == 0, f"x size ({H}
{W}) are not even."
AssertionError: x size (8 * 8) are not even.

Is there any latest version suitable for 128 * 128 * 48 size?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant