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 can i use it for my use case. #5

Open
alan-ai-learner opened this issue Jan 29, 2021 · 3 comments
Open

how can i use it for my use case. #5

alan-ai-learner opened this issue Jan 29, 2021 · 3 comments

Comments

@alan-ai-learner
Copy link

My use case is I'm gonna pass a face image to the GAN model and it should return the same image with eyeglasses.
can i use your code to do it ? If yes , i need some suggestion.
Thanks .

@elvisyjlin
Copy link
Owner

Hi @alan-ai-learner, please try the celeba_128_eyeglasses pre-trained model. (1) Clone the repo. (2) Install all dependencies. (3) Download the pre-trained model and put it under ./results/. (4) Write an inference script like generate.py. You cannot use generate.py directly because it generates images with opposite attributes against the original images (labels).

@alan-ai-learner
Copy link
Author

hey @elvisyjlin thanks for replying, but I tried the way you said, but the results are not that promising.
If you can suggest any different way that will be great.
Thanks in advance!

@elvisyjlin
Copy link
Owner

Sorry that I'm not sure about your "not that promising". Is the generated image has low quality? looks the same as input? or total a garbage?

Please understand that the model learns the distribution translation between with attribute A and without attribute A. However, it is quite a naive model with limited capacity. The results are not guaranteed to be perfect.

If you're looking for a stabler model which generates amazing images, StyleGAN is a good choice.

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

2 participants