Spaces:
Runtime error
Runtime error
Commit
·
248a409
1
Parent(s):
5d451a4
Update app.py
Browse files
app.py
CHANGED
@@ -248,7 +248,7 @@ def img_to_img(model_path, prompt, n_images, neg_prompt, img, strength, guidance
|
|
248 |
callback=pipe_callback)
|
249 |
|
250 |
# update_state(f"Done. Seed: {seed}")
|
251 |
-
|
252 |
return replace_nsfw_images(result)
|
253 |
|
254 |
def replace_nsfw_images(results):
|
@@ -272,7 +272,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
272 |
</div>
|
273 |
<p>
|
274 |
Demo for multiple fine-tuned Stable Diffusion models, trained on different styles: <br>
|
275 |
-
<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/
|
276 |
</p>
|
277 |
<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>
|
278 |
Running on <b>{device}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
|
@@ -298,7 +298,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
298 |
|
299 |
# image_out = gr.Image(height=512)
|
300 |
gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
|
301 |
-
|
302 |
state_info = gr.Textbox(label="State", show_label=False, max_lines=2).style(container=False)
|
303 |
error_output = gr.Markdown()
|
304 |
|
@@ -311,7 +311,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
311 |
|
312 |
with gr.Row():
|
313 |
guidance = gr.Slider(label="Guidance scale", value=7.5, maximum=15)
|
314 |
-
steps = gr.Slider(label="Steps", value=
|
315 |
|
316 |
with gr.Row():
|
317 |
width = gr.Slider(label="Width", value=512, minimum=64, maximum=1024, step=8)
|
|
|
248 |
callback=pipe_callback)
|
249 |
|
250 |
# update_state(f"Done. Seed: {seed}")
|
251 |
+
|
252 |
return replace_nsfw_images(result)
|
253 |
|
254 |
def replace_nsfw_images(results):
|
|
|
272 |
</div>
|
273 |
<p>
|
274 |
Demo for multiple fine-tuned Stable Diffusion models, trained on different styles: <br>
|
275 |
+
<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 🤗.
|
276 |
</p>
|
277 |
<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>
|
278 |
Running on <b>{device}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
|
|
|
298 |
|
299 |
# image_out = gr.Image(height=512)
|
300 |
gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
|
301 |
+
|
302 |
state_info = gr.Textbox(label="State", show_label=False, max_lines=2).style(container=False)
|
303 |
error_output = gr.Markdown()
|
304 |
|
|
|
311 |
|
312 |
with gr.Row():
|
313 |
guidance = gr.Slider(label="Guidance scale", value=7.5, maximum=15)
|
314 |
+
steps = gr.Slider(label="Steps", value=current_steps, minimum=2, maximum=75, step=1)
|
315 |
|
316 |
with gr.Row():
|
317 |
width = gr.Slider(label="Width", value=512, minimum=64, maximum=1024, step=8)
|