ApplyDesign commited on
Commit
af9ca38
·
verified ·
1 Parent(s): 6e7cf1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -12,16 +12,16 @@ def upscale_image(prompt,negative_prompt, rows=3,seed=0, image=None,enable_custo
12
  return output_image_path
13
 
14
 
15
- image_input = gr.inputs.Image(label="Input Image")
16
- prompt_input = gr.inputs.Textbox(default="8k, photography, cgi, unreal engine, octane render, best quality",label="Prompt")
17
- negative_prompt_input = gr.inputs.Textbox(default="jpeg artifacts, lowres, bad quality",label="Negative prompt")
18
- seed_input = gr.inputs.Number(default=-1, label="Seed")
19
- row_input = gr.inputs.Number(default=1, label="Tile grid dimension amount (number of rows and columns) - v x v")
20
- xformers_input = gr.inputs.Checkbox(default=True,label="Enable Xformers memory efficient attention")
21
- enable_custom_sliders = gr.inputs.Checkbox(default=False,label="(NOT RECOMMENDED) Click to enable the sliders below; if unchecked, it will ignore them and use the default settings")
22
- cpu_offload_input = gr.inputs.Checkbox(default=True,label="Enable sequential CPU offload")
23
- attention_slicing_input = gr.inputs.Checkbox(default=True,label="Enable attention slicing")
24
- output_image = gr.outputs.Image(label="Output Image",type='pil')
25
  guidance = gr.Slider(2, 15, 7, step=1, label='Guidance Scale: How much the AI influences the Upscaling.')
26
  iterations = gr.Slider(10, 75, 50, step=1, label='Number of Iterations')
27
  #save_png_button, save_png_halfsize_button ; I don't know how to implement them
 
12
  return output_image_path
13
 
14
 
15
+ image_input = gr.Image(label="Input Image")
16
+ prompt_input = gr.Textbox(default="8k, photography, cgi, unreal engine, octane render, best quality",label="Prompt")
17
+ negative_prompt_input = gr.Textbox(default="jpeg artifacts, lowres, bad quality",label="Negative prompt")
18
+ seed_input = gr.Number(default=-1, label="Seed")
19
+ row_input = gr.Number(default=1, label="Tile grid dimension amount (number of rows and columns) - v x v")
20
+ xformers_input = gr.Checkbox(default=True,label="Enable Xformers memory efficient attention")
21
+ enable_custom_sliders = gr.Checkbox(default=False,label="(NOT RECOMMENDED) Click to enable the sliders below; if unchecked, it will ignore them and use the default settings")
22
+ cpu_offload_input = gr.Checkbox(default=True,label="Enable sequential CPU offload")
23
+ attention_slicing_input = gr.Checkbox(default=True,label="Enable attention slicing")
24
+ output_image = gr.Image(label="Output Image",type='pil')
25
  guidance = gr.Slider(2, 15, 7, step=1, label='Guidance Scale: How much the AI influences the Upscaling.')
26
  iterations = gr.Slider(10, 75, 50, step=1, label='Number of Iterations')
27
  #save_png_button, save_png_halfsize_button ; I don't know how to implement them