-
Notifications
You must be signed in to change notification settings - Fork 507
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
does the lpips work on grey images? #23
Comments
I didn't test specifically on grayscale images, but it should still give some notion of distance. |
thank you for the update |
Facing the same issue myself. Need to use LPIPS (averaged over the number of frames) as a metric of Perceptual Similarity for the KTH Action Video Dataset (which is grayscale). Is replicating the single channels to 3 identical channels an acceptable way to obtain a similarity measure? Does there exist a better alternative? |
The most proper (but perhaps time-consuming) thing would be to retrain AlexNet to do ImageNet classification on grayscale images. This would be a 1-line change to this codebase (add a line in the data loader to force images to be grayscale). Then do a linear calibration steps with our perceptual judgments from the BAPPS dataset. Replicating to 3 identical channels is a reasonable alternative. |
Is this safe to use lpips for gray images? The code does not work for 1 channel images. The hack would be to use 3 identical channels yet I am not sure what would be the effect within the end-to-end calibrated solution on color images.
The text was updated successfully, but these errors were encountered: