AdamOswald1 commited on
Commit
b5678ec
1 Parent(s): cc6ba87

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +130 -0
README.md ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ thumbnail: "https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/thumbnail.png"
5
+ tags:
6
+ - cyberpunk
7
+ - anime
8
+ - waifu-diffusion
9
+ - stable-diffusion
10
+ - aiart
11
+ - text-to-image
12
+ license: creativeml-openrail-m
13
+ ---
14
+ <center><img src="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/5.jpg" width="512" height="512"/></center>
15
+
16
+ ![visitors](https://visitor-badge.glitch.me/badge?page_id=Cyberpunk_Anime_Diffusion)
17
+
18
+ # Cyberpunk Anime Diffusion
19
+
20
+ An AI model that generates cyberpunk anime characters!~
21
+
22
+ Based of a finetuned Waifu Diffusion V1.3 Model with Stable Diffusion V1.5 New Vae, training in 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
+ model_id = "DGSpitzer/Cyberpunk-Anime-Diffusion"
37
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
38
+ pipe = pipe.to("cuda")
39
+ 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"
40
+ image = pipe(prompt).images[0]
41
+ image.save("./cyberpunk_girl.png")
42
+ ```
43
+
44
+ # Online Demo
45
+
46
+ You can try the Online Web UI demo build with [Gradio](https://github.com/gradio-app/gradio), or use 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 Demo by anzorq*
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
+ <center><img src="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/1.jpg" width="512" height="512"/></center>
61
+
62
+ # **👇Model👇**
63
+
64
+ AI Model Weights available at huggingface: https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion
65
+
66
+ <center><img src="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/2.jpg" width="512" height="512"/></center>
67
+
68
+ # Usage
69
+
70
+ After model loaded, use keyword **dgs** in your prompt, with **illustration style** to get even better results.
71
+
72
+ For sampler, use **Euler A** for the best result (**DDIM** kinda works too), CFG Scale 7, steps 20 should be fine
73
+
74
+ **Example 1:**
75
+
76
+ ```
77
+ portrait of a girl in dgs illustration style, Anime girl, female soldier working in a cyberpunk city, cleavage, ((perfect femine face)), intricate, 8k, highly detailed, shy, digital painting, intense, sharp focus
78
+ ```
79
+
80
+ For cyber robot male character, you can add **muscular male** to improve the output.
81
+
82
+ **Example 2:**
83
+
84
+ ```
85
+ a photo of muscular beard soldier male in dgs illustration style, half-body, holding robot arms, strong chest
86
+ ```
87
+
88
+ **Example 3 (with Stable Diffusion WebUI):**
89
+
90
+ If using [AUTOMATIC1111's Stable Diffusion WebUI](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
91
+
92
+ You can simply use this as **prompt** with **Euler A** Sampler, CFG Scale 7, steps 20, 704 x 704px output res:
93
+
94
+ ```
95
+ an anime girl in dgs illustration style
96
+ ```
97
+
98
+ And set the **negative prompt** as this to get cleaner face:
99
+
100
+ ```
101
+ out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers
102
+ ```
103
+
104
+ This will give you the exactly same style as the sample images above.
105
+
106
+ <center><img src="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/ReadmeAddon.jpg" width="256" height="353"/></center>
107
+
108
+ ---
109
+
110
+ **NOTE: usage of this model implies accpetance of stable diffusion's [CreativeML Open RAIL-M license](LICENSE)**
111
+
112
+ ---
113
+
114
+
115
+ <center><img src="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/4.jpg" width="700" height="700"/></center>
116
+
117
+ <center><img src="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion/resolve/main/img/6.jpg" width="700" height="700"/></center>
118
+
119
+ ---
120
+ license: openrail
121
+ library_name: diffusers
122
+ tags:
123
+ - TPU
124
+ - JAX
125
+ - Flax
126
+ - stable-diffusion
127
+ - text-to-image
128
+ language:
129
+ - en
130
+ ---