Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: creativeml-openrail-m
|
| 3 |
+
tags:
|
| 4 |
+
- keras
|
| 5 |
+
- diffusers
|
| 6 |
+
- stable-diffusion
|
| 7 |
+
- text-to-image
|
| 8 |
+
- diffusion-models-class
|
| 9 |
+
- dreambooth-hackathon
|
| 10 |
+
- nature
|
| 11 |
+
inference: true
|
| 12 |
+
widget:
|
| 13 |
+
- text: a photo of puggieace dog on the beach, sunset in background
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# KerasCV Stable Diffusion in Diffusers 🧨🤗
|
| 17 |
+
|
| 18 |
+
DreamBooth model for the `puggieace` concept trained by nielsgl on the `nielsgl/dreambooth-ace` dataset.
|
| 19 |
+
It can be used by modifying the `instance_prompt`: **a photo of puggieace dog**
|
| 20 |
+
|
| 21 |
+
## Description
|
| 22 |
+
|
| 23 |
+
The pipeline contained in this repository was created using a modified version of [this Space](https://huggingface.co/spaces/sayakpaul/convert-kerascv-sd-diffusers) for StableDiffusionV2 from KerasCV. The purpose is to convert the KerasCV Stable Diffusion weights in a way that is compatible with [Diffusers](https://github.com/huggingface/diffusers). This allows users to fine-tune using KerasCV and use the fine-tuned weights in Diffusers taking advantage of its nifty features (like [schedulers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/schedulers), [fast attention](https://huggingface.co/docs/diffusers/optimization/fp16), etc.).
|
| 24 |
+
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!
|
| 25 |
+
|
| 26 |
+
## Examples
|
| 27 |
+
|
| 28 |
+
> Portrait painting of a cute puggieace dog as a samurai
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
|
| 32 |
+
> Photo of cute puggieace dog as an astronaut, space and planet in background
|
| 33 |
+
|
| 34 |
+

|
| 35 |
+
|
| 36 |
+
> A photo of a cute puggieace dog getting a haircut in a barbershop
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
|
| 40 |
+
> Portrait of puggieace dog as a Roman Emperor, city in background
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
## Usage
|
| 46 |
+
|
| 47 |
+
```python
|
| 48 |
+
from diffusers import StableDiffusionPipeline
|
| 49 |
+
|
| 50 |
+
pipeline = StableDiffusionPipeline.from_pretrained('nielsgl/dreambooth-keras-pug-ace-sd2.1')
|
| 51 |
+
image = pipeline().images[0]
|
| 52 |
+
image
|
| 53 |
+
```
|