NightRaven109 commited on
Commit
e629ed6
·
verified ·
1 Parent(s): cea71a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -189,7 +189,7 @@ def process_image(
189
  DEFAULT_VALUES = {
190
  "prompt": "clean, texture, high-resolution, 8k",
191
  "negative_prompt": "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
192
- "guidance_scale": 2.5,
193
  "conditioning_scale": 1.0,
194
  "num_steps": 6,
195
  "seed": None,
@@ -214,7 +214,7 @@ with gr.Blocks(title="Controllable Conditional Super-Resolution") as demo:
214
  conditioning_scale = gr.Slider(minimum=0.1, maximum=2.0, value=DEFAULT_VALUES["conditioning_scale"], label="Conditioning Scale")
215
  num_steps = gr.Slider(minimum=1, maximum=50, value=DEFAULT_VALUES["num_steps"], step=1, label="Number of Steps")
216
  seed = gr.Number(label="Seed", value=DEFAULT_VALUES["seed"])
217
- upscale_factor = gr.Slider(minimum=1, maximum=4, value=DEFAULT_VALUES["upscale_factor"], step=1, label="Upscale Factor")
218
  color_fix_method = gr.Dropdown(
219
  choices=["none", "wavelet", "adain"],
220
  label="Color Fix Method",
 
189
  DEFAULT_VALUES = {
190
  "prompt": "clean, texture, high-resolution, 8k",
191
  "negative_prompt": "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
192
+ "guidance_scale": 3,
193
  "conditioning_scale": 1.0,
194
  "num_steps": 6,
195
  "seed": None,
 
214
  conditioning_scale = gr.Slider(minimum=0.1, maximum=2.0, value=DEFAULT_VALUES["conditioning_scale"], label="Conditioning Scale")
215
  num_steps = gr.Slider(minimum=1, maximum=50, value=DEFAULT_VALUES["num_steps"], step=1, label="Number of Steps")
216
  seed = gr.Number(label="Seed", value=DEFAULT_VALUES["seed"])
217
+ upscale_factor = gr.Slider(minimum=1, maximum=8, value=DEFAULT_VALUES["upscale_factor"], step=1, label="Upscale Factor")
218
  color_fix_method = gr.Dropdown(
219
  choices=["none", "wavelet", "adain"],
220
  label="Color Fix Method",