/StyleGAN-Zoo

Primary LanguagePythonApache License 2.0Apache-2.0

StyleGAN Zoo

Base on https://github.com/podgorskiy/StyleGAN_Blobless

Find models on https://github.com/GalAster/StyleGAN-Zoo/releases

Install

Pytorch needed, install via conda first

conda install pytorch torchvision cudatoolkit=10.1 -c pytorch -y
pip install stylegan_zoo

Start

  • For jupyter:
from sgan import StyleGAN
a = StyleGAN('asuka')
a.show()

  • For mathematica:
from sgan import StyleGAN

StyleGAN('asuka')

  • Multi-generation
from sgan import generate

generate('asuka', 4)

  • Style-interpolate
from sgan import generate, style_interpolate

start, end = generate('asuka', 2)
style_interpolate(start, end, steps=16)

License

Part License
Code Apache License Version 2.0
Asuka CC0 - Creative Commons
Horo CC0 - Creative Commons
Baby CC4.0 Non-Commercial
FFHQ
CelebaHQ