stylegan2-pytorch icon indicating copy to clipboard operation
stylegan2-pytorch copied to clipboard

The generated samples have very little difference

Open FrazierLei opened this issue 3 years ago • 11 comments

I'm trying to generate some avatars of NBA players.

After 5000 iterations, I can barely see the silhouette of the player. But the generated samples look the same. Is this normal? 7 6

The command I run is stylegan2_pytorch --data statmuse_NBA --name statmuse --multi-gpus --transparent --batch-size 64 --aug-prob 0.25 --num-train-steps 100000 --no-pl-reg

FrazierLei avatar Apr 24 '21 05:04 FrazierLei

How many images do you have in your dataset?

Otje89 avatar Apr 24 '21 06:04 Otje89

How many images do you have in your dataset?

1200 images, is it too few?

FrazierLei avatar Apr 24 '21 06:04 FrazierLei

Not necessarily too few. You could increase --aug-prob, include color in aug_types (next to default translation and cutout), and/or you can use a pre-trained model. I hope this will help a little!

Otje89 avatar Apr 24 '21 07:04 Otje89

Not necessarily too few. You could increase --aug-prob, include color in aug_types (next to default translation and cutout), and/or you can use a pre-trained model. I hope this will help a little!

@Otje89 Thank you for your suggestion, I will try it.

FrazierLei avatar Apr 24 '21 09:04 FrazierLei

Finally got some results that look OK. statmuse_gen

FrazierLei avatar Apr 28 '21 06:04 FrazierLei

@FrazierLei was --aug-prob your path to better results?

chris-aeviator avatar May 06 '21 10:05 chris-aeviator

@chris-aeviator It does matter! I increased the --aug-prob to 0.7 and collected more images for training. I also tried transfer learning(from CelebA to my customed dataset) 24

FrazierLei avatar May 06 '21 13:05 FrazierLei

@FrazierLei cool! Could you share the number of images you have been using to generate these?

chris-aeviator avatar May 06 '21 15:05 chris-aeviator

@chris-aeviator I removed some images that are actually the same player. E.g WX20210507-103826@2x Then I collected some avatars of players from other leagues. The total number of images is about 1.5k.

FrazierLei avatar May 07 '21 02:05 FrazierLei

@FrazierLei Nice work! I'm really curious how you went by to do transfer learning with this implementation. Would you mind explaning?

ohlmic avatar Dec 12 '21 11:12 ohlmic

+1

fabiooshiro avatar Feb 28 '22 23:02 fabiooshiro