Astridkraft commited on
Commit
9157675
·
verified ·
1 Parent(s): befe750

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1121,12 +1121,16 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1121
 
1122
  # Anpassung für Innenräume (mehr Kantenerhalt)
1123
  if any(keyword in prompt_lower for keyword in interior_keywords):
 
 
1124
  depth_ratio = 0.55
1125
  canny_ratio = 0.20
1126
  print("🏠 Innenraum erkannt → Ratio 80:20 (Depth:Canny)")
1127
 
1128
  # Anpassung für Naturszenen (maximale Flexibilität) - die optimalen UI-Werte: strength:0,72 , steps: 35 , guidance: 9-9,5
1129
  elif any(keyword in prompt_lower for keyword in nature_keywords):
 
 
1130
  depth_ratio = 0.50 #Depth-Wert hält Maßstab und Boden (Emi groß, Liege klein - Emi im Meer)
1131
  canny_ratio = 0.12 #erzwingt Kanten - hält dadurch an alter Umgebung fest - schlecht bei Umgebungswechsel
1132
  print("🌳 Naturszene erkannt → Ratio 95:5 (Depth:Canny)")
 
1121
 
1122
  # Anpassung für Innenräume (mehr Kantenerhalt)
1123
  if any(keyword in prompt_lower for keyword in interior_keywords):
1124
+ adj_strength = 0.75
1125
+ controlnet_strength = 0.55
1126
  depth_ratio = 0.55
1127
  canny_ratio = 0.20
1128
  print("🏠 Innenraum erkannt → Ratio 80:20 (Depth:Canny)")
1129
 
1130
  # Anpassung für Naturszenen (maximale Flexibilität) - die optimalen UI-Werte: strength:0,72 , steps: 35 , guidance: 9-9,5
1131
  elif any(keyword in prompt_lower for keyword in nature_keywords):
1132
+ adj_strength = 0.75
1133
+ controlnet_strength = 0.55
1134
  depth_ratio = 0.50 #Depth-Wert hält Maßstab und Boden (Emi groß, Liege klein - Emi im Meer)
1135
  canny_ratio = 0.12 #erzwingt Kanten - hält dadurch an alter Umgebung fest - schlecht bei Umgebungswechsel
1136
  print("🌳 Naturszene erkannt → Ratio 95:5 (Depth:Canny)")