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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1453,13 +1453,13 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1453
 
1454
  elif any(keyword in prompt_lower for keyword in drawing_keywords):
1455
  # Weniger Denoising für anatomische Korrektheit
1456
- adj_strength = max(0.3, adj_strength * 0.9) # Konservativer
1457
 
1458
  # Mehr ControlNet für Strukturerhalt
1459
- controlnet_strength = min(0.9, controlnet_strength * 1.2) # Mehr Kontrolle
1460
 
1461
  # Mehr Depth, weniger Canny
1462
- depth_ratio = min(0.9, depth_ratio * 1.2) # Mehr Depth
1463
  canny_ratio = max(0.1, canny_ratio * 0.8) # Weniger Canny
1464
 
1465
  #Clipping
 
1453
 
1454
  elif any(keyword in prompt_lower for keyword in drawing_keywords):
1455
  # Weniger Denoising für anatomische Korrektheit
1456
+ adj_strength = max(0.3, adj_strength * 0.9) # Konservativer
1457
 
1458
  # Mehr ControlNet für Strukturerhalt
1459
+ controlnet_strength = min(0.9, controlnet_strength * 1.2) # Mehr Kontrolle
1460
 
1461
  # Mehr Depth, weniger Canny
1462
+ depth_ratio = min(0.9, depth_ratio * 1.2)
1463
  canny_ratio = max(0.1, canny_ratio * 0.8) # Weniger Canny
1464
 
1465
  #Clipping