Downloads · 30 days
0
beatrizfarias/pokemon-gan
pokemon-gan is a machine learning model from beatrizfarias. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A DCGAN-style unconditional Generative Adversarial Network trained to generate Pokemon-style images from random noise.
Downloads · 30 days
0
Access
Public
Updated Mar 26, 2026
Repo size
14.3 MB
Likes
0
Public
Click a slice to open those files.
.pth14.3 MB · 100%
From the Hugging Face model README
A DCGAN-style unconditional Generative Adversarial Network trained to generate Pokemon-style images from random noise.
The Generator uses transposed convolutions to progressively upsample a latent vector into a 64×64 RGB image, while the Discriminator uses strided convolutions to downsample and classify images as real or fake.
Generator
z (latent dim = 100)(512, 4, 4)(3, 64, 64) RGB imageDiscriminator
(3, 64, 64) RGB imagefrom huggingface_hub import hf_hub_download
import torch
from pokemon_gan_model import Generator
model = Generator(latent_dim=100)
weights_path = hf_hub_download(repo_id="beatrizfarias/pokemon-gan", filename="pokemon_gan_generator.pth")
model.load_state_dict(torch.load(weights_path, map_location="cpu"))
model.eval()
z = torch.randn(1, 100)
with torch.no_grad():
img = model(z) # shape: (1, 3, 64, 64)
After 200 epochs, the generator produces images with clear creature-like silhouettes and Pokemon-style color palettes on white backgrounds.