quartzermz commited on
Commit
de27b48
·
1 Parent(s): 4aaed65

Upload README.md

Browse files

Uploaded documentation

Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: pytorch
4
+ tags:
5
+ - image-generation
6
+ - gan
7
+ - stylegan
8
+ - stylegan3
9
+ - nvidia
10
+ ---
11
+ # Male Faces Generator (StyleGAN3 by NVIDIA)
12
+
13
+ <img width="679" alt="BroGAN Sample Faces" src="https://huggingface.co/quartzermz/BroGANv1.0.0/blob/main/SampleImages.png">
14
+
15
+ This is a [StyleGAN3 PyTorch](https://github.com/NVlabs/stylegan3) model trained on 50k faces of men scraped from pinterest and its associated bias.
16
+
17
+ ### Usage
18
+
19
+ Demo on Spaces is not yet implemented.
20
+
21
+ If you want to generate your own images, follow the steps on [StyleGAN3 PyTorch](https://github.com/NVlabs/stylegan3) under "Getting started." Run gen_images.py and specify your seed and truncation.
22
+
23
+ #### Sample Images
24
+ Sample images were generated directly from model with no-postprocessing.
25
+ Truncation of: '0.7'
26
+ Recommend using [CodeFormer]https://github.com/sczhou/CodeFormer to restore faces and upscale to desired resolution (I like upscaling by 2x to 512x512).
27
+
28
+ ### Dataset & Model Details
29
+
30
+ Dataset was scraped from pinterest and cropped using dlib. Further symmetry and rotation filtering applied via U2Net and MTCNN.
31
+
32
+ Training was done locally using StyleGAN3 with an RTX 4090 and cuda 11.8. Starting checkpoint was the ffhq 256x256 pre-trained model. Training took roughly 24 hours but hyperparameter tuning/restarting was modified about halfway through. Roughly at 400 ticks, dataset was filtered and reduced by half to images with greater symmetry.
33
+
34
+ - Configuration: `stylegan3-r`
35
+ - GPUs: `1`
36
+ - Batch Size: `32`
37
+ - Gamma: `0.5`
38
+ - Final tick: `575`
39
+ - Image Resolution: '256x256'
40
+ - Final fid50k_full value (this pickle): `13.854398226827872`
41
+
42
+ ### Credits
43
+
44
+ Please don't forget to give credit if you decide to share/distribute this model. Training these take a lot of time and effort :)