Astridkraft commited on
Commit
cb57464
·
verified ·
1 Parent(s): 5efe802

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1464,9 +1464,9 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1464
 
1465
  #Clipping
1466
  adj_strength = max(0.15, min(adj_strength, 0.95))
1467
- controlnet_strength = max(0.1, min(controlnet_strength, 0.9))
1468
- depth_ratio = max(0.1, min(depth_ratio, 0.9))
1469
- canny_ratio = max(0.1, min(canny_ratio, 0.9))
1470
 
1471
 
1472
  conditioning_scale = [
@@ -1482,9 +1482,9 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1482
  else: #Standard
1483
  #Clipping
1484
  adj_strength = max(0.15, min(adj_strength, 0.95))
1485
- controlnet_strength = max(0.1, min(controlnet_strength, 0.9))
1486
- depth_ratio = max(0.1, min(depth_ratio, 0.9))
1487
- canny_ratio = max(0.1, min(canny_ratio, 0.9))
1488
 
1489
 
1490
  # KRITISCH: conditioning_scale HIER definieren (wie bei environment_change)!
 
1464
 
1465
  #Clipping
1466
  adj_strength = max(0.15, min(adj_strength, 0.95))
1467
+ controlnet_strength = max(0.1, min(controlnet_strength, 0.9))
1468
+ depth_ratio = max(0.1, min(depth_ratio, 0.9))
1469
+ canny_ratio = max(0.1, min(canny_ratio, 0.9))
1470
 
1471
 
1472
  conditioning_scale = [
 
1482
  else: #Standard
1483
  #Clipping
1484
  adj_strength = max(0.15, min(adj_strength, 0.95))
1485
+ controlnet_strength = max(0.1, min(controlnet_strength, 0.9))
1486
+ depth_ratio = max(0.1, min(depth_ratio, 0.9))
1487
+ canny_ratio = max(0.1, min(canny_ratio, 0.9))
1488
 
1489
 
1490
  # KRITISCH: conditioning_scale HIER definieren (wie bei environment_change)!