Making Art with GANs : StyleGAN2-ADA-PyTorch
Other trained models : https://github.com/justinpinkney/awesome-pretrained-stylegan2
When running install Repo, the message below is not an error
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchtext 0.11.0 requires torch==1.10.0, but you have torch 1.7.1 which is incompatible.
torchaudio 0.10.0+cu111 requires torch==1.10.0, but you have torch 1.7.1 which is incompatible.Table of content
Looking for commands use the command below on Python
!python generate.py --help
Linear Interpolation
Truncation Traversal
Truncation down limits diversity but better quality.
!python generate.py \
--process="truncation" \
--outdir=/content/out/trunc-trav/ \
--start=0.0 --stop=2.5 --increment=0.05 \
--seeds=0 \
--network=/content/drive/MyDrive/colab-sg2-ada-pytorch/stylegan2-ada-pytorch/pretrained/itp-canyons-512-5k.pkl
Results appear on the OUT folder
Linear Interpolation output, change the out
W space gives a smoother transition
Z usually have a bigger size video
!!python generate.py \
--outdir=/content/out/video1-w/ \
--space="w" \
--trunc=0.8 \
--process="interpolation" \
--seeds=0,1,2,3,0 \
--network=/content/drive/MyDrive/colab-sg2-ada-pytorch/stylegan2-ada-pytorch/pretrained/itp-canyons-512-5k.pkl
Go to Noise Loop
!python generate.py \
--outdir=/content/out/video-noiseloop-0.9d \
--trunc=0.8 \
--process="interpolation" \
--interpolation="noiseloop" \
--diameter=0.9 \
--frames=240 \
--random_seed=100 \
--network=/content/drive/MyDrive/colab-sg2-ada-pytorch/stylegan2-ada-pytorch/pretrained/itp-canyons-512-5k.pklCircular loop