Files changed (1) hide show
  1. app.py +17 -37
app.py CHANGED
@@ -23,48 +23,28 @@ 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("Anything V3 Better-Vae", "Linaqruf/anything-v3-better-vae", ""),
31
- Model("Anything V4", "andite/anything-v4.0", ""),
32
- Model("Elden Ring", "nitrosocke/elden-ring-diffusion", "elden ring style"),
33
- Model("Spider-Verse", "nitrosocke/spider-verse-diffusion", "spiderverse style"),
34
- Model("Modern Disney", "nitrosocke/modern-disney-diffusion", "modern disney style"),
35
- Model("Classic Disney", "nitrosocke/classic-anim-diffusion", "classic disney style"),
36
- Model("Pony Diffusion", "AstraliteHeart/pony-diffusion", "pony style"),
37
- Model("Robo Diffusion", "nousr/robo-diffusion", "robo style"),
38
- Model("Cyberpunk Anime", "AdamOswald1/Cyberpunk-Anime-Diffusion", "cyberpunk style"),
39
- Model("Cyberpunk Anime with Genshin Characters supported", "AdamOswald1/Cyberpunk-Anime-Diffusion_with_support_for_Gen-Imp_characters", "cyberpunk style"),
40
- Model("Tron Legacy", "dallinmackay/Tron-Legacy-diffusion", "trnlgcy"),
41
- Model("Dark Souls", "Guizmus/DarkSoulsDiffusion", "dark souls style"),
42
- Model("Space Machine", "rabidgremlin/sd-db-epic-space-machine", "EpicSpaceMachine"),
43
- Model("Spacecraft", "rabidgremlin/sd-db-epic-space-machine, Guizmus/Tardisfusion", "EpicSpaceMachine, Tardis Box style"),
44
- Model("TARDIS", "Guizmus/Tardisfusion", "Tardis Box style"),
45
- Model("Modern Era TARDIS Interior", "Guizmus/Tardisfusion", "Modern Tardis style"),
46
- Model("Classic Era TARDIS Interior", "Guizmus/Tardisfusion", "Classic Tardis style"),
47
- Model("Spacecraft Interior", "Guizmus/Tardisfusion, rabidgremlin/sd-db-epic-space-machine", "Classic Tardis style, Modern Tardis style, EpicSpaceMachine"),
48
- Model("CLIP", "EleutherAI/clip-guided-diffusion", "CLIP"),
49
- Model("Genshin Waifu", "crumb/genshin-stable-inversion, yuiqena/GenshinImpact, katakana/2D-Mix, Guizmus/AnimeChanStyle", "Female, female, Woman, woman, Girl, girl"),
50
- Model("Genshin", "crumb/genshin-stable-inversion, yuiqena/GenshinImpact, katakana/2D-Mix, Guizmus/AnimeChanStyle", ""),
51
- Model("Waifu", "hakurei/waifu-diffusion, technillogue/waifu-diffusion, Guizmus/AnimeChanStyle, katakana/2D-Mix", ""),
52
- Model("Pokémon", "lambdalabs/sd-pokemon-diffusers", ""),
53
- Model("Test", "AdamOswald1/Idk", ""),
54
- Model("Test2", "AdamOswald1/Tester", ""),
55
- Model("Anime", "Guizmus/AnimeChanStyle, katakana/2D-Mix", ""),
56
- Model("Beeple", "riccardogiorato/beeple-diffusion", "beeple style "),
57
- Model("Avatar", "riccardogiorato/avatar-diffusion", "avatartwow style "),
58
- Model("Poolsuite", "prompthero/poolsuite", "poolsuite style "),
59
  Model("Loving Vincent (Van Gogh)", "dallinmackay/Van-Gogh-diffusion", "lvngvncnt "),
60
  Model("Wavyfusion", "wavymulder/wavyfusion", "wa-vy style "),
61
  Model("Analog Diffusion", "wavymulder/Analog-Diffusion", "analog style "),
62
  Model("Redshift renderer (Cinema4D)", "nitrosocke/redshift-diffusion", "redshift style "),
63
  Model("Midjourney v4 style", "prompthero/midjourney-v4-diffusion", "mdjrny-v4 style "),
 
 
 
64
  Model("TrinArt v2", "naclbit/trinart_stable_diffusion_v2"),
 
65
  Model("Balloon Art", "Fictiverse/Stable_Diffusion_BalloonArt_Model", "BalloonArt "),
66
- Model("Epic Diffusion", "johnslegers/epic-diffusion", ""),
67
- Model("Comic Diffusion", "ogkalu/Comic-Diffusion", ""),
 
 
 
68
  ]
69
 
70
  custom_model = None
@@ -252,7 +232,7 @@ def img_to_img(model_path, prompt, n_images, neg_prompt, img, strength, guidance
252
  callback=pipe_callback)
253
 
254
  # update_state(f"Done. Seed: {seed}")
255
-
256
  return replace_nsfw_images(result)
257
 
258
  def replace_nsfw_images(results):
@@ -276,7 +256,7 @@ with gr.Blocks(css="style.css") as demo:
276
  </div>
277
  <p>
278
  Demo for multiple fine-tuned Stable Diffusion models, trained on different styles: <br>
279
- <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/AdamOswald1/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 🤗.
280
  </p>
281
  <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>
282
  Running on <b>{device}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
@@ -302,7 +282,7 @@ with gr.Blocks(css="style.css") as demo:
302
 
303
  # image_out = gr.Image(height=512)
304
  gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
305
-
306
  state_info = gr.Textbox(label="State", show_label=False, max_lines=2).style(container=False)
307
  error_output = gr.Markdown()
308
 
@@ -315,7 +295,7 @@ with gr.Blocks(css="style.css") as demo:
315
 
316
  with gr.Row():
317
  guidance = gr.Slider(label="Guidance scale", value=7.5, maximum=15)
318
- steps = gr.Slider(label="Steps", value=25, minimum=2, maximum=75, step=1)
319
 
320
  with gr.Row():
321
  width = gr.Slider(label="Width", value=512, minimum=64, maximum=1024, step=8)
 
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
  ]
49
 
50
  custom_model = None
 
232
  callback=pipe_callback)
233
 
234
  # update_state(f"Done. Seed: {seed}")
235
+
236
  return replace_nsfw_images(result)
237
 
238
  def replace_nsfw_images(results):
 
256
  </div>
257
  <p>
258
  Demo for multiple fine-tuned Stable Diffusion models, trained on different styles: <br>
259
+ <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 🤗.
260
  </p>
261
  <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>
262
  Running on <b>{device}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
 
282
 
283
  # image_out = gr.Image(height=512)
284
  gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
285
+
286
  state_info = gr.Textbox(label="State", show_label=False, max_lines=2).style(container=False)
287
  error_output = gr.Markdown()
288
 
 
295
 
296
  with gr.Row():
297
  guidance = gr.Slider(label="Guidance scale", value=7.5, maximum=15)
298
+ steps = gr.Slider(label="Steps", value=current_steps, minimum=2, maximum=75, step=1)
299
 
300
  with gr.Row():
301
  width = gr.Slider(label="Width", value=512, minimum=64, maximum=1024, step=8)