Spongenuity commited on
Commit
cd2925a
·
verified ·
1 Parent(s): 5433c96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -38,9 +38,9 @@ dtype = torch.float16 if str(device).__contains__("cuda") else torch.float32
38
  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
46
  from huggingface_hub import hf_hub_download
@@ -235,10 +235,10 @@ def generate_image(
235
  num_steps,
236
  identitynet_strength_ratio,
237
  adapter_strength_ratio,
238
- pose_strength = DEFAULT_POSE_STRENGTH,
239
- canny_strength = DEFAULT_CANNY_STRENGTH,
240
  depth_strength,
241
- controlnet_selection = CONTROLNET_SELECTION,
242
  guidance_scale,
243
  seed,
244
  scheduler,
 
38
  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
46
  from huggingface_hub import hf_hub_download
 
235
  num_steps,
236
  identitynet_strength_ratio,
237
  adapter_strength_ratio,
238
+ pose_strength,
239
+ canny_strength,
240
  depth_strength,
241
+ controlnet_selection,
242
  guidance_scale,
243
  seed,
244
  scheduler,