LynnHo / AttGAN-Tensorflow

AttGAN: Facial Attribute Editing by Only Changing What You Want (IEEE TIP 2019)
MIT License
605 stars 135 forks source link

training using celeba, testing using custom dataset #17

Closed maliho0803 closed 5 years ago

maliho0803 commented 5 years ago

if I using the model trained by celeba to test my custom images, will it get good results?

CastellanLiu commented 5 years ago

I should remind that this model is trained by the aligned CelebA dataset. The results on your custom images may look weird on attributes such as Mouth_Slightly_Open, Mustache, etc., but should be okay on attributes like Hair_Color, Pale_Skin if the face is the main part of your image. Maybe your can try training the model on the unaligned CelebA dataset.

maliho0803 commented 5 years ago

@CastellanLiuthank you for your reply, if I aligned my custom dataset, may it will get better results? and more, if the methods of gan can not work well out of training data?

LynnHo commented 5 years ago

@maliho0803 First, you should align your dataset as the CelebA manner. Second, you should provide accurate attributes of your dataset. It is inconvenient for users to do these and therefore a drawback of this project. I will improve it when I have free time. Besides, I test the model on LFW and it works like on CelebA.

maliho0803 commented 5 years ago

@LynnHo when testing, needed images labeled attributes?

LynnHo commented 5 years ago

@LynnHo when testing, needed images labeled attributes?

Yes.

maliho0803 commented 5 years ago

@LynnHo how do you labeled LFW datasets?

LynnHo commented 5 years ago

@LynnHo how do you labeled LFW datasets?

I use an attribute predictor trained on CelebA.

huxianer commented 5 years ago

@LynnHo Could you share the predictor trained on CelebA?Thank you for any help!

CastellanLiu commented 5 years ago

Maybe you can find what you want in #11

LynnHo commented 5 years ago

@huxianer Yes, as @CastellanLiu said, you may refer to #11. Or here is an attribute classifier from STGAN which has the same protocol of our AttGAN.

huxianer commented 5 years ago

Thanks!

Varshul commented 5 years ago

hey @maliho0803 , did you try this on your custom dataset? If yes, then were the results satisfying? Also, can you share your the modified files?