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

Can we measure the difference of 2 gray scale images? #29

Closed
leviethung2103 opened this issue Jul 19, 2019 · 5 comments
Closed

Can we measure the difference of 2 gray scale images? #29

leviethung2103 opened this issue Jul 19, 2019 · 5 comments

Comments

@leviethung2103
Copy link

Hello author,

Can we measure the difference of 2 gray scale images? Or this metric is only used for RGB images?

Thank you.

@leviethung2103
Copy link
Author

I've run the model with my two gray scales. I am not sure that the value given from network is correct.

Furtheremore, the lower LPIPS is, the better image is. Am I correct. Thank you

@richzhang
Copy link
Owner

richzhang commented Jul 19, 2019

Yes, the lower means closer.

We didn't verify on perceptual judgments with grayscale images only, but I think it is reasonable to expect consistent results to color images.

@leviethung2103
Copy link
Author

Thank you so much.

@cyrilzakka
Copy link

My apologies for re-opening this thread after such a long while - is it possible to obtain a greyscale version of vgg16_perceptual? I trained a styleGAN model on a greyscale dataset. Currently the projector uses this model to project images in latent space. Unfortunately when running the projector I get:
Dimension 1 in both shapes must be equal, but are 1 and 3. Shapes are [1,1,128,128] and [?,3,?,?]

If not, I have to retrain the GAN which I'm leaving as the last option.

@richzhang
Copy link
Owner

I think you can convert the images into 3 channels using expand

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

3 participants