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

How to maintain consistent colors between the translated image and the input image? #11

Open
blakeliu opened this issue Jul 21, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@blakeliu
Copy link

I trained the uvcgan2 model to transfer double eyelids images to single eyelids images. In most cases, the results are acceptable, but I have noticed inconsistencies in the colors of the generated images compared to the input images. What methods can be used to maintain consistency between the colors of the generated images and the input images?
image

image

@blakeliu blakeliu changed the title How to maintain consistent colors between the translatedimage B and the source domain image A? How to maintain consistent colors between the translated image and the input image? Jul 21, 2023
@usert5432
Copy link
Collaborator

Hi @blakeliu, I think, the answer largely depends on whether such a color difference is present in the training dataset or not?

  1. If the training dataset exhibit the color difference between the two domains. One can try to fix this issue by adding a color-jitter transformation (jitter hue, saturation, and brightness). An example of the usage of this transformation can be found here.

  2. Otherwise, one can try increasing the magnitudes of the lambda_idt, lambda_a, and lambda_b hyperparameters. The CycleGAN paper suggests that increasing lambda_idt alone may suffice.

@usert5432 usert5432 added the question Further information is requested label Jul 21, 2023
@usert5432 usert5432 self-assigned this Jul 21, 2023
@blakeliu
Copy link
Author

Thank you for the suggestion, I will try it and get back to you. Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants