musclesandbulk
commited on
Commit
•
7a76e5e
1
Parent(s):
88b791a
Update app.py
Browse files
app.py
CHANGED
@@ -23,28 +23,6 @@ class Model:
|
|
23 |
self.pipe_i2i = None
|
24 |
|
25 |
models = [
|
26 |
-
# Model("Arcane", "nitrosocke/Arcane-Diffusion", "arcane style "),
|
27 |
-
# Model("Dreamlike Diffusion 1.0", "dreamlike-art/dreamlike-diffusion-1.0", "dreamlikeart "),
|
28 |
-
# Model("Archer", "nitrosocke/archer-diffusion", "archer style "),
|
29 |
-
# Model("Anything V3", "Linaqruf/anything-v3.0", ""),
|
30 |
-
# Model("Modern Disney", "nitrosocke/mo-di-diffusion", "modern disney style "),
|
31 |
-
# Model("Classic Disney", "nitrosocke/classic-anim-diffusion", "classic disney style "),
|
32 |
-
# Model("Loving Vincent (Van Gogh)", "dallinmackay/Van-Gogh-diffusion", "lvngvncnt "),
|
33 |
-
# Model("Wavyfusion", "wavymulder/wavyfusion", "wa-vy style "),
|
34 |
-
# Model("Analog Diffusion", "wavymulder/Analog-Diffusion", "analog style "),
|
35 |
-
# Model("Redshift renderer (Cinema4D)", "nitrosocke/redshift-diffusion", "redshift style "),
|
36 |
-
# Model("Midjourney v4 style", "prompthero/midjourney-v4-diffusion", "mdjrny-v4 style "),
|
37 |
-
# Model("Waifu", "hakurei/waifu-diffusion"),
|
38 |
-
# Model("Cyberpunk Anime", "DGSpitzer/Cyberpunk-Anime-Diffusion", "dgs illustration style "),
|
39 |
-
# Model("Elden Ring", "nitrosocke/elden-ring-diffusion", "elden ring style "),
|
40 |
-
# Model("TrinArt v2", "naclbit/trinart_stable_diffusion_v2"),
|
41 |
-
# Model("Spider-Verse", "nitrosocke/spider-verse-diffusion", "spiderverse style "),
|
42 |
-
# Model("Balloon Art", "Fictiverse/Stable_Diffusion_BalloonArt_Model", "BalloonArt "),
|
43 |
-
# Model("Tron Legacy", "dallinmackay/Tron-Legacy-diffusion", "trnlgcy "),
|
44 |
-
# Model("Pokémon", "lambdalabs/sd-pokemon-diffusers"),
|
45 |
-
# Model("Pony Diffusion", "AstraliteHeart/pony-diffusion"),
|
46 |
-
# Model("Robo Diffusion", "nousr/robo-diffusion"),
|
47 |
-
# Model("Epic Diffusion", "johnslegers/epic-diffusion"),
|
48 |
Model("Protogen x5.3 (Photorealism)", "darkstorm2150/Protogen_x5.3_Official_Release")
|
49 |
]
|
50 |
|
@@ -251,15 +229,16 @@ def replace_nsfw_images(results):
|
|
251 |
with gr.Blocks(css="style.css") as demo:
|
252 |
gr.HTML(
|
253 |
f"""
|
254 |
-
<div class="
|
255 |
<div>
|
256 |
-
<h1>
|
257 |
</div>
|
258 |
<p>
|
259 |
Demo for multiple fine-tuned Stable Diffusion models, trained on different styles: <br>
|
260 |
-
<a href="https://huggingface.co/
|
|
|
261 |
</p>
|
262 |
-
<p>
|
263 |
Running on <b>{device}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
|
264 |
</p>
|
265 |
<p>You can also duplicate this space and upgrade to gpu by going to settings:<br>
|
@@ -321,24 +300,14 @@ with gr.Blocks(css="style.css") as demo:
|
|
321 |
generate.click(inference, inputs=inputs, outputs=outputs)
|
322 |
|
323 |
ex = gr.Examples([
|
324 |
-
|
325 |
-
#[models[4].name, "portrait of dwayne johnson", 7.0, 35],
|
326 |
-
#[models[5].name, "portrait of a beautiful alyx vance half life", 10, 25],
|
327 |
-
#[models[6].name, "Aloy from Horizon: Zero Dawn, half body portrait, smooth, detailed armor, beautiful face, illustration", 7.0, 30],
|
328 |
-
# [models[5].name, "fantasy portrait painting, digital art", 4.0, 20],
|
329 |
-
#[models[0].name, "fantasy portrait painting, digital art", 4.0, 20],
|
330 |
], inputs=[model_name, prompt, guidance, steps], outputs=outputs, fn=inference, cache_examples=False)
|
331 |
|
332 |
gr.HTML("""
|
333 |
<div style="border-top: 1px solid #303030;">
|
334 |
<br>
|
335 |
-
<p>Models by <a href="https://huggingface.co/
|
336 |
-
|
337 |
-
<p>Space by:<br>
|
338 |
-
<a href="https://twitter.com/hahahahohohe"><img src="https://img.shields.io/twitter/follow/hahahahohohe?label=%40anzorq&style=social" alt="Twitter Follow"></a><br>
|
339 |
-
<a href="https://github.com/qunash"><img alt="GitHub followers" src="https://img.shields.io/github/followers/qunash?style=social" alt="Github Follow"></a></p><br><br>
|
340 |
-
<a href="https://www.buymeacoffee.com/anzorq" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 45px !important;width: 162px !important;" ></a><br><br>
|
341 |
-
<p><img src="https://visitor-badge.glitch.me/badge?page_id=anzorq.finetuned_diffusion" alt="visitors"></p>
|
342 |
</div>
|
343 |
""")
|
344 |
|
|
|
23 |
self.pipe_i2i = None
|
24 |
|
25 |
models = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
Model("Protogen x5.3 (Photorealism)", "darkstorm2150/Protogen_x5.3_Official_Release")
|
27 |
]
|
28 |
|
|
|
229 |
with gr.Blocks(css="style.css") as demo:
|
230 |
gr.HTML(
|
231 |
f"""
|
232 |
+
<div class="Protogen Web UI Colab">
|
233 |
<div>
|
234 |
+
<h1>Protogen Web UI</h1>
|
235 |
</div>
|
236 |
<p>
|
237 |
Demo for multiple fine-tuned Stable Diffusion models, trained on different styles: <br>
|
238 |
+
<a href="https://huggingface.co/darkstorm2150/Protogen_x5.3_Official_Release">darkstorm2150
|
239 |
+
</a>, <a href="https://huggingface.co/darkstorm2150/Protogen_x5.8_Official_Release">darkstorm2150</a>, <a href="https://huggingface.co/darkstorm2150/Protogen_v2.2_Official_Release">darkstorm2150</a> + in colab notebook you can load any other Diffusers 🧨 SD model hosted on HuggingFace 🤗.
|
240 |
</p>
|
241 |
+
<p>
|
242 |
Running on <b>{device}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
|
243 |
</p>
|
244 |
<p>You can also duplicate this space and upgrade to gpu by going to settings:<br>
|
|
|
300 |
generate.click(inference, inputs=inputs, outputs=outputs)
|
301 |
|
302 |
ex = gr.Examples([
|
303 |
+
|
|
|
|
|
|
|
|
|
|
|
304 |
], inputs=[model_name, prompt, guidance, steps], outputs=outputs, fn=inference, cache_examples=False)
|
305 |
|
306 |
gr.HTML("""
|
307 |
<div style="border-top: 1px solid #303030;">
|
308 |
<br>
|
309 |
+
<p>Models by <a href="https://huggingface.co/darkstorm2150/Protogen_x5.3_Official_Release">darkstorm2150, </a> and others. ❤️</p>
|
310 |
+
|
|
|
|
|
|
|
|
|
|
|
311 |
</div>
|
312 |
""")
|
313 |
|