Ryy12 commited on
Commit
898d804
·
1 Parent(s): a38a33d

feat: optimize style overrides for Anime, Fantasy, and Steampunk to ensure strict adherence to styles

Browse files
Files changed (1) hide show
  1. app.py +24 -0
app.py CHANGED
@@ -120,6 +120,14 @@ print(f"[*] Ready — {len(loaded_adapters)} adapters loaded")
120
 
121
  # Per-style parameter overrides to maximize style differentiation
122
  STYLE_PARAM_OVERRIDES = {
 
 
 
 
 
 
 
 
123
  "🌑 Dark Fantasy": {
124
  # Cần strength rất cao để phá vỡ bias anime của SD v1.5
125
  "strength": 0.95,
@@ -138,6 +146,14 @@ STYLE_PARAM_OVERRIDES = {
138
  "steps": 25,
139
  "extra_negative": "bright daylight, warm colors, nature, fantasy, medieval, white background",
140
  },
 
 
 
 
 
 
 
 
141
  "🎮 Pixel Art": {
142
  "strength": 0.9,
143
  "cn_scale": 0.65,
@@ -146,6 +162,14 @@ STYLE_PARAM_OVERRIDES = {
146
  "steps": 25,
147
  "extra_negative": "smooth, anti-aliased, realistic, photographic, detailed texture, gradients",
148
  },
 
 
 
 
 
 
 
 
149
  "🎨 Watercolor": {
150
  "strength": 0.85,
151
  "cn_scale": 0.5,
 
120
 
121
  # Per-style parameter overrides to maximize style differentiation
122
  STYLE_PARAM_OVERRIDES = {
123
+ "✨ Anime": {
124
+ "strength": 0.75,
125
+ "cn_scale": 0.7,
126
+ "lora_scale": 1.1,
127
+ "guidance": 7.5,
128
+ "steps": 20,
129
+ "extra_negative": "3d, realistic, photorealistic, cgi, render, oil painting, thick painting, dark shadows, rough sketch, black and white",
130
+ },
131
  "🌑 Dark Fantasy": {
132
  # Cần strength rất cao để phá vỡ bias anime của SD v1.5
133
  "strength": 0.95,
 
146
  "steps": 25,
147
  "extra_negative": "bright daylight, warm colors, nature, fantasy, medieval, white background",
148
  },
149
+ "🌟 Fantasy": {
150
+ "strength": 0.85,
151
+ "cn_scale": 0.55,
152
+ "lora_scale": 1.2,
153
+ "guidance": 9.0,
154
+ "steps": 25,
155
+ "extra_negative": "dark fantasy, gothic, gloomy, steampunk, cyberpunk, sci-fi, modern, industrial, city, street, white background, black and white",
156
+ },
157
  "🎮 Pixel Art": {
158
  "strength": 0.9,
159
  "cn_scale": 0.65,
 
162
  "steps": 25,
163
  "extra_negative": "smooth, anti-aliased, realistic, photographic, detailed texture, gradients",
164
  },
165
+ "⚙️ Steampunk": {
166
+ "strength": 0.85,
167
+ "cn_scale": 0.6,
168
+ "lora_scale": 1.2,
169
+ "guidance": 8.5,
170
+ "steps": 25,
171
+ "extra_negative": "neon, cyberpunk, futuristic, modern, digital art, plastic, bright cyan, pink, anime, watercolor, cartoon",
172
+ },
173
  "🎨 Watercolor": {
174
  "strength": 0.85,
175
  "cn_scale": 0.5,