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

About the performance of pretrained model #48

Closed
alan-ai-learner opened this issue Jan 28, 2021 · 4 comments
Closed

About the performance of pretrained model #48

alan-ai-learner opened this issue Jan 28, 2021 · 4 comments

Comments

@alan-ai-learner
Copy link

The pre-trained model you provided is not well-performing over the Celeb-A-HQ dataset. So I've got a question that for how many epochs you have trained the pre-trained model and on what data set.
Another question is that my use case applies glasses to the face, so I need to know that if I trained a new model from scratch over the Celeb-A-HQ dataset it will help us to achieve my task.
can we train the model over a single attribute like eyeglasses or a smile?
Thanks in advance.

@LynnHo
Copy link
Owner

LynnHo commented Jan 28, 2021

In the output folder, you can find settings.yml, there is the setting of the pre-trained model (200 epochs for CelebA-HQ dataset). Actually, this method does not perform well enough on eyeglasses. If you want a model that is better on a single and local attribute, I suggest SaGAN.

@alan-ai-learner
Copy link
Author

Thanks for your reply.
As you were suggesting the SaGAN, I'll take a look at it.
By the way, my use case is I'm gonna pass a face image to the GAN model and it should return the same image with eyeglasses.

I'm going through all the issues of this repo ill found that for testing any image we need to pass the label attributes corresponding to the same image as you suggest that i looked into the STGAN repo for attribute classification. I was looking at it but haven't found a way to do it I think the code was hardcoded for a CelebA dataset. Is there any way to do attribute classification for a custom image?

@LynnHo
Copy link
Owner

LynnHo commented Jan 29, 2021

I mean this paper, Zhang, Gang, et al. "Generative adversarial network with spatial attention for face attribute editing." Proceedings of the European conference on computer vision (ECCV). 2018.

Or you can refer to other solutions like https://github.com/genforce/interfacegan.

@LynnHo LynnHo closed this as completed Feb 3, 2021
@alan-ai-learner
Copy link
Author

hey, I was following the interface gan for my task, it is very good but for sunglasses, they are not well enough. In the interface gan they are using some pre-trained boundaries to do the different types of attribute editing and they are working perfectly. I'm working to train over custom boundaries. So, to train boundaries I need the attribute score, so I exactly don't know what it is.
Can you tell me what it is exactly and how can i get it?

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