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

Why LPIPS loss uses classification layers of VGG and not original LPIPS repo which are calibrated for perception #6

Open
MohitLamba94 opened this issue Nov 24, 2024 · 0 comments

Comments

@MohitLamba94
Copy link

Hello,
Thankyou for detailed and yet easy to follow implementation of Rectified Flow paper.

I was going through the original implementation by authors and the authors use the original LPIPS library as noted below,

https://github.com/gnobitab/RectifiedFlow/blob/5a1fd4dd3ea7db764ce370a84ce35f9c8b15fde6/ImageGeneration/sde_lib.py#L28

But in your implementation LPIPS is just the vanilla VGG loss at the classification layer

vgg.classifier = nn.Sequential(*vgg.classifier[:-2])

Any reason for not using the actual repository of LPIPS and instead using the original VGG?
I believe in LPIPS VGG is modified wherein some calibration is done to align with human perception.

Have you done so because of the below issue,
richzhang/PerceptualSimilarity#72 (comment)

Or nothing in specific?

Thankyou

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