Update setup.py
Browse files
setup.py
CHANGED
|
@@ -29,10 +29,9 @@ else:
|
|
| 29 |
gariz = """<div class="gradient-text">asd</div>"""
|
| 30 |
garis = widgets.Output()
|
| 31 |
b1 = widgets.Button(description='SD 1.5')
|
| 32 |
-
b2 = widgets.Button(description='SDXL')
|
| 33 |
ikuuuhhh = widgets.Button(description='Install')
|
| 34 |
|
| 35 |
-
b1b2 = widgets.HBox([b1
|
| 36 |
sd_setup = widgets.Output()
|
| 37 |
boxxx = widgets.VBox([b1b2, ikuuuhhh], layout=Layout(
|
| 38 |
width='400px',
|
|
@@ -44,7 +43,6 @@ else:
|
|
| 44 |
padding='20px'))
|
| 45 |
|
| 46 |
b1.add_class("b1")
|
| 47 |
-
b2.add_class("b2")
|
| 48 |
ikuuuhhh.add_class("out")
|
| 49 |
boxxx.add_class("boxxx")
|
| 50 |
selected = [None]
|
|
@@ -121,34 +119,6 @@ else:
|
|
| 121 |
get_ipython().system(f"git clone https://huggingface.co/Carlos2312/Wilcards {zzz}/extensions/sd-dynamic-prompts/wildcards")
|
| 122 |
|
| 123 |
|
| 124 |
-
def sd_xl(xxx, zzz, fff):
|
| 125 |
-
sd_clone(xxx, zzz, fff)
|
| 126 |
-
|
| 127 |
-
extras = [
|
| 128 |
-
f"https://civitai.com/api/download/models/182974 {zzz}/embeddings",
|
| 129 |
-
f"https://civitai.com/api/download/models/159385 {zzz}/embeddings",
|
| 130 |
-
f"https://civitai.com/api/download/models/159184 {zzz}/embeddings",
|
| 131 |
-
f"https://huggingface.co/pantat88/ui/resolve/main/4x-UltraSharp.pth {zzz}/models/ESRGAN",
|
| 132 |
-
f"https://huggingface.co/pantat88/ui/resolve/main/4x-AnimeSharp.pth {zzz}/models/ESRGAN",
|
| 133 |
-
f"https://huggingface.co/pantat88/ui/resolve/main/4x_NMKD-Superscale-SP_178000_G.pth {zzz}/models/ESRGAN",
|
| 134 |
-
f"https://huggingface.co/pantat88/ui/resolve/main/4x_RealisticRescaler_100000_G.pth {zzz}/models/ESRGAN",
|
| 135 |
-
f"https://huggingface.co/pantat88/ui/resolve/main/8x_RealESRGAN.pth {zzz}/models/ESRGAN",
|
| 136 |
-
f"https://huggingface.co/pantat88/ui/resolve/main/4x_foolhardy_Remacri.pth {zzz}/models/ESRGAN",
|
| 137 |
-
f"https://civitai.com/api/download/models/264491 {zzz}/models/VAE XL_VAE_F1.safetensors",
|
| 138 |
-
f"https://github.com/gutris1/segsmaker/raw/main/script/zrok_reg.py {zzz}/asd",
|
| 139 |
-
f"https://github.com/gutris1/segsmaker/raw/main/script/zrok.py {zzz}",
|
| 140 |
-
f"https://github.com/gutris1/segsmaker/raw/main/script/pinggy.py {zzz}"
|
| 141 |
-
]
|
| 142 |
-
|
| 143 |
-
for items in extras:
|
| 144 |
-
download(items)
|
| 145 |
-
|
| 146 |
-
say("<br><b>【{red} Installing Extensions{d} 】{red}</b>")
|
| 147 |
-
os.chdir(f"{zzz}/extensions")
|
| 148 |
-
clone(f"{zzz}/asd/ext-xl.txt")
|
| 149 |
-
|
| 150 |
-
os.rename(f"{zzz}/asd/cn-xl.py", f"{zzz}/asd/controlnet.py")
|
| 151 |
-
|
| 152 |
def zrok_install():
|
| 153 |
zrok = Path(f"{xxx}/.zrok/bin")
|
| 154 |
zrok.mkdir(parents=True, exist_ok=True)
|
|
@@ -169,10 +139,7 @@ else:
|
|
| 169 |
say("<b>【{red} Installing Stable Diffusion{d} 】{red}</b>")
|
| 170 |
get_ipython().system(f"git clone -q -b {version} https://github.com/gutris1/asd")
|
| 171 |
|
| 172 |
-
|
| 173 |
-
sd_1_5(xxx, zzz, fff)
|
| 174 |
-
else:
|
| 175 |
-
sd_xl(xxx, zzz, fff)
|
| 176 |
|
| 177 |
with garis:
|
| 178 |
garis.clear_output()
|
|
@@ -197,10 +164,9 @@ else:
|
|
| 197 |
return
|
| 198 |
|
| 199 |
b1.on_click(cb)
|
| 200 |
-
b2.on_click(cb)
|
| 201 |
ikuuuhhh.on_click(uuwaaahhh)
|
| 202 |
|
| 203 |
ccss(mama)
|
| 204 |
display(boxxx, sd_setup, garis)
|
| 205 |
zrok_install()
|
| 206 |
-
tempe()
|
|
|
|
| 29 |
gariz = """<div class="gradient-text">asd</div>"""
|
| 30 |
garis = widgets.Output()
|
| 31 |
b1 = widgets.Button(description='SD 1.5')
|
|
|
|
| 32 |
ikuuuhhh = widgets.Button(description='Install')
|
| 33 |
|
| 34 |
+
b1b2 = widgets.HBox([b1], layout=Layout(justify_content='space-between'))
|
| 35 |
sd_setup = widgets.Output()
|
| 36 |
boxxx = widgets.VBox([b1b2, ikuuuhhh], layout=Layout(
|
| 37 |
width='400px',
|
|
|
|
| 43 |
padding='20px'))
|
| 44 |
|
| 45 |
b1.add_class("b1")
|
|
|
|
| 46 |
ikuuuhhh.add_class("out")
|
| 47 |
boxxx.add_class("boxxx")
|
| 48 |
selected = [None]
|
|
|
|
| 119 |
get_ipython().system(f"git clone https://huggingface.co/Carlos2312/Wilcards {zzz}/extensions/sd-dynamic-prompts/wildcards")
|
| 120 |
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
def zrok_install():
|
| 123 |
zrok = Path(f"{xxx}/.zrok/bin")
|
| 124 |
zrok.mkdir(parents=True, exist_ok=True)
|
|
|
|
| 139 |
say("<b>【{red} Installing Stable Diffusion{d} 】{red}</b>")
|
| 140 |
get_ipython().system(f"git clone -q -b {version} https://github.com/gutris1/asd")
|
| 141 |
|
| 142 |
+
sd_1_5(xxx, zzz, fff)
|
|
|
|
|
|
|
|
|
|
| 143 |
|
| 144 |
with garis:
|
| 145 |
garis.clear_output()
|
|
|
|
| 164 |
return
|
| 165 |
|
| 166 |
b1.on_click(cb)
|
|
|
|
| 167 |
ikuuuhhh.on_click(uuwaaahhh)
|
| 168 |
|
| 169 |
ccss(mama)
|
| 170 |
display(boxxx, sd_setup, garis)
|
| 171 |
zrok_install()
|
| 172 |
+
tempe()
|