Downloads · 30 days
0
tgallup/desert-gan
desert-gan is a machine learning model from tgallup. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model was trained on a custom city image dataset using a Progressive GAN architecture with techniques to prevent mode collapse. It generates images up to 128x128 resolution.
Downloads · 30 days
0
Access
Public
Updated May 12, 2025
Repo size
447 MB
Likes
0
Public
Click a slice to open those files.
.pt386 MB · 95%
From the Hugging Face model README
This model was trained on a custom city image dataset using a Progressive GAN architecture with techniques to prevent mode collapse. It generates images up to 128x128 resolution.

import torch
from torch import nn
# Define generator architecture
class Generator(nn.Module):
# ... (architecture code)
# Load the model
generator = Generator(latent_dim=100, channels=3)
generator.load_state_dict(torch.load('model/generator_epoch_9200.pt'))
generator.eval()
# Generate images
z = torch.randn(1, 100)
with torch.no_grad():
fake_image = generator(z)
# Convert to range [0, 1] for display
fake_image = (fake_image + 1) / 2.0
Training is currently 92.0% complete. Current resolution phase: 5 of 5