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

About use #15

Open
zy-charon opened this issue May 21, 2023 · 1 comment
Open

About use #15

zy-charon opened this issue May 21, 2023 · 1 comment

Comments

@zy-charon
Copy link

zy-charon commented May 21, 2023

Hello, will the gradient of loss be calculated when ffl is used as loss? I try to put ffl on cuda, but it is always a scalar, and mse is a tensor with calculated gradient. Here are my changes:
image
image
The following are the values of mse and ffl, their forms are different, I don’t know if I’m wrong here.
image

@zy-charon
Copy link
Author

Sorry to bother you again. I read the source code and it seems that this is indeed a scalar. I would like to ask why a frequency loss is calculated for the entire batch. If it is modified to calculate a frequency loss for each generated image and the original image, is it reasonable?

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