Spongenuity commited on
Commit
3a5416f
·
verified ·
1 Parent(s): 9eb968e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -39,7 +39,8 @@ STYLE_NAMES = list(styles.keys())
39
  DEFAULT_STYLE_NAME = "(No style)"
40
  enable_lcm_arg = False
41
  DEFAULT_POSE_STRENGTH = 1.0
42
- DEFAULT_CANNY_STRENGTH = 0.4
 
43
  CONTROLNET_SELECTION = ["pose", "canny"]
44
 
45
  # download checkpoints
@@ -235,7 +236,6 @@ def generate_image(
235
  num_steps,
236
  identitynet_strength_ratio,
237
  adapter_strength_ratio,
238
- depth_strength,
239
  guidance_scale,
240
  seed,
241
  scheduler,
@@ -243,6 +243,7 @@ def generate_image(
243
  enhance_face_region,
244
  progress=gr.Progress(track_tqdm=True),
245
  ):
 
246
  pose_strength = DEFAULT_POSE_STRENGTH
247
  canny_strength = DEFAULT_CANNY_STRENGTH
248
  controlnet_selection = CONTROLNET_SELECTION
@@ -531,6 +532,7 @@ with gr.Blocks(css=css) as demo:
531
  outputs=gallery
532
  )
533
 
 
534
  enable_LCM.input(
535
  fn=toggle_lcm_ui,
536
  inputs=[enable_LCM],
 
39
  DEFAULT_STYLE_NAME = "(No style)"
40
  enable_lcm_arg = False
41
  DEFAULT_POSE_STRENGTH = 1.0
42
+ DEFAULT_CANNY_STRENGTH = 0.4
43
+ DEFAULT_DEPTH_STRENGTH = 1.0
44
  CONTROLNET_SELECTION = ["pose", "canny"]
45
 
46
  # download checkpoints
 
236
  num_steps,
237
  identitynet_strength_ratio,
238
  adapter_strength_ratio,
 
239
  guidance_scale,
240
  seed,
241
  scheduler,
 
243
  enhance_face_region,
244
  progress=gr.Progress(track_tqdm=True),
245
  ):
246
+ depth_strength = DEFAULT_DEPTH_STRENGTH
247
  pose_strength = DEFAULT_POSE_STRENGTH
248
  canny_strength = DEFAULT_CANNY_STRENGTH
249
  controlnet_selection = CONTROLNET_SELECTION
 
532
  outputs=gallery
533
  )
534
 
535
+
536
  enable_LCM.input(
537
  fn=toggle_lcm_ui,
538
  inputs=[enable_LCM],