alexander00001 commited on
Commit
ea99594
·
verified ·
1 Parent(s): 9bba67b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
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, dslr, soft lighting, high quality",
40
- "suffix": "realistic skin texture, natural skin pores, detailed face, lifelike, sharp focus, professional photography, panoramic depth of field"
41
  },
42
  "Anime": {
43
- "prefix": "(anime style:1.3), (anime artwork:1.2), vibrant, key visual, studio anime, highly detailed anime",
44
- "suffix": "cel shading, clean linework, vibrant anime colors, detailed anime eyes, smooth anime skin, perfect anime proportions, manga illustration"
45
  },
46
  "Comic": {
47
- "prefix": "(comic book art:1.3), (graphic novel:1.2), bold inking, comic art style",
48
- "suffix": "bold outlines, halftone dots, pop art colors, dynamic panel, graphic illustration, cel shading, comic book style"
49
  },
50
  "Watercolor": {
51
- "prefix": "(watercolor painting:1.3), (watercolor art:1.2), soft edges, delicate washes, artistic",
52
- "suffix": "soft gradients, pastel colors, paper texture, artistic brush strokes, traditional watercolor, hand-painted"
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.2), (photorealistic:1.2), (blurry lines:1.2), (soft edges:1.2)",
186
- "Watercolor": ", (digital art:1.2), (sharp edges:1.2), (vector art:1.2), (3d:1.2)"
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