Update README.md
Browse files
README.md
CHANGED
|
@@ -11,4 +11,53 @@ tags:
|
|
| 11 |
license: creativeml-openrail-m
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
license: creativeml-openrail-m
|
| 12 |
---
|
| 13 |
|
| 14 |
+
<center><img src="" width="512" height="512"/></center>
|
| 15 |
+
|
| 16 |
+

|
| 17 |
+
|
| 18 |
+
# Guan Yu Diffusion
|
| 19 |
+
|
| 20 |
+
An AI model that generates traditional oriental hero Guan Yu, from Three Kindoms Era in China during 220 to 280 AD!
|
| 21 |
+
|
| 22 |
+
Based of Stable Diffusion V1.5, training in Fast Dreambooth
|
| 23 |
+
|
| 24 |
+
by [DGSpitzer](https://www.youtube.com/channel/UCzzsYBF4qwtMwJaPJZ5SuPg)
|
| 25 |
+
|
| 26 |
+
### 🧨 Diffusers
|
| 27 |
+
|
| 28 |
+
This repo contains both .ckpt and Diffuser model files. It's compatible to be used as any Stable Diffusion model, using standard [Stable Diffusion Pipelines](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
|
| 29 |
+
|
| 30 |
+
You can convert this model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX](https://huggingface.co/blog/stable_diffusion_jax).
|
| 31 |
+
|
| 32 |
+
```python example for loading the Diffuser
|
| 33 |
+
#!pip install diffusers transformers scipy torch
|
| 34 |
+
from diffusers import StableDiffusionPipeline
|
| 35 |
+
import torch
|
| 36 |
+
|
| 37 |
+
model_id = "DGSpitzer/Guan-Yu-Diffusion"
|
| 38 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 39 |
+
pipe = pipe.to("cuda")
|
| 40 |
+
|
| 41 |
+
prompt = "Portrait of Guanyu in the street of Shanghai"
|
| 42 |
+
image = pipe(prompt).images[0]
|
| 43 |
+
|
| 44 |
+
image.save("./guanyu.png")
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
# Online Demo
|
| 48 |
+
|
| 49 |
+
You can try the Online Web UI demo build with [Gradio](https://github.com/gradio-app/gradio), or use Colab Notebook at here:
|
| 50 |
+
|
| 51 |
+
*My Online Space Demo*
|
| 52 |
+
[](https://huggingface.co/spaces/DGSpitzer/DGS-Diffusion-Space)
|
| 53 |
+
|
| 54 |
+
*Colab Notebook*
|
| 55 |
+
[](https://colab.research.google.com/github/HelixNGC7293/cyberpunk-anime-diffusion/blob/main/cyberpunk_anime_diffusion.ipynb)[](https://github.com/HelixNGC7293/cyberpunk-anime-diffusion)
|
| 56 |
+
|
| 57 |
+
*Buy me a coffee if you like this project ;P ♥*
|
| 58 |
+
[](https://www.buymeacoffee.com/dgspitzer)
|
| 59 |
+
|
| 60 |
+
# **👇Model👇**
|
| 61 |
+
|
| 62 |
+
AI Model Weights available at huggingface: https://huggingface.co/DGSpitzer/Guan-Yu-Diffusion/
|
| 63 |
+
|