DawnC commited on
Commit
d877c5c
·
verified ·
1 Parent(s): eef6a37

Update inpainting_templates.py

Browse files
Files changed (1) hide show
  1. 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 TRANSFORM to {content}, vivid saturated color, high contrast, sharp color definition, clear distinct color",
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.25, # Optimized: Very low for extreme color changes (was 0.38)
160
  feather_radius=16,
161
- guidance_scale=13.5, # Optimized: Higher guidance for color accuracy (was 12.0)
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
- "Optimized for: blackwhite, white→black, dark→light extreme transformations",
167
- "Use VERY vivid descriptors: 'PURE WHITE', 'JET BLACK', 'BRIGHT crimson red'",
168
- "Low conditioning (0.25) allows dramatic color changes while preserving outlines",
 
169
  "📝 Example prompts:",
170
- " • 'PURE WHITE dress shirt with crisp texture and sharp collar'",
171
- " • 'JET BLACK leather jacket with smooth matte finish'",
172
- " • 'BRIGHT crimson red blazer with vivid saturated color'"
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 (blackwhite, 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