File size: 3,382 Bytes
15191c0 674bcb7 15191c0 674bcb7 b21f646 e06f1ac ff0d530 e06f1ac ff0d530 b21f646 e86d260 0306d2f d6d2d09 b21f646 6282826 b21f646 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
---
language:
- en
thumbnail: ""
tags:
- Asian
- China
- Character
- stable-diffusion
- aiart
license: creativeml-openrail-m
---
<center><img src="" width="512" height="512"/></center>
![visitors](https://visitor-badge.glitch.me/badge?page_id=Guan_Yu_Diffusion)
# Guan Yu Diffusion
There is few model that focus on elements of Asian culture and heritage, so I manage to make my own one!
Hope you like it! XD
Guan Yu Diffusion is an AI model that generates traditional oriental hero Guan Yu, from Three Kindoms Era in China during 220 to 280 AD!
As an ancient hero "Saint of War" and the Door God that ward off evil spirits, Guan Yu represents a big role in Asian culture, by chance you can find his status and mini temples in a lot of Asian restaurants and markets all over the world.
It also comes with an additional support prompt to create Wu Xia - traditional Chinese martial art characters from movie and TV shows.
Based of Stable Diffusion V1.5, training in Fast Dreambooth
by [DGSpitzer](https://www.youtube.com/channel/UCzzsYBF4qwtMwJaPJZ5SuPg)
<center><img src="https://huggingface.co/DGSpitzer/Guan-Yu-Diffusion/resolve/main/img/2.jpg" width="768" height="600"/></center>
<center><img src="https://huggingface.co/DGSpitzer/Guan-Yu-Diffusion/resolve/main/img/1.jpg" width="768" height="600"/></center>
### 🧨 Diffusers
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).
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).
```python example for loading the Diffuser
#!pip install diffusers transformers scipy torch
from diffusers import StableDiffusionPipeline
import torch
model_id = "DGSpitzer/Guan-Yu-Diffusion"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "Portrait of guanyu walking in ancient battlefield, close up shot"
image = pipe(prompt).images[0]
image.save("./guanyu.png")
```
# Online Demo
You can try the Online Web UI demo build with [Gradio](https://github.com/gradio-app/gradio), or use Colab Notebook at here:
*My Online Space Demo*
[![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/DGSpitzer/DGS-Diffusion-Space)
*Colab Notebook*
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/HelixNGC7293/cyberpunk-anime-diffusion/blob/main/cyberpunk_anime_diffusion.ipynb)[![GitHub](https://badgen.net/badge/icon/Github?icon=github&label)](https://github.com/HelixNGC7293/cyberpunk-anime-diffusion)
*Buy me a coffee if you like this project ;P ♥*
[![Buy me a coffee](https://badgen.net/badge/icon/Buy%20Me%20A%20Coffee?icon=buymeacoffee&label)](https://www.buymeacoffee.com/dgspitzer)
# **👇Model👇**
AI Model Weights available at huggingface: https://huggingface.co/DGSpitzer/Guan-Yu-Diffusion/
|