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

the color of generated pic is not consistent with orginal #3

Open
llf1234 opened this issue Aug 12, 2019 · 7 comments
Open

the color of generated pic is not consistent with orginal #3

llf1234 opened this issue Aug 12, 2019 · 7 comments

Comments

@llf1234
Copy link

llf1234 commented Aug 12, 2019

thanks a lot,recently i train a model with your provided code and data,i find the color of generated eyes is not always consistent with the original input(test on other pic which is not in columbia dataset),when i cancel all instance normalization layer in generator, the color of generated eyes become approximate consitent with the original input? did you pay attention on this phenomenon.

@HzDmS
Copy link
Owner

HzDmS commented Aug 12, 2019

I don't really understand what do you mean by 'cancel the instance normalisation'. And I also don't know how many samples have you tested on, and what kind of metric did you use to measure the color shift. But generally speaking, the color shift problem is sort of a common problem for CycleGAN-based approaches (see Figure. 9 in the original CycleGAN paper). It can be alleviated by adding a L_{identity} loss. And also, I wouldn't expect the model could generalise that well on wild images, as ColumbiaGaze only contains 56 subjects. If a dataset with more subjects is publicly available, I believe the model could get an even better performance.

@llf1234
Copy link
Author

llf1234 commented Aug 13, 2019 via email

@HzDmS
Copy link
Owner

HzDmS commented Aug 13, 2019

You could probably find this work https://arxiv.org/pdf/1712.03999.pdf helpful.

@llf1234
Copy link
Author

llf1234 commented Aug 13, 2019 via email

@r06631001
Copy link

Hi @llf1234,
I also face the inconsistent color problem.
Did you remove all the instance_norm in the generator to solve the inconsistent color problem?
Or only remove the instance_norm with the scope "in_conv_%d"
Thanks!

@llf1234
Copy link
Author

llf1234 commented Mar 9, 2020 via email

@zhangqianhui
Copy link

How to solve the inconsistent color problem, you can read this paper with coarse-to-fine learning

https://arxiv.org/abs/2004.03064

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

4 participants