dreamdrop-art commited on
Commit
cadc948
1 Parent(s): 890c20e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -283,15 +283,15 @@ def change_checkpoint(name, progress=gr.Progress()):
283
  with gr.Blocks(css=css) as demo:
284
  with gr.Row():
285
  with gr.Column(scale=6):
286
- model = gr.Dropdown(interactive=True, show_label=True,
287
  label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
288
 
289
  with gr.Tabs() as tabs:
290
  with gr.Tab("txt2img", id='t2i'):
291
  with gr.Row():
292
  with gr.Column(scale=6, min_width=600):
293
- prompt = gr.Textbox(placeholder="Prompt", show_label=False, lines=3)
294
- negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3,
295
  value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation")
296
  with gr.Column():
297
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
@@ -317,7 +317,7 @@ with gr.Blocks(css=css) as demo:
317
  batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
318
  batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
319
 
320
- cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=8, step=1)
321
  seed = gr.Number(label="Seed", value=-1)
322
 
323
  with gr.Column(scale=2):
@@ -332,8 +332,8 @@ with gr.Blocks(css=css) as demo:
332
  with gr.Tab("img2img", id='i2i'):
333
  with gr.Row():
334
  with gr.Column(scale=6, min_width=600):
335
- i2i_prompt = gr.Textbox(placeholder="Prompt", show_label=False, lines=3)
336
- i2i_negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3,
337
  value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation")
338
  with gr.Column():
339
  i2i_text_button = gr.Button("Generate", variant='primary', elem_id="generate")
@@ -345,7 +345,7 @@ with gr.Blocks(css=css) as demo:
345
 
346
  with gr.Row():
347
  with gr.Column(scale=1):
348
- i2i_sampler = gr.Dropdown(value="Euler a", show_label=True, label="Sampling Method",
349
  choices=prodia_client.list_samplers())
350
 
351
  with gr.Column(scale=1):
@@ -361,7 +361,7 @@ with gr.Blocks(css=css) as demo:
361
  i2i_batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
362
  i2i_batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
363
 
364
- i2i_cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
365
  i2i_denoising = gr.Slider(label="Denoising Strength", minimum=0, maximum=1, value=0.7, step=0.1)
366
  i2i_seed = gr.Number(label="Seed", value=-1)
367
 
@@ -428,8 +428,8 @@ with gr.Blocks(css=css) as demo:
428
  hf_model = gr.Dropdown(label="HuggingFace checkpoint", choices=["runwayml/stable-diffusion-v1-5", "stabilityai/stable-diffusion-2-1", "dataautogpt3/OpenDalleV1.1", "CompVis/stable-diffusion-v1-4", "playgroundai/playground-v2-1024px-aesthetic", "prompthero/openjourney", "openskyml/dreamdrop-v1", "SG161222/Realistic_Vision_V1.4", "digiplay/AbsoluteReality_v1.8.1", "openskyml/dalle-3-xl", "Lykon/dreamshaper-7", "Pclanglais/Mickey-1928"], value="runwayml/stable-diffusion-v1-5", allow_custom_value=True, interactive=True)
429
  with gr.Row():
430
  with gr.Column(scale=6, min_width=600):
431
- hf_prompt = gr.Textbox(placeholder="Prompt", show_label=False, lines=3)
432
- hf_negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3,
433
  value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation")
434
  with gr.Column():
435
  hf_text_button = gr.Button("Generate with HF", variant='primary', elem_id="generate")
@@ -451,7 +451,7 @@ with gr.Blocks(css=css) as demo:
451
  hf_batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
452
  hf_batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
453
 
454
- hf_cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=8, step=1)
455
  hf_seed = gr.Number(label="Seed", value=-1)
456
 
457
  with gr.Column(scale=2):
 
283
  with gr.Blocks(css=css) as demo:
284
  with gr.Row():
285
  with gr.Column(scale=6):
286
+ model = gr.Dropdown(interactive=True, show_label=True, value="juggernaut_aftermath.safetensors [5e20c455]",
287
  label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
288
 
289
  with gr.Tabs() as tabs:
290
  with gr.Tab("txt2img", id='t2i'):
291
  with gr.Row():
292
  with gr.Column(scale=6, min_width=600):
293
+ prompt = gr.Textbox(placeholder="Prompt", show_label=False, lines=3, scale=3)
294
+ negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, scale=1,
295
  value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation")
296
  with gr.Column():
297
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
 
317
  batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
318
  batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
319
 
320
+ cfg_scale = gr.Slider(label="CFG Scale", minimum=0.1, maximum=20, value=8, step=0.1)
321
  seed = gr.Number(label="Seed", value=-1)
322
 
323
  with gr.Column(scale=2):
 
332
  with gr.Tab("img2img", id='i2i'):
333
  with gr.Row():
334
  with gr.Column(scale=6, min_width=600):
335
+ i2i_prompt = gr.Textbox(placeholder="Prompt", show_label=False, lines=3, scale=3)
336
+ i2i_negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, scale=1,
337
  value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation")
338
  with gr.Column():
339
  i2i_text_button = gr.Button("Generate", variant='primary', elem_id="generate")
 
345
 
346
  with gr.Row():
347
  with gr.Column(scale=1):
348
+ i2i_sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method",
349
  choices=prodia_client.list_samplers())
350
 
351
  with gr.Column(scale=1):
 
361
  i2i_batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
362
  i2i_batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
363
 
364
+ i2i_cfg_scale = gr.Slider(label="CFG Scale", minimum=0.1, maximum=20, value=7, step=0.1)
365
  i2i_denoising = gr.Slider(label="Denoising Strength", minimum=0, maximum=1, value=0.7, step=0.1)
366
  i2i_seed = gr.Number(label="Seed", value=-1)
367
 
 
428
  hf_model = gr.Dropdown(label="HuggingFace checkpoint", choices=["runwayml/stable-diffusion-v1-5", "stabilityai/stable-diffusion-2-1", "dataautogpt3/OpenDalleV1.1", "CompVis/stable-diffusion-v1-4", "playgroundai/playground-v2-1024px-aesthetic", "prompthero/openjourney", "openskyml/dreamdrop-v1", "SG161222/Realistic_Vision_V1.4", "digiplay/AbsoluteReality_v1.8.1", "openskyml/dalle-3-xl", "Lykon/dreamshaper-7", "Pclanglais/Mickey-1928"], value="runwayml/stable-diffusion-v1-5", allow_custom_value=True, interactive=True)
429
  with gr.Row():
430
  with gr.Column(scale=6, min_width=600):
431
+ hf_prompt = gr.Textbox(placeholder="Prompt", show_label=False, lines=3, scale=3)
432
+ hf_negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, scale=1,
433
  value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation")
434
  with gr.Column():
435
  hf_text_button = gr.Button("Generate with HF", variant='primary', elem_id="generate")
 
451
  hf_batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
452
  hf_batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
453
 
454
+ hf_cfg_scale = gr.Slider(label="CFG Scale", minimum=0.1, maximum=20, value=8, step=0.1)
455
  hf_seed = gr.Number(label="Seed", value=-1)
456
 
457
  with gr.Column(scale=2):