Skip to content

Commit a939032

Browse files
committed
update readme for the uninitiated
1 parent 0bb0be8 commit a939032

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ $ stylegan2_pytorch --data ./data --aug-prob 0.25 --aug-types [translation,cutou
137137

138138
You can customize it to any combination of the three you would like. The differentiable augmentation code was copied and slightly modified from <a href="https://github.com/mit-han-lab/data-efficient-gans/blob/master/DiffAugment_pytorch.py">here</a>.
139139

140+
## When do I stop training?
141+
142+
For as long as possible until the adversarial game between the two neural nets fall apart (we call this divergence). By default, the number of training steps is set to `150000` for 128x128 images, but you will certainly want this number to be higher if the GAN doesn't diverge by the end of training, or if you are training at a higher resolution.
143+
144+
```bash
145+
$ stylegan2_pytorch --data ./data --image-size 512 --num-train-steps 1000000
146+
```
147+
140148
## Attention
141149

142150
This framework also allows for you to add an efficient form of self-attention to the designated layers of the discriminator (and the symmetric layer of the generator), which will greatly improve results. The more attention you can afford, the better!

0 commit comments

Comments
 (0)