Astridkraft commited on
Commit
16708f2
·
verified ·
1 Parent(s): 3c1d04d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1136,9 +1136,9 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1136
  # Anpassung für Naturszenen (maximale Flexibilität) - die optimalen UI-Werte: strength:0,72 , steps: 35 , guidance: 9-9,5
1137
  elif any(keyword in prompt_lower for keyword in nature_keywords):
1138
  adj_strength = 0.85 #wie stark das bestehende Bild überschrieben wird im kompletten Denoising-Prozess
1139
- controlnet_strength = 0.6
1140
- depth_ratio = 0.60 #Depth-Wert hält Maßstab und Boden (Emi groß, Liege klein - Emi im Meer)
1141
- canny_ratio = 0.01 #erzwingt Kanten - hält dadurch an alter Umgebung fest - schlecht bei Umgebungswechsel
1142
  print("🌳 Naturszene erkannt → Ratio 95:5 (Depth:Canny)")
1143
  else:
1144
  print("🎯 Standard-Ratio 90:10 (Depth:Canny)")
 
1136
  # Anpassung für Naturszenen (maximale Flexibilität) - die optimalen UI-Werte: strength:0,72 , steps: 35 , guidance: 9-9,5
1137
  elif any(keyword in prompt_lower for keyword in nature_keywords):
1138
  adj_strength = 0.85 #wie stark das bestehende Bild überschrieben wird im kompletten Denoising-Prozess
1139
+ controlnet_strength = 0.0
1140
+ depth_ratio = 0.00 #Depth-Wert hält Maßstab und Boden (Emi groß, Liege klein - Emi im Meer)
1141
+ canny_ratio = 0.00 #erzwingt Kanten - hält dadurch an alter Umgebung fest - schlecht bei Umgebungswechsel
1142
  print("🌳 Naturszene erkannt → Ratio 95:5 (Depth:Canny)")
1143
  else:
1144
  print("🎯 Standard-Ratio 90:10 (Depth:Canny)")