CoolFace
Modelpublic

nielsgl/dreambooth-pug-ace-sd2.1-base

sourceHugging Facecreativeml-openrail-mupdated 4y agoView on Hugging Face
0likes4downloads
Model Card

DreamBooth model for the puggieace concept trained by nielsgl on the nielsgl/dreambooth-ace dataset.

This is a KerasCV Stable Diffusion V2.1 model fine-tuned on the puggieace concept with DreamBooth. It can be used by modifying the instance_prompt: a photo of puggieace

This model was created as part of the Keras DreamBooth Sprint 🔥. Visit the organisation page for instructions on how to take part!

Description

This is a KerasCV Stable Diffusion model fine-tuned on dog images for the nature theme.

Usage

python
from huggingface_hub import from_pretrained_keras
import keras_cv
import matplotlib.pyplot as plt


model = keras_cv.models.StableDiffusionV2(img_width=512, img_height=512, jit_compile=True)
model._diffusion_model = from_pretrained_keras(nielsgl/dreambooth-pug-ace-sd2.1-base)
model._text_encoder = from_pretrained_keras(nielsgl/dreambooth-pug-ace-sd2.1-base-text-encoder)

images = model.text_to_image("a photo of puggieace dog on the beach", batch_size=3)
plt.imshow(image[0])

Training hyperparameters

The following hyperparameters were used during training:

HyperparametersValue
nameRMSprop
weight_decayNone
clipnormNone
global_clipnormNone
clipvalueNone
use_emaFalse
ema_momentum0.99
emaoverwritefrequency100
jit_compileTrue
islegacyoptimizerFalse
learning_rate0.0010000000474974513
rho0.9
momentum0.0
epsilon1e-07
centeredFalse
training_precisionfloat32