# huggingface/pytorch-pretrained-BigGAN

🦋A PyTorch implementation of BigGAN with pretrained weights and conversion scripts.

Repository: https://github.com/huggingface/pytorch-pretrained-BigGAN
Canonical: https://ross.abutalabs.com/products/pytorch-pretrained-biggan
Language: Python
License: MIT
License Family: permissive
Topics: neural-network, gan, pytorch, biggan, computer-vision, artificial-intelligence, generative-adversarial-network
Last push: 2021-02-12T14:12:06+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2722, "days_push": 2028, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1039, forks 178 (observed 2026-08-28T04:03:19.835462+00:00)

## What it is
A PyTorch reimplementation of DeepMind's BigGAN generator with pretrained weights at 128, 256, and 512 pixel resolutions, plus scripts to convert the original TensorFlow Hub models. It lets users generate high-fidelity images from class labels and noise samples with a simple pip-installable API.

## Use cases
- generate images from imagenet class names with a pretrained GAN
- run BigGAN in PyTorch instead of TensorFlow
- convert DeepMind BigGAN weights from TF Hub to PyTorch
- sample images with truncation trick noise
- experiment with GAN latent space interpolation

## When to choose
- you want pretrained BigGAN image generation in PyTorch
- you need an op-for-op port of the TensorFlow BigGAN generator
- you want a simple pip-installable GAN for class-conditional image synthesis

## When to avoid
- you need the BigGAN discriminator
- you want to train a GAN from scratch
- you need a maintained library - the repo has not been updated since 2021
- you want modern diffusion-based image generation

## Facets
- artifact type: library
- maturity: maintenance
- function: machine-learning, deep-learning, image-processing
- domain: machine-learning, deep-learning, computer-vision, image-processing
- platform: python
- tags: gan, biggan, pytorch, pretrained-models, image-generation, generative-models

## Member repositories
- huggingface/pytorch-pretrained-BigGAN (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:19.835462+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:03:37.164059+00:00, confidence not recorded.
  - readme: https://github.com/huggingface/pytorch-pretrained-BigGAN (fetched 2026-08-28T04:03:19.835462+00:00, sha 8b16ba4ea286)
  - registry_pypi: https://pypi.org/pypi/pytorch-pretrained-biggan/json (fetched 2026-08-29T13:04:56.746385+00:00, sha f5c6c78efadf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
