acceptee Men1scus commited on
Commit
44cbbd9
·
verified ·
1 Parent(s): 3ff2374

Move the SR Scale up (#1)

Browse files

- 向上移动SR Scale (467018d474998745b3b5cb4fddc220ee07aab5b7)


Co-authored-by: Ziheng Zhang <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -417,6 +417,7 @@ with block:
417
  with gr.Column():
418
  input_image = gr.Image(type="pil")
419
  user_prompt = gr.Textbox(label="User Prompt", value="")
 
420
 
421
  # Only show model selection if load_both_models is True
422
  if args.load_both_models == 'True':
@@ -447,7 +448,6 @@ with block:
447
  cfg_scale = gr.Slider(label="Classifier Free Guidance Scale (Set a value larger than 1 to enable it!)", minimum=0.1, maximum=10.0, value=7.0, step=0.1)
448
  num_inference_steps = gr.Slider(label="Inference Steps", minimum=10, maximum=100, value=20, step=1)
449
  seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, value=0)
450
- scale_factor = gr.Number(label="SR Scale", value=4)
451
  gr.Examples(examples=exaple_images, inputs=[input_image])
452
  with gr.Column():
453
  result_gallery = gr.Image(label="Output", show_label=False, elem_id="gallery", type="pil", format="png")
 
417
  with gr.Column():
418
  input_image = gr.Image(type="pil")
419
  user_prompt = gr.Textbox(label="User Prompt", value="")
420
+ scale_factor = gr.Number(label="SR Scale", value=4)
421
 
422
  # Only show model selection if load_both_models is True
423
  if args.load_both_models == 'True':
 
448
  cfg_scale = gr.Slider(label="Classifier Free Guidance Scale (Set a value larger than 1 to enable it!)", minimum=0.1, maximum=10.0, value=7.0, step=0.1)
449
  num_inference_steps = gr.Slider(label="Inference Steps", minimum=10, maximum=100, value=20, step=1)
450
  seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, value=0)
 
451
  gr.Examples(examples=exaple_images, inputs=[input_image])
452
  with gr.Column():
453
  result_gallery = gr.Image(label="Output", show_label=False, elem_id="gallery", type="pil", format="png")