Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Nov 23, 2020
1 parent 7e2d957 commit 62437d8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $ pip install lightweight-gan
## Usage

```bash
$ lightweight_gan --data ./path/to/images --image-size 512 --aug-prob 0.2
$ lightweight_gan --data ./path/to/images --image-size 512 --aug-prob 0.25
```

Model will be saved to `./models/{name}` every 1000 iterations, and samples from the model saved to `./results/{name}`. `name` will be `default`, by default.
Expand All @@ -39,6 +39,16 @@ $ lightweight_gan \
--num-train-steps 200000
```

## Augmentation

Augmentation is essential for Lightweight GAN to work effectively in a low data setting

By default, the augmentation types is set to translation and cutout, with color omitted. You can include color as well with the following.

```bash
$ lightweight_gan --data ./path/to/images --aug-prob 0.25 --aug-types [translation,cutout,color]
```

## Mixed precision

You can turn on automatic mixed precision with one flag `--amp`
Expand Down Expand Up @@ -78,7 +88,7 @@ You can add linear + axial attention to specific resolution layers with the foll

```bash
# make sure there are no spaces between the values within the brackets []
$ lightweight_gan --data ./path/to/images --image-size 512 --attn-res-layers [32,64]
$ lightweight_gan --data ./path/to/images --image-size 512 --attn-res-layers [32,64] --aug-prob 0.25
```
## Citations

Expand Down

0 comments on commit 62437d8

Please sign in to comment.