NVlabs/stylegan

Description: StyleGAN - Official TensorFlow Implementation

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 47 minutes ago
Added to GitGenius on March 8th, 2026
Created on February 4th, 2019
Open Issues & Pull Requests: 12 (+0)
Number of forks: 3,140
Total Stargazers: 14,420 (+0)
Total Subscribers: 444 (+0)

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

StyleGAN is the official TensorFlow implementation of a novel generative adversarial network architecture introduced by NVIDIA researchers Tero Karras, Samuli Laine, and Timo Aila. The repository implements the approach described in the paper "A Style-Based Generator Architecture for Generative Adversarial Networks," which proposes an alternative generator design that borrows concepts from style transfer literature to achieve unprecedented control over image synthesis.

The core innovation of StyleGAN is its ability to automatically learn an unsupervised separation between high-level attributes and stochastic variation in generated images. When trained on human faces, the architecture disentangles factors like pose and identity from fine-grained details such as freckles and hair texture. This separation enables intuitive, scale-specific control over the synthesis process, allowing users to manipulate different aspects of generated images at different levels of detail. The architecture improves upon previous state-of-the-art results in terms of traditional distribution quality metrics and demonstrates superior interpolation properties compared to earlier approaches.

The repository is implemented in Python 3.6 using TensorFlow 1.10 and requires significant computational resources, specifically high-end NVIDIA GPUs with at least 11GB of DRAM. The system requirements include NVIDIA driver 391.35 or newer, CUDA toolkit 9.0 or newer, and cuDNN 7.3.1 or newer. While both Linux and Windows are supported, the developers strongly recommend Linux for performance and compatibility reasons.

The codebase includes pre-trained network models available as pickled instances, trained on multiple datasets at various resolutions. These include models trained on the Flickr-Faces-HQ dataset at 1024x1024 resolution, CelebA-HQ at 1024x1024, LSUN Bedroom dataset at 256x256, LSUN Car dataset at 512x384, and LSUN Cat dataset at 256x256. The repository provides practical examples for using these pre-trained networks, including a minimal example in pretrained_example.py that demonstrates downloading and using a generator, and a more advanced example in generate_figures.py that reproduces figures from the paper illustrating style mixing, noise inputs, and truncation effects.

The repository also introduces the Flickr-Faces-HQ dataset, a new high-quality and highly varied collection of human face images. Supporting materials are extensive, including high-quality paper PDFs, result videos, example images, and 100,000 generated images demonstrating different truncation levels. Additional auxiliary networks are provided for quality and disentanglement metrics, including standard Inception-v3 classifiers, LPIPS perceptual similarity metrics, and binary attribute classifiers trained on CelebA-HQ.

All material except the Flickr-Faces-HQ dataset is released under Creative Commons BY-NC 4.0 license, permitting non-commercial use, redistribution, and adaptation with proper attribution. The repository represents a significant contribution to generative modeling, introducing automated methods for quantifying interpolation quality and disentanglement that are applicable to any generator architecture. The work has established StyleGAN as a foundational approach in image synthesis, with subsequent versions like StyleGAN2-ADA-PyTorch now available as noted in the repository documentation.

stylegan
by
NVlabsNVlabs/stylegan

Repository Details

Fetching additional details & charts...