Astridkraft commited on
Commit
14277e6
Β·
verified Β·
1 Parent(s): ad0c0a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -1101,9 +1101,9 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1101
 
1102
  elif mode == "environment_change":
1103
  # optimale UI-Werte:
1104
- β€’ # Strength: 0.72 – 0.78 β†’ ideal: 0.75
1105
- β€’ # guidance (CFG): 8.5 – 9.5 β†’ ideal: 9
1106
- β€’ # Steps: 34 – 38 β†’ ideal: 35
1107
  keep_environment = True
1108
 
1109
  # 1. Denoising: starke Neugenerierung
@@ -1153,7 +1153,11 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1153
  print(f" Conditioning Scale: [{conditioning_scale[0]:.3f}, {conditioning_scale[1]:.3f}]")
1154
 
1155
 
1156
- else: # face_only_change
 
 
 
 
1157
  keep_environment = True
1158
  adj_strength = min(0.65, strength * 1.05)
1159
 
 
1101
 
1102
  elif mode == "environment_change":
1103
  # optimale UI-Werte:
1104
+ # Strength: 0.72 – 0.78 β†’ ideal: 0.75
1105
+ # guidance (CFG): 8.5 – 9.5 β†’ ideal: 9
1106
+ # Steps: 34 – 38 β†’ ideal: 35
1107
  keep_environment = True
1108
 
1109
  # 1. Denoising: starke Neugenerierung
 
1153
  print(f" Conditioning Scale: [{conditioning_scale[0]:.3f}, {conditioning_scale[1]:.3f}]")
1154
 
1155
 
1156
+ else: # face_only_change
1157
+ # Optimale UI-Werte (entscheidend)
1158
+ # Strength: 0.60 – 0.65 β†’ ideal: 0.62
1159
+ # Guidance (CFG): 7.0 – 8.0 β†’ ideal: 7.5
1160
+ # Steps: 30 – 34 β†’ ideal: 32
1161
  keep_environment = True
1162
  adj_strength = min(0.65, strength * 1.05)
1163