← all repositories
NVlabs/stylegan

Borrowing style transfer to make GANs controllable

It rearchitects GAN generators using style-transfer ideas to unsupervisedly separate pose and identity from freckles and hair texture.

14.4k stars Python Image · Video · Audio
stylegan
Not currently ranked — collecting fresh signals.
star history

What it does

StyleGAN is NVIDIA’s original TensorFlow implementation of a generator architecture that borrows from style transfer literature. It synthesizes images—notably photorealistic human faces—by mapping latent codes through an intermediate space that controls visual features at different scales. The result is a GAN where coarse layers handle pose and identity while fine layers handle stochastic variation like hair placement or skin pores.

The interesting bit

The clever part is the unsupervised separation: the network learns to disentangle high-level structure from random detail without labeled examples. It also introduces automated metrics to measure interpolation quality and disentanglement that work on any generator architecture.

Key highlights

  • Official reference implementation of the paper by Karras, Laine, and Aila.
  • Pre-trained networks provided for faces (FFHQ and CelebA-HQ at 1024×1024), bedrooms, cars, and cats.
  • Includes scripts to reproduce paper figures demonstrating style mixing and truncation.
  • Released under a CC BY-NC 4.0 license, permitting redistribution and adaptation only for non-commercial use.
  • Requires substantial hardware: the authors recommend an NVIDIA DGX-1 with eight Tesla V100 GPUs and at least 11 GB of GPU memory.

Caveats

  • The README prominently notes that StyleGAN2-ADA-PyTorch is now available; this repository is effectively the legacy version.
  • Targets TensorFlow 1.10 and Python 3.6, which are well past their support windows.
  • The non-commercial license means you cannot legally use the pre-trained weights or code for commercial projects without negotiating a separate agreement with NVIDIA.

Verdict

Use this if you are reproducing the 2018 paper or studying architecture history; otherwise, the PyTorch successor is a better starting point, and casual visitors can simply admire the generated faces.

Frequently asked

What is NVlabs/stylegan?
It rearchitects GAN generators using style-transfer ideas to unsupervisedly separate pose and identity from freckles and hair texture.
Is stylegan open source?
Yes — NVlabs/stylegan is an open-source project tracked on heatdrop.
What language is stylegan written in?
NVlabs/stylegan is primarily written in Python.
How popular is stylegan?
NVlabs/stylegan has 14.4k stars on GitHub.
Where can I find stylegan?
NVlabs/stylegan is on GitHub at https://github.com/NVlabs/stylegan.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.