Downloads · 30 days
0
Jezia/pytorch-pretrained-BigGAN
pytorch-pretrained-BigGAN is a machine learning model from Jezia. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
This is an op-for-op PyTorch reimplementation of DeepMind's BigGAN model with the pre-trained weights from DeepMind biggan-deep-128. Model is trained on ImageNet dataset. The dataset consists of 10000 classes. All ima…
Downloads · 30 days
0
Access
Public
Updated Mar 25, 2022
Repo size
—
Likes
2
Public
Click a slice to open those files.
.md1.3 KB · 52%
From the Hugging Face model README
This is an op-for-op PyTorch reimplementation of DeepMind's BigGAN model with the pre-trained weights from DeepMind biggan-deep-128.
Model is trained on ImageNet dataset. The dataset consists of 10000 classes. All images are resized to 64 * 64 for the sake of convenience. The model takes noise as input and then Conv2DTranspose is used to do upsampling. The output shape consists of 128, 256, or 512 images depending on the model.
You can use this model to generate new images.
import torch
from pytorch_pretrained_biggan import (BigGAN, one_hot_from_names, truncated_noise_sample,
save_as_images, display_in_terminal)
model = BigGAN.from_pretrained('biggan-deep-256')
You can generate examples using a noise vector.
with torch.no_grad():
output = model(noise_vector, class_vector, truncation)
This model is not intended for production.

@thomwolf Thomas Wolf @vfdev-5 vfdev