Linoy Tsaban commited on
Commit
bd3b2ac
1 Parent(s): 104ff71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -565,7 +565,7 @@ with gr.Blocks(css="style.css") as demo:
565
 
566
  with gr.Column(min_width=100):
567
  reconstruct_button = gr.Button("Show Reconstruction", visible=False)
568
- skip = gr.Slider(minimum=0, maximum=60, value=36, label="Skip Steps", interactive=True, info = "at which step start denoising. Bigger values increase fidelity to the original image")
569
  tar_cfg_scale = gr.Slider(minimum=7, maximum=30,value=15, label=f"Guidance Scale", interactive=True)
570
  seed = gr.Number(value=0, precision=0, label="Seed", interactive=True)
571
  randomize_seed = gr.Checkbox(label='Randomize seed', value=False)
@@ -576,31 +576,31 @@ with gr.Blocks(css="style.css") as demo:
576
  with gr.Row().style(mobile_collapse=False, equal_height=True):
577
  warmup_1 = gr.Slider(label='Warmup', minimum=0, maximum=50,
578
  value=DEFAULT_WARMUP_STEPS,
579
- step=1, interactive=True, info="at which step to start applying semantic guidance?")
580
  threshold_1 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99,
581
  value=DEFAULT_THRESHOLD, step=0.01, interactive=True,
582
- info = "threshold of the percent of noise estimate’s dimensions used for semantic guidance. Lower the threshold for more effect (e.g. ~0.9 for style transfer)")
583
 
584
  # 2nd SEGA concept
585
  gr.Markdown("2nd concept")
586
  with gr.Row() as row2_advanced:
587
  warmup_2 = gr.Slider(label='Warmup', minimum=0, maximum=50,
588
  value=DEFAULT_WARMUP_STEPS,
589
- step=1, interactive=True, info="at which step to start applying semantic guidance?")
590
  threshold_2 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99,
591
  value=DEFAULT_THRESHOLD,
592
  step=0.01, interactive=True,
593
- info = "threshold of the percent of noise estimate’s dimensions used for semantic guidance. Lower the threshold for more effect (e.g. ~0.9 for style transfer)")
594
  # 3rd SEGA concept
595
  gr.Markdown("3rd concept")
596
  with gr.Row() as row3_advanced:
597
  warmup_3 = gr.Slider(label='Warmup', minimum=0, maximum=50,
598
  value=DEFAULT_WARMUP_STEPS, step=1,
599
- interactive=True, info="at which step to start applying semantic guidance?")
600
  threshold_3 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99,
601
  value=DEFAULT_THRESHOLD, step=0.01,
602
  interactive=True,
603
- info = "threshold of the percent of noise estimate’s dimensions used for semantic guidance. Lower the threshold for more effect (e.g. ~0.9 for style transfer)")
604
 
605
  # caption_button.click(
606
  # fn = caption_image,
 
565
 
566
  with gr.Column(min_width=100):
567
  reconstruct_button = gr.Button("Show Reconstruction", visible=False)
568
+ skip = gr.Slider(minimum=0, maximum=60, value=36, label="Skip Steps", interactive=True, info = "At which step start denoising? Bigger values increase fidelity to the original image")
569
  tar_cfg_scale = gr.Slider(minimum=7, maximum=30,value=15, label=f"Guidance Scale", interactive=True)
570
  seed = gr.Number(value=0, precision=0, label="Seed", interactive=True)
571
  randomize_seed = gr.Checkbox(label='Randomize seed', value=False)
 
576
  with gr.Row().style(mobile_collapse=False, equal_height=True):
577
  warmup_1 = gr.Slider(label='Warmup', minimum=0, maximum=50,
578
  value=DEFAULT_WARMUP_STEPS,
579
+ step=1, interactive=True, info="At which step to start applying semantic guidance?")
580
  threshold_1 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99,
581
  value=DEFAULT_THRESHOLD, step=0.01, interactive=True,
582
+ info = "Lower the threshold for more effect (e.g. ~0.9 for style transfer)")
583
 
584
  # 2nd SEGA concept
585
  gr.Markdown("2nd concept")
586
  with gr.Row() as row2_advanced:
587
  warmup_2 = gr.Slider(label='Warmup', minimum=0, maximum=50,
588
  value=DEFAULT_WARMUP_STEPS,
589
+ step=1, interactive=True, info="At which step to start applying semantic guidance?")
590
  threshold_2 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99,
591
  value=DEFAULT_THRESHOLD,
592
  step=0.01, interactive=True,
593
+ info = "Lower the threshold for more effect (e.g. ~0.9 for style transfer)")
594
  # 3rd SEGA concept
595
  gr.Markdown("3rd concept")
596
  with gr.Row() as row3_advanced:
597
  warmup_3 = gr.Slider(label='Warmup', minimum=0, maximum=50,
598
  value=DEFAULT_WARMUP_STEPS, step=1,
599
+ interactive=True, info="At which step to start applying semantic guidance?")
600
  threshold_3 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99,
601
  value=DEFAULT_THRESHOLD, step=0.01,
602
  interactive=True,
603
+ info = "Lower the threshold for more effect (e.g. ~0.9 for style transfer)")
604
 
605
  # caption_button.click(
606
  # fn = caption_image,