Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,20 +1,45 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
4 |
|
5 |
-
|
6 |
|
7 |
-
|
8 |
|
9 |
-
|
10 |
|
11 |
-
|
12 |
|
13 |
-
## Training and evaluation data
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
### Training hyperparameters
|
20 |
|
@@ -38,4 +63,3 @@ The following hyperparameters were used during training:
|
|
38 |
| epsilon | 1e-07 |
|
39 |
| centered | False |
|
40 |
| training_precision | float32 |
|
41 |
-
|
|
|
1 |
---
|
2 |
+
license: creativeml-openrail-m
|
3 |
+
tags:
|
4 |
+
- keras
|
5 |
+
- keras-cv
|
6 |
+
- diffusers
|
7 |
+
- stable-diffusion
|
8 |
+
- text-to-image
|
9 |
+
- diffusion-models-class
|
10 |
+
- dreambooth
|
11 |
+
- nature
|
12 |
+
widget:
|
13 |
+
- text: a photo of puggieace dog on the beach
|
14 |
---
|
15 |
|
16 |
+
# DreamBooth model for the `puggieace` concept trained by nielsgl on the nielsgl/dreambooth-ace dataset.
|
17 |
|
18 |
+
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**
|
19 |
|
20 |
+
This model was created as part of the Keras DreamBooth Sprint 🔥. Visit the [organisation page](https://huggingface.co/keras-dreambooth) for instructions on how to take part!
|
21 |
|
22 |
+
## Description
|
23 |
|
|
|
24 |
|
25 |
+
This is a KerasCV Stable Diffusion model fine-tuned on `dog` images for the nature theme.
|
26 |
|
27 |
+
|
28 |
+
## Usage
|
29 |
+
|
30 |
+
```python
|
31 |
+
from huggingface_hub import from_pretrained_keras
|
32 |
+
import keras_cv
|
33 |
+
import matplotlib.pyplot as plt
|
34 |
+
|
35 |
+
|
36 |
+
model = keras_cv.models.StableDiffusionV2(img_width=512, img_height=512, jit_compile=True)
|
37 |
+
model._diffusion_model = from_pretrained_keras(nielsgl/dreambooth-pug-ace-sd2.1-base)
|
38 |
+
model._text_encoder = from_pretrained_keras(nielsgl/dreambooth-pug-ace-sd2.1-base-text-encoder)
|
39 |
+
|
40 |
+
images = model.text_to_image("a photo of puggieace dog on the beach", batch_size=3)
|
41 |
+
plt.imshow(image[0])
|
42 |
+
```
|
43 |
|
44 |
### Training hyperparameters
|
45 |
|
|
|
63 |
| epsilon | 1e-07 |
|
64 |
| centered | False |
|
65 |
| training_precision | float32 |
|
|