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

Visualize which areas in the image contribute to the loss #63

Closed
gafniguy opened this issue Feb 15, 2021 · 2 comments
Closed

Visualize which areas in the image contribute to the loss #63

gafniguy opened this issue Feb 15, 2021 · 2 comments

Comments

@gafniguy
Copy link

Hi,

Thanks for the paper and making it so accessible and easy to use.

For pixel-aligned losses, it's easy to show which areas of the generated image are wrong, by doing e.g L1(generated, GT) pixel-wise and showing it as an image, resulting in some sort of error map.

What do you think would be a good way to get something like this for LPIPS? I would like to see which areas in the image contributed to higher LPIPS distance.

Thanks

@gafniguy gafniguy changed the title Visualize which errors contribute to the loss Visualize which areas in the image contribute to the loss Feb 15, 2021
@richzhang
Copy link
Owner

Hi, thanks for the question. Look at setting spatial=True here: https://github.com/richzhang/PerceptualSimilarity/blob/master/lpips/lpips.py#L23

@gafniguy
Copy link
Author

Perfect, thank you so much.

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