Instructions to use virtuerdem/gan-human-faces with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use virtuerdem/gan-human-faces with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://virtuerdem/gan-human-faces") - Notebooks
- Google Colab
- Kaggle
GAN: Human Faces Generator
A Generative Adversarial Network trained to generate human faces.
Model Details
- Generator: Keras model (.keras)
- Discriminator: Keras model (.keras)
- Framework: TensorFlow/Keras
- Input dimension: 100 (latent space)
- Output: 64x64 RGB images
Usage
import tensorflow as tf
# Model yükleyin
gen = tf.keras.models.load_model('generator.keras')
# Rastgele latent vector oluşturun
import numpy as np
z = np.random.normal(0, 1, (1, 100))
# Face generate edin
fake_face = gen.predict(z)
Training Details
- Trained on: kaggle~~
- Epochs: 1000
- Batch size: 256
- Downloads last month
- 23
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support