This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| stylegan_notes [2026-08-03 08:51] – created nik | stylegan_notes [2026-08-03 09:01] (current) – nik | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== StyleGAN Notes ==== | ==== StyleGAN Notes ==== | ||
| - | styleGAN2-ADA experiments Feb 2021 (and so on and so on https://github.com/NVlabs/stylegan2-ada-pytorch) | + | styleGAN2-ADA experiments Feb 2021 (and so on and so on...) |
| + | |||
| + | * using '' | ||
| + | * two data folders (prepared with dataset_tool.py) | ||
| + | * '' | ||
| + | * '' | ||
| + | * transfer learning from flickr-1024 network (i.e '' | ||
| + | * training strategy | ||
| + | * start with '' | ||
| + | * compare unmirrored with → '' | ||
| + | * try '' | ||
| + | * try various gamma levels '' | ||
| Line 31: | Line 43: | ||
| <code shell> | <code shell> | ||
| - | mogrify -define png: | + | mogrify -define png: |
| </ | </ | ||
| <code shell> | <code shell> | ||
| - | python3 dataset_tool.py --source=/root/data/ | + | python3 dataset_tool.py --source=data/ |
| </ | </ | ||
| <code shell> | <code shell> | ||
| - | python3 train.py --outdir=/root/results/ | + | python3 train.py --outdir=results/ |
| - | | + | |
| | | ||
| | | ||
| Line 50: | Line 62: | ||
| <code shell> | <code shell> | ||
| - | python3 generate.py --outdir=/root/results/ \ | + | python3 generate.py --outdir=results/ |
| --trunc=1 \ | --trunc=1 \ | ||
| - | --network=/root/results/ | + | --network=results/ |
| --seeds=85, | --seeds=85, | ||
| </ | </ | ||
| <code shell> | <code shell> | ||
| - | generate.py --outdir=/root/results/ | + | generate.py --outdir=results/ |
| + | --network=results/ | ||
| + | --seeds=1100-1200 | ||
| </ | </ | ||
| Line 64: | Line 78: | ||
| <code shell> | <code shell> | ||
| - | python3 style_mixing.py --outdir=/root/results/ \ | + | python3 style_mixing.py --outdir=results/ |
| - | --network=/root/results/ | + | --network=results/ |
| --rows=85, | --rows=85, | ||
| --cols=55, | --cols=55, | ||
| Line 71: | Line 85: | ||
| <code shell> | <code shell> | ||
| - | python3 | + | style_mixing.py --outdir=results/ |
| </ | </ | ||
| Line 77: | Line 91: | ||
| <code shell> | <code shell> | ||
| - | python3 projector.py --outdir=/root/results/ | + | python3 projector.py --outdir=results/ |
| - | --target=/root/data/ | + | --target=data/ |
| - | --network=/root/results/ | + | --network=results/ |
| </ | </ | ||
| Line 87: | Line 101: | ||
| <code shell> | <code shell> | ||
| - | python3 train.py --outdir=/root/results/ | + | python3 train.py --outdir=results/ |
| - | | + | |
| | | ||
| | | ||
| Line 95: | Line 109: | ||
| <code shell> | <code shell> | ||
| - | python3 train.py --outdir=/root/results/ | + | python3 train.py --outdir=results/ |
| Training options: | Training options: | ||
| Line 108: | Line 122: | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| " | " | ||
| " | " | ||
| Line 190: | Line 204: | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| } | } | ||
| - | Output directory: | + | Output directory: |
| - | Training data: | + | Training data: data/ |
| Training duration: | Training duration: | ||
| Number of GPUs: 1 | Number of GPUs: 1 | ||
| Line 376: | Line 390: | ||
| <code python> | <code python> | ||
| - | python3 train.py --outdir=/root/results/ | + | python3 train.py --outdir=results/ |
| tick 11 kimg 44.0 time 2h 53m 35s | tick 11 kimg 44.0 time 2h 53m 35s | ||
| Line 424: | Line 438: | ||
| <code shell> | <code shell> | ||
| - | python3 train.py --outdir=/root/results/ | + | python3 train.py --outdir=results/ |
| - | --data=/root/data/ | + | --data=data/ |
| - | --resume=/root/results/ | + | --resume=results/ |
| --snap=20 \ | --snap=20 \ | ||
| --gpus=2 \ | --gpus=2 \ | ||
| Line 435: | Line 449: | ||
| <code shell> | <code shell> | ||
| - | python3 train.py --outdir=/root/results/ | + | python3 train.py --outdir=results/ |
| - | --data=/root/data/ | + | --data=data/ |
| - | --resume=/root/results/ | + | --resume=results/ |
| --snap=20 \ | --snap=20 \ | ||
| --gpus=2 \ | --gpus=2 \ | ||
| Line 445: | Line 459: | ||
| <code shell> | <code shell> | ||
| - | python3 generate.py \ --network=/root/results/ | + | python3 generate.py \ |
| - | --outdir=/root/results/ | + | --network=results/ |
| + | --outdir=results/ | ||
| --seeds=1-10000 | --seeds=1-10000 | ||
| </ | </ | ||