Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
16 |
-
prompt_input = gr.
|
17 |
-
negative_prompt_input = gr.
|
18 |
-
seed_input = gr.
|
19 |
-
row_input = gr.
|
20 |
-
xformers_input = gr.
|
21 |
-
enable_custom_sliders = gr.
|
22 |
-
cpu_offload_input = gr.
|
23 |
-
attention_slicing_input = gr.
|
24 |
-
output_image = gr.
|
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
|