zhiweili commited on
Commit
09b8263
·
1 Parent(s): b8883eb

add generate_size

Browse files
Files changed (1) hide show
  1. app_upscale.py +1 -1
app_upscale.py CHANGED
@@ -58,6 +58,7 @@ def create_demo() -> gr.Blocks:
58
  input_image_prompt = gr.Textbox(lines=1, label="Input Image Prompt", value=DEFAULT_SRC_PROMPT)
59
  with gr.Column():
60
  num_inference_steps = gr.Number(label="Num Inference Steps", value=5)
 
61
  g_btn = gr.Button("Upscale Image")
62
 
63
  with gr.Row():
@@ -70,7 +71,6 @@ def create_demo() -> gr.Blocks:
70
  download_path = gr.File(label="Download the output image", interactive=False)
71
  generated_cost = gr.Textbox(label="Time cost by step (ms):", visible=True, interactive=False)
72
  category = gr.Textbox(label="Category", value=DEFAULT_CATEGORY, visible=False)
73
- generate_size = gr.Number(label="Generate Size", value=1024, visible=False)
74
  mask_expansion = gr.Number(label="Mask Expansion", value=20, visible=False)
75
  mask_dilation = gr.Slider(minimum=0, maximum=10, value=2, step=1, label="Mask Dilation", visible=False)
76
 
 
58
  input_image_prompt = gr.Textbox(lines=1, label="Input Image Prompt", value=DEFAULT_SRC_PROMPT)
59
  with gr.Column():
60
  num_inference_steps = gr.Number(label="Num Inference Steps", value=5)
61
+ generate_size = gr.Number(label="Generate Size", value=512, visible=False)
62
  g_btn = gr.Button("Upscale Image")
63
 
64
  with gr.Row():
 
71
  download_path = gr.File(label="Download the output image", interactive=False)
72
  generated_cost = gr.Textbox(label="Time cost by step (ms):", visible=True, interactive=False)
73
  category = gr.Textbox(label="Category", value=DEFAULT_CATEGORY, visible=False)
 
74
  mask_expansion = gr.Number(label="Mask Expansion", value=20, visible=False)
75
  mask_dilation = gr.Slider(minimum=0, maximum=10, value=2, step=1, label="Mask Dilation", visible=False)
76