Instructions to use huggan/crypto-gan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use huggan/crypto-gan with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy) # See https://github.com/keras-team/tf-keras for more details. from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("huggan/crypto-gan") - Notebooks
- Google Colab
- Kaggle
Model description
Simple DCGAN implementation in TensorFlow to generate CryptoPunks.
Generated samples
Project repository: CryptoGANs.
Usage
You can play with the HuggingFace space demo.
Or try it yourself
import tensorflow as tf
import matplotlib.pyplot as plt
from huggingface_hub import from_pretrained_keras
seed = 42
n_images = 36
codings_size = 100
generator = from_pretrained_keras("huggan/crypto-gan")
def generate(generator, seed):
noise = tf.random.normal(shape=[n_images, codings_size], seed=seed)
generated_images = generator(noise, training=False)
fig = plt.figure(figsize=(10, 10))
for i in range(generated_images.shape[0]):
plt.subplot(6, 6, i+1)
plt.imshow(generated_images[i, :, :, :])
plt.axis('off')
plt.savefig("samples.png")
generate(generator, seed)
Training data
For training, I used the 10000 CryptoPunks images.
Model Plot
- Downloads last month
- 37
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
