Making Art with GANs : StyleGAN2-ADA-PyTorch

Notebook: https://colab.research.google.com/github/dvschultz/stylegan2-ada-pytorch/blob/main/SG2_ADA_PyTorch.ipynb

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 

  1. !python generate.py \
    --outdir=/content/out/video1/ \
    --space="z" \
    --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


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.pkl


Circular loop


Popular posts from this blog

Socially Engaged Art and Digital Practice week 9 - Project 2

Socially Engaged Art and Digital Practice : week 5 Materials Presentation

Socially Engaged Art and Digital Practice : week 3