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
MSFR loss #13
Comments
You can use torch.fft.rfft2/fft2/fftn/rfftn to calculate MSFR. We use torch.fft.fft2 to calculate MSFR. |
torch.fft.fft2 or torch.fft.rfft2? |
torch.mean(abs(torch.fft.fft2(x) - torch.fft.fft2(y))) |
Thank You! |
I get the following warning message after loss.backward(): Is this expected? When I use rfft2 instead of fft2, |
I think this is a bug of pytorch, the warning message should not be given: But code should work correct. |
Hi @INVOKERer.
In MIMO-UNET, where pytorch version is 1.4, the FFT for MSFR loss is calculated as
torch.rfft(image, signal_ndim=2, normalized=False, onesided=False)
Could you, please, tell me how do you port it to torch.fft.rfft in pytorch 1.8?
The text was updated successfully, but these errors were encountered: