Spaces:
Running
on
Zero
Running
on
Zero
Update inpainting_templates.py
Browse files- inpainting_templates.py +15 -11
inpainting_templates.py
CHANGED
|
@@ -148,28 +148,32 @@ class InpaintingTemplateManager:
|
|
| 148 |
name="Dramatic Color Change",
|
| 149 |
category="Replacement",
|
| 150 |
icon="🎨",
|
| 151 |
-
description="Extreme color transformations (dark↔light, black↔white)",
|
| 152 |
-
prompt_template="COMPLETELY
|
| 153 |
negative_prompt=(
|
| 154 |
"original color, keeping same shade, partial change, color bleeding, "
|
| 155 |
"faded colors, mixed tones, subtle change, gradual transition, "
|
| 156 |
"original appearance, unchanged, dark remnants, light patches, "
|
| 157 |
-
"black clothing, dark colors, keeping original darkness"
|
|
|
|
|
|
|
|
|
|
| 158 |
),
|
| 159 |
-
controlnet_conditioning_scale=0.
|
| 160 |
feather_radius=16,
|
| 161 |
-
guidance_scale=
|
| 162 |
num_inference_steps=10, # Optimized: 10 steps sufficient (was 12)
|
| 163 |
preferred_conditioning="canny", # Optimized: Canny for color freedom (was depth)
|
| 164 |
difficulty="medium", # ⚠️ Medium: Extreme changes challenging
|
| 165 |
usage_tips=[
|
| 166 |
-
"
|
| 167 |
-
"Use
|
| 168 |
-
"
|
|
|
|
| 169 |
"📝 Example prompts:",
|
| 170 |
-
" • 'PURE WHITE dress shirt
|
| 171 |
-
" • 'JET BLACK leather jacket
|
| 172 |
-
" • 'BRIGHT
|
| 173 |
]
|
| 174 |
),
|
| 175 |
|
|
|
|
| 148 |
name="Dramatic Color Change",
|
| 149 |
category="Replacement",
|
| 150 |
icon="🎨",
|
| 151 |
+
description="Extreme color transformations (dark↔light, black↔white) - especially for illustrations",
|
| 152 |
+
prompt_template="COMPLETELY SOLID {content}, entire area pure color, all fabric same vivid color, no original color remaining",
|
| 153 |
negative_prompt=(
|
| 154 |
"original color, keeping same shade, partial change, color bleeding, "
|
| 155 |
"faded colors, mixed tones, subtle change, gradual transition, "
|
| 156 |
"original appearance, unchanged, dark remnants, light patches, "
|
| 157 |
+
"black clothing, dark colors, keeping original darkness, "
|
| 158 |
+
"black fabric, keeping black, original black color, dark body, "
|
| 159 |
+
"partial color change, colored trim only, colored edges only, colored outline only, "
|
| 160 |
+
"black body with colored decoration, original color body"
|
| 161 |
),
|
| 162 |
+
controlnet_conditioning_scale=0.15, # Optimized: Extremely low for anime/illustration (was 0.25)
|
| 163 |
feather_radius=16,
|
| 164 |
+
guidance_scale=15.5, # Optimized: Very high for strong color adherence (was 13.5)
|
| 165 |
num_inference_steps=10, # Optimized: 10 steps sufficient (was 12)
|
| 166 |
preferred_conditioning="canny", # Optimized: Canny for color freedom (was depth)
|
| 167 |
difficulty="medium", # ⚠️ Medium: Extreme changes challenging
|
| 168 |
usage_tips=[
|
| 169 |
+
"✅ OPTIMIZED for anime/illustration extreme color changes (black↔white, black↔red)",
|
| 170 |
+
"Use COMPLETE descriptors: 'solid PURE WHITE', 'completely BRIGHT RED', 'entire garment JET BLACK'",
|
| 171 |
+
"Very low conditioning (0.15) allows complete color transformation on flat-color illustrations",
|
| 172 |
+
"Add 'completely', 'solid', 'entire', 'pure' to ensure full coverage",
|
| 173 |
"📝 Example prompts:",
|
| 174 |
+
" • 'solid PURE WHITE dress shirt, completely white fabric'",
|
| 175 |
+
" • 'completely JET BLACK leather jacket, entire garment black'",
|
| 176 |
+
" • 'solid BRIGHT RED polo shirt, all fabric vivid red, no black'"
|
| 177 |
]
|
| 178 |
),
|
| 179 |
|