musclesandbulk commited on
Commit
7a76e5e
1 Parent(s): 88b791a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -39
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="finetuned-diffusion-div">
255
  <div>
256
- <h1>Finetuned Diffusion</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/nitrosocke/Arcane-Diffusion">Arcane</a>, <a href="https://huggingface.co/nitrosocke/archer-diffusion">Archer</a>, <a href="https://huggingface.co/nitrosocke/elden-ring-diffusion">Elden Ring</a>, <a href="https://huggingface.co/nitrosocke/spider-verse-diffusion">Spider-Verse</a>, <a href="https://huggingface.co/nitrosocke/mo-di-diffusion">Modern Disney</a>, <a href="https://huggingface.co/nitrosocke/classic-anim-diffusion">Classic Disney</a>, <a href="https://huggingface.co/dallinmackay/Van-Gogh-diffusion">Loving Vincent (Van Gogh)</a>, <a href="https://huggingface.co/nitrosocke/redshift-diffusion">Redshift renderer (Cinema4D)</a>, <a href="https://huggingface.co/prompthero/midjourney-v4-diffusion">Midjourney v4 style</a>, <a href="https://huggingface.co/hakurei/waifu-diffusion">Waifu</a>, <a href="https://huggingface.co/lambdalabs/sd-pokemon-diffusers">Pokémon</a>, <a href="https://huggingface.co/AstraliteHeart/pony-diffusion">Pony Diffusion</a>, <a href="https://huggingface.co/nousr/robo-diffusion">Robo Diffusion</a>, <a href="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion">Cyberpunk Anime</a>, <a href="https://huggingface.co/dallinmackay/Tron-Legacy-diffusion">Tron Legacy</a>, <a href="https://huggingface.co/Fictiverse/Stable_Diffusion_BalloonArt_Model">Balloon Art</a> + in colab notebook you can load any other Diffusers 🧨 SD model hosted on HuggingFace 🤗.
 
261
  </p>
262
- <p>You can skip the queue and load custom models in the colab: <a href="https://colab.research.google.com/gist/qunash/42112fb104509c24fd3aa6d1c11dd6e0/copy-of-fine-tuned-diffusion-gradio.ipynb"><img data-canonical-src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" src="https://camo.githubusercontent.com/84f0493939e0c4de4e6dbe113251b4bfb5353e57134ffd9fcab6b8714514d4d1/68747470733a2f2f636f6c61622e72657365617263682e676f6f676c652e636f6d2f6173736574732f636f6c61622d62616467652e737667"></a></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
- #[models[7].name, "tiny cute and adorable kitten adventurer dressed in a warm overcoat with survival gear on a winters day", 7.5, 25],
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/nitrosocke">@nitrosocke</a>, <a href="https://twitter.com/haruu1367">@haruu1367</a>, <a href="https://twitter.com/DGSpitzer">@Helixngc7293</a>, <a href="https://twitter.com/dal_mack">@dal_mack</a>, <a href="https://twitter.com/prompthero">@prompthero</a> and others. ❤️</p>
336
- <p>This space uses the <a href="https://github.com/LuChengTHU/dpm-solver">DPM-Solver++</a> sampler by <a href="https://arxiv.org/abs/2206.00927">Cheng Lu, et al.</a>.</p>
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