StarGAN_v2-Tensorflow icon indicating copy to clipboard operation
StarGAN_v2-Tensorflow copied to clipboard

bad training results : large green area on face

Open sunkyya opened this issue 4 years ago • 12 comments

Hi, thanks for your sharing! I used your stargan v2 to train celebA, gantype is "hinge",batchsize is "2",sn is "true". I trained about tow days , the training results are bad and having large green area on face. I doubt that should i continue training or change config?

sunkyya avatar Mar 03 '20 00:03 sunkyya

could you upload your results? I am curious to see as I am going to start trying this out soon

xx88xx avatar Mar 03 '20 10:03 xx88xx

@xx88xx :

I have fixed this by GHANGING

def inverse_transform(images): return ((images+1.) / 2) * 255.0

TO

def inverse_transform(images): return np.clip(((images+1.) / 2) * 255.0,0,255)


The code is in utils.py line 86. During my training process the fake images are out of the range[-1,1], so the saved images have larging strange color areas.

sunkyya avatar Mar 05 '20 06:03 sunkyya

@sunkyya Hi~Excuse me.I'm a deep learning newbie and I wonder how to class the celeba into different folders according to the domains? Could you give me a help? Thanks a lot!

Jessicall avatar Mar 09 '20 03:03 Jessicall

@Jessicall I'm a newbie too😀 . You can use python to do the class preprocess, read the file "CelebAMask-HQ-attribute-anno.txt" and class them according to the annotations , and then put some/all domains into ''./dataset/celebA/train"

sunkyya avatar Mar 10 '20 00:03 sunkyya

@sunkyya Thank you very much!

Jessicall avatar Mar 13 '20 04:03 Jessicall

@sunkyya Could you send me a link of downloading the CelebA-HQ.I used original celeba to train the model and the result was not well.And how many images are used for training?

Jessicall avatar Mar 13 '20 05:03 Jessicall

@sunkyya Could you send me a link of downloading the CelebA-HQ.I used original celeba to train the model and the result was not well.And how many images are used for training?

I have found the CelebAMask-HQ .And there are 30000 images in total.Have you used 30000 or 202599 images for training?

Jessicall avatar Mar 13 '20 05:03 Jessicall

@Jessicall I used 30000 images o( ̄▽ ̄)ブ

sunkyya avatar Mar 23 '20 05:03 sunkyya

@sunkyya how do your results look like using the parameters(gantype is "hinge",batchsize is "2",sn is "true") to train the model?I used the same parameters to run the code and "fake_0006750.jpg" as shown below image

Should i continue to train?

Jessicall avatar Mar 26 '20 10:03 Jessicall

I have the same problem as above. @Jessicall were you able to solve this?

anshkapil avatar Apr 16 '20 19:04 anshkapil

@anshkapil what is your sty_loss and cyc_loss?? My sty_loss is so small for all time。。。

Johnson-yue avatar Apr 21 '20 03:04 Johnson-yue

Hello ! I will re-upload the tensorflow2 version of stargan v2 to clova_ai

If you have any questions, use the above link ! Thank you.

taki0112 avatar Jun 15 '20 10:06 taki0112