LH-Tech-AI commited on
Commit
c6354b6
·
verified ·
1 Parent(s): df189dc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +53 -3
README.md CHANGED
@@ -1,3 +1,53 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - gan
5
+ - pytorch
6
+ - vision
7
+ - dcgan
8
+ - faces
9
+ - humans
10
+ - face
11
+ metrics:
12
+ - loss
13
+ datasets:
14
+ - stable-bias/faces
15
+ ---
16
+
17
+ # FaceGen v1 - 128px DCGAN
18
+
19
+ This model is a Deep Convolutional Generative Adversarial Network (DCGAN) trained to generate high-quality 128x128 images of human faces. It was trained for 250 epochs on a curated dataset of feline images, pushing the boundaries of traditional GAN architectures at this resolution.
20
+
21
+ ## Sample
22
+ Here's a sample after epoch 200:
23
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/697f2832c2c5e4daa93cece7/xeVq-Mv_NSjbRNWOp6jMK.png)
24
+
25
+ ## Model Details
26
+ - **Architecture:** DCGAN (Deep Convolutional GAN)
27
+ - **Resolution:** 128x128 pixels (RGB)
28
+ - **Parameters:** ~186M (Generator)
29
+ - **Training Duration:** ~22 hours on NVIDIA RTX 5060 Ti 16GB
30
+ - **Framework:** PyTorch with Mixed Precision (AMP)
31
+
32
+ ## Training Hyperparameters
33
+ - **Batch Size:** 128
34
+ - **Learning Rate:** 0.0002
35
+ - **Optimizer:** Adam (Beta1: 0.5, Beta2: 0.999)
36
+ - **Latent Vector (Z):** 128 dimensions
37
+
38
+ ## Training details
39
+ The full training code can be found as `train.py` in this repo.
40
+ The training data we used was from HF: stable-bias/faces
41
+
42
+ ## Intended Use
43
+ This model is intended for artistic and research purposes. It demonstrates how GANs can capture complex faces and even eye reflections at medium resolutions.
44
+
45
+ ## How to use
46
+ To use this model, clone this repository and run the provided inference script. Ensure you have `matplotlib`, `torch` and `torchvision` installed.
47
+
48
+ ```bash
49
+ python3 inference.py
50
+ ```
51
+
52
+ **Sample output:**
53
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/697f2832c2c5e4daa93cece7/zi_BYFDeK0x1aTEYpSLCj.png)