001
Browse files- storage/ESD_CInnamomo.ipynb +0 -187
storage/ESD_CInnamomo.ipynb
DELETED
@@ -1,187 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"cells": [
|
3 |
-
{
|
4 |
-
"cell_type": "markdown",
|
5 |
-
"metadata": {
|
6 |
-
"id": "-1jw8kgDlyHY"
|
7 |
-
},
|
8 |
-
"source": [
|
9 |
-
"# ESD Cinnamomo\n",
|
10 |
-
"\n",
|
11 |
-
"### Reference Links: 애옹이도둑 (https://arca.live/b/aiart/59406212), (https://colab.research.google.com/drive/1nBaePtwcW_ds7OQdFebcxB91n_aORQY5?usp=sharing)\n",
|
12 |
-
"\n",
|
13 |
-
"###This ipynb file is a modified version of original file. *CC BY-NC-SA 4.0* license.\n",
|
14 |
-
"\n",
|
15 |
-
"\n",
|
16 |
-
"### How to execute\n",
|
17 |
-
" 1. Click the *Runtime* menu, and choose *Change runtime type*, set *Hardware accelerator* to *GPU*.\n",
|
18 |
-
" - ⚠ try another account if you're out of GPU usage limit\n",
|
19 |
-
" 1. *Runtime* > *Run all(Ctrl+F9)*\n",
|
20 |
-
" 1. About 5-10 minutes after of execution, you may see the link to entre the Web UI.\n",
|
21 |
-
" (`https://xxxxxx.gradio.app`)\n",
|
22 |
-
" 1. For further information, or make enquiry of errors, Go to communities on below or to [Mini Community of the Original attributor](https://gall.dcinside.com/mini/board/lists/?id=owo)\n",
|
23 |
-
"\n",
|
24 |
-
"### Korean AI Community\n",
|
25 |
-
"- [아카라이브 AI그림 채널](https://arca.live/b/aiart)\n",
|
26 |
-
"- [디시인사이드 AI 창작 마이너 갤러리](https://gall.dcinside.com/m/aicreate)\n",
|
27 |
-
"\n",
|
28 |
-
"### See More\n",
|
29 |
-
"- https://rentry.org/voldy\n",
|
30 |
-
"- https://rentry.org/sdmodels\n",
|
31 |
-
"- https://cyberes.github.io/stable-diffusion-models/\n",
|
32 |
-
"- https://github.com/AUTOMATIC1111/stable-diffusion-webui\n",
|
33 |
-
"- https://public.vmm.pw/aeon/models"
|
34 |
-
]
|
35 |
-
},
|
36 |
-
{
|
37 |
-
"cell_type": "code",
|
38 |
-
"execution_count": null,
|
39 |
-
"metadata": {
|
40 |
-
"id": "sZ9zJsP-ciOI"
|
41 |
-
},
|
42 |
-
"outputs": [],
|
43 |
-
"source": [
|
44 |
-
"#@title Preparing { display-mode: \"form\" }\n",
|
45 |
-
"\n",
|
46 |
-
"###Python 3.10 install\n",
|
47 |
-
"!apt install -yq python3.10 python3.10-dev\n",
|
48 |
-
"!update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 100\n",
|
49 |
-
"!python <(curl -s 'https://bootstrap.pypa.io/get-pip.py')\n",
|
50 |
-
"##########\n",
|
51 |
-
"\n",
|
52 |
-
"###ui cloning\n",
|
53 |
-
"!git clone 'https://github.com/AUTOMATIC1111/stable-diffusion-webui'\n",
|
54 |
-
"!apt install -yq build-essential libgl1\n",
|
55 |
-
"!pip install cython\n",
|
56 |
-
"!pip install -r stable-diffusion-webui/requirements.txt\n",
|
57 |
-
"##########\n",
|
58 |
-
"\n",
|
59 |
-
"###change mapping position to VRAM\n",
|
60 |
-
"# Colab send SIGKILL to process if model is too large. we can fix this issue by replacing model map location to VRAM.\n",
|
61 |
-
"# thanks to https://gist.github.com/td2sk/e32a39344537fb3cd756ef4abdd3d371\n",
|
62 |
-
"!sed -i 's/map_location=\"cpu\"/map_location=torch.device(\"cuda\")/g' ./stable-diffusion-webui/modules/sd_models.py\n",
|
63 |
-
"##########\n",
|
64 |
-
"\n",
|
65 |
-
"###Aria2c setting\n",
|
66 |
-
"!apt install -yq aria2\n",
|
67 |
-
"!mkdir -p ~/.aria2\n",
|
68 |
-
"!mkdir -p stable-diffusion-webui/models/Stable-diffusion\n",
|
69 |
-
"\n",
|
70 |
-
"from pathlib import Path\n",
|
71 |
-
"f = open(Path.joinpath(Path.home(), '.aria2', 'aria2.conf'), \"w\")\n",
|
72 |
-
"f.write(\"\"\"\n",
|
73 |
-
"summary-interval=3\n",
|
74 |
-
"allow-overwrite=true\n",
|
75 |
-
"always-resume=true\n",
|
76 |
-
"disk-cache=64M\n",
|
77 |
-
"continue=true\n",
|
78 |
-
"min-split-size=8M\n",
|
79 |
-
"max-concurrent-downloads=16\n",
|
80 |
-
"max-connection-per-server=16\n",
|
81 |
-
"max-overall-download-limit=0\n",
|
82 |
-
"max-download-limit=0\n",
|
83 |
-
"split=32\n",
|
84 |
-
"seed-time=0\n",
|
85 |
-
"\"\"\")\n",
|
86 |
-
"f.close()\n",
|
87 |
-
"##########\n",
|
88 |
-
"\n",
|
89 |
-
"from google.colab import output\n",
|
90 |
-
"output.clear()"
|
91 |
-
]
|
92 |
-
},
|
93 |
-
{
|
94 |
-
"cell_type": "code",
|
95 |
-
"execution_count": null,
|
96 |
-
"metadata": {
|
97 |
-
"cellView": "form",
|
98 |
-
"id": "HT2EtHJPkYqV"
|
99 |
-
},
|
100 |
-
"outputs": [],
|
101 |
-
"source": [
|
102 |
-
"#@title Models list\n",
|
103 |
-
"\n",
|
104 |
-
"#PCIA A1 Config = https://shorturl.at/HSW23 #config.yaml\n",
|
105 |
-
"#PCIA A1 VAE = https://shorturl.at/cwxD5 #VAE\n",
|
106 |
-
"#PCIA A1 = https://shorturl.at/twXZ5 #ckpt\n",
|
107 |
-
"\n",
|
108 |
-
"#Standard Model 1.4 = https://public.vmm.pw/aeon/models/sd-v1-4.ckpt\n",
|
109 |
-
"\n",
|
110 |
-
"#Waifu Diffusion 1.3 = https://huggingface.co/hakurei/waifu-diffusion-v1-3/resolve/main/wd-v1-3-full.ckpt\n",
|
111 |
-
"#WD v1.2 and SD v1.4 Merged = https://public.vmm.pw/aeon/models/wd1-2_sd1-4_merged.ckpt\n",
|
112 |
-
"\n",
|
113 |
-
"#trinart_stable_diffusion_v2 60,000 Steps = https://huggingface.co/naclbit/trinart_stable_diffusion_v2/resolve/main/trinart2_step60000.ckpt\n",
|
114 |
-
"#trinart_stable_diffusion_v2 115,000 Steps = https://huggingface.co/naclbit/trinart_stable_diffusion_v2/resolve/main/trinart2_step115000.ckpt\n",
|
115 |
-
"\n",
|
116 |
-
"#Hiten = https://huggingface.co/BumblingOrange/Hiten/resolve/main/Hiten%20girl_anime_8k_wallpaper_4k.ckpt\n"
|
117 |
-
]
|
118 |
-
},
|
119 |
-
{
|
120 |
-
"cell_type": "code",
|
121 |
-
"execution_count": null,
|
122 |
-
"metadata": {
|
123 |
-
"cellView": "form",
|
124 |
-
"id": "pAkrfWHYgfdg"
|
125 |
-
},
|
126 |
-
"outputs": [],
|
127 |
-
"source": [
|
128 |
-
"#@title Download the Models\n",
|
129 |
-
"\n",
|
130 |
-
"!aria2c -d stable-diffusion-webui/models/Stable-diffusion -Z https://shorturl.at/HSW23 https://shorturl.at/cwxD5 https://shorturl.at/twXZ5\n",
|
131 |
-
"#put URL of Config and VAE first\n",
|
132 |
-
"#!aria2c -d 'directory' -Z 'Config file' 'VAE file' 'ckpt file #1' 'ckpt file #2' 'ckpt file #3'\n",
|
133 |
-
"\n",
|
134 |
-
"from google.colab import output\n",
|
135 |
-
"output.clear()"
|
136 |
-
]
|
137 |
-
},
|
138 |
-
{
|
139 |
-
"cell_type": "code",
|
140 |
-
"execution_count": null,
|
141 |
-
"metadata": {
|
142 |
-
"cellView": "form",
|
143 |
-
"id": "nHVHV-kafSS4"
|
144 |
-
},
|
145 |
-
"outputs": [],
|
146 |
-
"source": [
|
147 |
-
"#@title Execute and Entre\n",
|
148 |
-
"!pip install --upgrade setuptools # TODO: fix 'setup.py egg_info' error\n",
|
149 |
-
"!cd stable-diffusion-webui && python launch.py --share"
|
150 |
-
]
|
151 |
-
},
|
152 |
-
{
|
153 |
-
"cell_type": "code",
|
154 |
-
"execution_count": null,
|
155 |
-
"metadata": {},
|
156 |
-
"outputs": [],
|
157 |
-
"source": [
|
158 |
-
"#####TIPS#####\n",
|
159 |
-
"#(tag:int number) to adjust weight of tags.\n",
|
160 |
-
"#()=1.1\n",
|
161 |
-
"#(())=1.21 or 1.2\n",
|
162 |
-
"#((()))=1.33 or 1.3\n",
|
163 |
-
"\n",
|
164 |
-
"#Recommend prompt:(masterpiece:1.3), (best quality:1.3), (solo:1.3), (full body shot:1.3), (finely detailed beautiful eyes and detailed face:1.3), (bishoujo:1.3), (turquoise eyes:1.3), (blonde hair:1.3), (realistic body:1.3), (imperial crown:1.3), (dress:1.3), (jewelry belt:1.3), (jagged ornaments:1.3), (large jewelry:1.3), (large fallal:1.3), (glitter effect:1.3), octane render, cinematic light\n",
|
165 |
-
"#Negative prompt: (ugly:1.3), (duplicate:1.3), (morbid:1.2), (mutilated:1.2), (tranny:1.3), (trans:1.3), (trannsexual:1.3), (hermaphrodite:1.1), [out of frame], extra fingers, mutated hands, (poorly drawn hands:1.2), (poorly drawn face:1.2), (mutation:1.3), (deformed:1.3), blurry, (bad anatomy:1.2), (bad proportions:1.3), (extra limbs:1.3), cloned face, (disfigured:1.3), (more than 2 nipples:1.3), (more than 2 brests per person:1.3),[[[adult]]], out of frame, extra limbs, (bad anatomy:1.1), gross proportions, (malformed limbs:1.1), (missing arms:1.3), (missing legs:1.3), (extra arms:1.3), (extra legs:1.3), mutated hands, (fused fingers:1.1), (too many fingers:1.1), (long neck:1.3), (lowres:1.3), (low quality:1.3), (signature: 1.3), (watermark:1.3)\n",
|
166 |
-
"\n",
|
167 |
-
"#Steps: 50, Sampler: DPM2 a, CFG scale: 7.5, Seed: -1, Size: 512x768, Model hash: -1, Denoising strength: 0.7"
|
168 |
-
]
|
169 |
-
}
|
170 |
-
],
|
171 |
-
"metadata": {
|
172 |
-
"accelerator": "GPU",
|
173 |
-
"colab": {
|
174 |
-
"collapsed_sections": [],
|
175 |
-
"provenance": []
|
176 |
-
},
|
177 |
-
"kernelspec": {
|
178 |
-
"display_name": "Python 3",
|
179 |
-
"name": "python3"
|
180 |
-
},
|
181 |
-
"language_info": {
|
182 |
-
"name": "python"
|
183 |
-
}
|
184 |
-
},
|
185 |
-
"nbformat": 4,
|
186 |
-
"nbformat_minor": 0
|
187 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|