Astridkraft commited on
Commit
2a00b88
·
verified ·
1 Parent(s): 3e51403

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1474,11 +1474,11 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1474
  if ui_strength <= 0.75:
1475
  controlnet_strength = 0.45
1476
  elif ui_strength <= 0.85:
1477
- controlnet_strength = 0.30
1478
  else:
1479
- controlnet_strength = 0.25
1480
 
1481
- depth_ratio = 0.80 - (ui_strength * 0.15)
1482
  canny_ratio = 1.0 - depth_ratio
1483
 
1484
 
 
1474
  if ui_strength <= 0.75:
1475
  controlnet_strength = 0.45
1476
  elif ui_strength <= 0.85:
1477
+ controlnet_strength = 0.37
1478
  else:
1479
+ controlnet_strength = 0.32
1480
 
1481
+ depth_ratio = 0.85 - (ui_strength * 0.12)
1482
  canny_ratio = 1.0 - depth_ratio
1483
 
1484