Downloads · 30 days
0
katelynvuong/ocean-gan
ocean-gan is a machine learning model from katelynvuong. 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 image dataset using a GAN architecture.
Downloads · 30 days
0
Access
Public
Updated May 10, 2025
Repo size
413 MB
Likes
0
Public
Click a slice to open those files.
.pt393 MB · 95%
From the Hugging Face model README
This model was trained on a custom image dataset using a GAN architecture.

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_9000.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 90.0% complete.