Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,25 +36,25 @@ STYLE_KEYWORDS = {
|
|
| 36 |
"suffix": ""
|
| 37 |
},
|
| 38 |
"Realistic": {
|
| 39 |
-
"prefix": "(RAW photo:1.2), (photorealistic:1.4), (hyperrealistic:1.3), 8k uhd,
|
| 40 |
-
"suffix": "
|
| 41 |
},
|
| 42 |
"Anime": {
|
| 43 |
-
"prefix": "(
|
| 44 |
-
"suffix": "
|
| 45 |
},
|
| 46 |
"Comic": {
|
| 47 |
-
"prefix": "(
|
| 48 |
-
"suffix": "
|
| 49 |
},
|
| 50 |
"Watercolor": {
|
| 51 |
-
"prefix": "(watercolor
|
| 52 |
-
"suffix": "soft gradients,
|
| 53 |
}
|
| 54 |
}
|
| 55 |
|
| 56 |
# 通用质量增强词
|
| 57 |
-
QUALITY_TAGS = "masterpiece, best quality, high resolution, detailed"
|
| 58 |
|
| 59 |
# 固定模型配置
|
| 60 |
FIXED_MODEL = "votepurchase/pornmasterPro_noobV3VAE"
|
|
@@ -180,10 +180,10 @@ def build_negative_prompt(style: str, custom_negative: str = "") -> str:
|
|
| 180 |
|
| 181 |
# 风格特定的负面词
|
| 182 |
style_negatives = {
|
| 183 |
-
"Realistic": ", (cartoon:1.3), (anime:1.3), (3d render:1.2), (illustration:1.2), (painting:1.2), (drawing:1.2), (art:1.2), (sketch:1.2), artificial, unrealistic",
|
| 184 |
-
"Anime": ", (realistic:1.3), (photorealistic:1.3), (photo:1.2), (3d:1.2), (hyperrealistic:1.2)",
|
| 185 |
-
"Comic": ", (realistic:1.
|
| 186 |
-
"Watercolor": ", (
|
| 187 |
}
|
| 188 |
|
| 189 |
negative = base_negative
|
|
|
|
| 36 |
"suffix": ""
|
| 37 |
},
|
| 38 |
"Realistic": {
|
| 39 |
+
"prefix": "(RAW photo:1.2), (photorealistic:1.4), (hyperrealistic:1.3), 8k uhd, (ultra realistic skin:1.2), cinematic lighting, vibrant colors, high color saturation",
|
| 40 |
+
"suffix": "detailed skin texture, subsurface scattering, sharp focus, (everything in focus:1.3),(no bokeh:1.2), detailed face, detailed background, lifelike, professional photography, realistic proportions, expressive eyes, 8k resolution"
|
| 41 |
},
|
| 42 |
"Anime": {
|
| 43 |
+
"prefix": "(western animation style:1.4), (American cartoon:1.3), (Disney Pixar style:1.2), bold colors, clean digital art, highly detailed character design",
|
| 44 |
+
"suffix": "smooth shading, crisp linework, saturated colors, expressive features, glossy finish, professional animation, vector-like quality, clean background"
|
| 45 |
},
|
| 46 |
"Comic": {
|
| 47 |
+
"prefix": "(manga style:1.4), (Japanese comic art:1.3), clean ink lines, screentone shading, monochrome manga aesthetic",
|
| 48 |
+
"suffix": "sharp linework, smooth shading, manga screentone, clean faces, professional manga illustration, no halftone dots, no texture noise, flat color fills, Japanese comic style"
|
| 49 |
},
|
| 50 |
"Watercolor": {
|
| 51 |
+
"prefix": "(soft watercolor style:1.4), (smooth watercolor painting:1.3), gentle color blending, dreamy aesthetic, digital watercolor",
|
| 52 |
+
"suffix": "soft color transitions, smooth gradients, clean skin, no brush strokes visible, no paper texture, ethereal atmosphere, seamless blending, no color splotches on face, uniform wash"
|
| 53 |
}
|
| 54 |
}
|
| 55 |
|
| 56 |
# 通用质量增强词
|
| 57 |
+
QUALITY_TAGS = "masterpiece, best quality, high resolution, highly detailed, professional"
|
| 58 |
|
| 59 |
# 固定模型配置
|
| 60 |
FIXED_MODEL = "votepurchase/pornmasterPro_noobV3VAE"
|
|
|
|
| 180 |
|
| 181 |
# 风格特定的负面词
|
| 182 |
style_negatives = {
|
| 183 |
+
"Realistic": ", (cartoon:1.3), (anime:1.3), (3d render:1.2), (illustration:1.2), (painting:1.2), (drawing:1.2), (art:1.2), (sketch:1.2), artificial, unrealistic, (depth of field:1.2), (bokeh:1.2)",
|
| 184 |
+
"Anime": ", (realistic:1.3), (photorealistic:1.3), (photo:1.2), (3d:1.2), (hyperrealistic:1.2), (manga style:1.2), (Japanese anime:1.2)",
|
| 185 |
+
"Comic": ", (realistic:1.3), (photorealistic:1.3), (blurry lines:1.2), (soft edges:1.2), (halftone dots:1.5), (screen tone noise:1.4), (grainy texture:1.3), (dots on face:1.4), (spotted skin:1.3)",
|
| 186 |
+
"Watercolor": ", (sharp edges:1.3), (vector art:1.2), (3d:1.2), (hard lines:1.2), (paper texture:1.4), (visible brush strokes:1.3), (canvas texture:1.3), (paint splotches:1.3), (uneven patches:1.2)"
|
| 187 |
}
|
| 188 |
|
| 189 |
negative = base_negative
|