Update README.md
Browse files
README.md
CHANGED
@@ -20,7 +20,41 @@ Based of a finetuned Waifu Diffusion V1.3 Model with Stable Diffusion V1.5 New V
|
|
20 |
|
21 |
by [DGSpitzer](https://www.youtube.com/channel/UCzzsYBF4qwtMwJaPJZ5SuPg)
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
[![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)
|
|
|
|
|
24 |
[![Buy me a coffee](https://badgen.net/badge/icon/Buy%20Me%20A%20Coffee?icon=buymeacoffee&label)](https://www.buymeacoffee.com/dgspitzer)
|
25 |
|
26 |
<img src="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/1.jpg" width="512" height="512"/>
|
|
|
20 |
|
21 |
by [DGSpitzer](https://www.youtube.com/channel/UCzzsYBF4qwtMwJaPJZ5SuPg)
|
22 |
|
23 |
+
### 🧨 Diffusers
|
24 |
+
|
25 |
+
This model contains both .ckpt and Diffuser files, It's compatible to be used as any Stable Diffusion model. For more details:[Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
|
26 |
+
|
27 |
+
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).
|
28 |
+
|
29 |
+
```python example for loading the Diffuser
|
30 |
+
#!pip install diffusers transformers scipy torch
|
31 |
+
from diffusers import StableDiffusionPipeline
|
32 |
+
import torch
|
33 |
+
|
34 |
+
model_id = "DGSpitzer/Cyberpunk-Anime-Diffusion"
|
35 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
36 |
+
pipe = pipe.to("cuda")
|
37 |
+
|
38 |
+
prompt = "a beautiful perfect face girl in dgs illustration style, Anime fine details portrait of school girl in front of modern tokyo city landscape on the background deep bokeh, anime masterpiece, 8k, sharp high quality anime"
|
39 |
+
image = pipe(prompt).images[0]
|
40 |
+
|
41 |
+
image.save("./cyberpunk_girl.png")
|
42 |
+
```
|
43 |
+
|
44 |
+
# Online Demo
|
45 |
+
|
46 |
+
You can try the [Gradio](https://github.com/gradio-app/gradio) Online Web UI demo and Colab Notebook at here:
|
47 |
+
|
48 |
+
*My Online Space Demo*
|
49 |
+
[![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/DGSpitzer/DGS-Diffusion-Space)
|
50 |
+
|
51 |
+
*Finetuned_Diffusion WebUI Version*
|
52 |
+
[![Use Finetuned_Diffusion WebUI](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/anzorq/finetuned_diffusion)
|
53 |
+
|
54 |
+
*Colab Notebook*
|
55 |
[![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)
|
56 |
+
|
57 |
+
*Buy me a coffee if you like this project ;P ♥*
|
58 |
[![Buy me a coffee](https://badgen.net/badge/icon/Buy%20Me%20A%20Coffee?icon=buymeacoffee&label)](https://www.buymeacoffee.com/dgspitzer)
|
59 |
|
60 |
<img src="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/1.jpg" width="512" height="512"/>
|