Downloads · 30 days
0
0% of all-time downloads
merve/anime-faces-generator
anime-faces-generator is a machine learning model from merve. 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 keras. The card lists the license as apache-2.0.
Anime face generator model using TensorFlow DCGAN example.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
263
Public
Repo size
413 MB
Likes
2
Public
Click a slice to open those files.
.data-00000-of-00001118 MB · 99%
From the Hugging Face model README
Anime face generator model using TensorFlow DCGAN example.
Model is trained on anime faces dataset. The dataset consists of 21551 anime faces scraped from www.getchu.com, which are then cropped using the anime face detection algorithm here. All images are resized to 64 * 64 for the sake of convenience. The model takes a noise as input and then Conv2DTranspose is used to do upsampling. If you want to pass this to another discriminator, the output shape consists of 28x28 images.
You can use this model to generate new anime faces. If you want to continuously train, use with discriminator using tf.GradientTape() as mentioned in the DCGAN tutorial.
from huggingface_hub import from_pretrained_keras
model = from_pretrained_keras("merve/anime-faces-generator")
You can generate examples using a noise.
seed = tf.random.normal([number_of_examples_to_generate, noise])
predictions = model(seed, training=False) # inference mode
This model is not intended for production.
