Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -206,9 +206,9 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale, fac
|
|
| 206 |
img_resized = image.convert("RGB").resize((IMG_SIZE, IMG_SIZE))
|
| 207 |
|
| 208 |
# --- PARAMETER-TUNING ---
|
| 209 |
-
|
| 210 |
adj_guidance = min(guidance_scale, 7.0)
|
| 211 |
-
|
| 212 |
|
| 213 |
# ZUFÄLLIGER SEED für Variation
|
| 214 |
seed = random.randint(0, 2**32 - 1)
|
|
|
|
| 206 |
img_resized = image.convert("RGB").resize((IMG_SIZE, IMG_SIZE))
|
| 207 |
|
| 208 |
# --- PARAMETER-TUNING ---
|
| 209 |
+
adj_strength = min(0.85, strength * 1.3) #die optimierten Werte von GPT, Grok sind nicht optimal besser strength vergrößern!
|
| 210 |
adj_guidance = min(guidance_scale, 7.0)
|
| 211 |
+
|
| 212 |
|
| 213 |
# ZUFÄLLIGER SEED für Variation
|
| 214 |
seed = random.randint(0, 2**32 - 1)
|