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

mismatch size of tensor #40

Open
myyzzzoooo opened this issue Jun 21, 2023 · 1 comment
Open

mismatch size of tensor #40

myyzzzoooo opened this issue Jun 21, 2023 · 1 comment

Comments

@myyzzzoooo
Copy link

myyzzzoooo commented Jun 21, 2023

image

Hi! I got this error during test.
clear_feature_ch[:, :, ks:-ks, ks:-ks] 's shape is torch.Size([1, 1, 256, 256, 2, 2])

I'm using 2 scale pretrained model and Set5 lmdb.
The only thing I modified from the existing code is the fft part in utils.
image

how can I solve this?

@myyzzzoooo myyzzzoooo changed the title size of tensor mismatch mismatch size of tensor Jun 21, 2023
@Algolzw
Copy link
Collaborator

Algolzw commented Jun 21, 2023

Hi, if you are running our code on PyTorch 1.8+, you may want to try this code for torch.fft function: #12 (comment)

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

2 participants