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
 
 
 
 
 
 
 
 
 
 
 
 
 
8ba5d98
 
34a218b
8ba5d98
34a218b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# https://github.com/twri/sdxl_prompt_styler/blob/main/sdxl_styles.json

styles = [
    {
        "name": "cinematic",
        "prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
        "negative_prompt": "nsfw, nude, naked, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured"
    },
    {
        "name": "anime",
        "prompt": "anime artwork {prompt} . anime style, key visual, vibrant, studio anime,  highly detailed",
        "negative_prompt": "nsfw, nude, naked, photo, deformed, black and white, realism, disfigured, low contrast"
    },
    {
        "name": "craft clay",
        "prompt": "play-doh style {prompt} . sculpture, clay art, centered composition, Claymation",
        "negative_prompt": "nsfw, nude, naked, sloppy, messy, grainy, highly detailed, ultra textured, photo"
    },
    {
        "name": "line art",
        "prompt": "line art drawing {prompt} . professional, sleek, modern, minimalist, graphic, line art, vector graphics",
        "negative_prompt": "nsfw, nude, naked, anime, photorealistic, 35mm film, deformed, glitch, blurry, noisy, off-center, deformed, cross-eyed, closed eyes, bad anatomy, ugly, disfigured, mutated, realism, realistic, impressionism, expressionism, oil, acrylic"
    },
    {
        "name": "lowpoly",
        "prompt": "low-poly style {prompt} . low-poly game art, polygon mesh, jagged, blocky, wireframe edges, centered composition",
        "negative_prompt": "nsfw, nude, naked, noisy, sloppy, messy, grainy, highly detailed, ultra textured, photo"
    },
    {
        "name": "origami",
        "prompt": "origami style {prompt} . paper art, pleated paper, folded, origami art, pleats, cut and fold, centered composition",
        "negative_prompt": "nsfw, nude, naked, noisy, sloppy, messy, grainy, highly detailed, ultra textured, photo"
    },
    {
        "name": "advertising poster",
        "prompt": "Advertising poster style {prompt} . Professional, modern, product-focused, commercial, eye-catching, highly detailed",
        "negative_prompt": "nsfw, nude, naked, noisy, blurry, amateurish, sloppy, unattractive"
    },
    {
        "name": "car",
        "prompt": "Automotive advertisement style {prompt} . Sleek, dynamic, professional, commercial, vehicle-focused, high-resolution, highly detailed",
        "negative_prompt": "nsfw, nude, naked, noisy, blurry, unattractive, sloppy, unprofessional"
    },
    {
        "name": "fashion",
        "prompt": "Fashion editorial style {prompt} . High fashion, trendy, stylish, editorial, magazine style, professional, highly detailed",
        "negative_prompt": "nsfw, nude, naked, outdated, blurry, noisy, unattractive, sloppy"
    },
    {
        "name": "pixel art",
        "prompt": "pixel-art {prompt} . low-res, blocky, pixel art style, 8-bit graphics",
        "negative_prompt": "nsfw, nude, naked, sloppy, messy, blurry, noisy, highly detailed, ultra textured, photo, realistic"
    },
    {
        "name": "abstract",
        "prompt": "abstract expressionist painting {prompt} . energetic brushwork, bold colors, abstract forms, expressive, emotional",
        "negative_prompt": "nsfw, nude, naked, realistic, photorealistic, low contrast, plain, simple, monochrome"
    },
    {
        "name": "graffiti",
        "prompt": "graffiti style {prompt} . street art, vibrant, urban, detailed, tag, mural",
        "negative_prompt": "nsfw, nude, naked, ugly, deformed, noisy, blurry, low contrast, realism, photorealistic"
    },
    {
        "name": "psychedelic",
        "prompt": "psychedelic style {prompt} . vibrant colors, swirling patterns, abstract forms, surreal, trippy",
        "negative_prompt": "nsfw, nude, naked, monochrome, black and white, low contrast, realistic, photorealistic, plain, simple"
    },
    {
        "name": "steampunk",
        "prompt": "steampunk style {prompt} . antique, mechanical, brass and copper tones, gears, intricate, detailed",
        "negative_prompt": "nsfw, nude, naked, deformed, glitch, noisy, low contrast, anime, photorealistic"
    },
    {
        "name": "watercolor",
        "prompt": "watercolor painting {prompt} . vibrant, beautiful, painterly, detailed, textural, artistic",
        "negative_prompt": "nsfw, nude, naked, anime, photorealistic, 35mm film, deformed, glitch, low contrast, noisy"
    },
    {
        "name": "cyberpunk cityscape",
        "prompt": "cyberpunk cityscape {prompt} . neon lights, dark alleys, skyscrapers, futuristic, vibrant colors, high contrast, highly detailed",
        "negative_prompt": "nsfw, nude, naked, natural, rural, deformed, low contrast, black and white, sketch, watercolor"
    },
    {
        "name": "cyberpunk game",
        "prompt": "cyberpunk game style {prompt} . neon, dystopian, futuristic, digital, vibrant, detailed, high contrast, reminiscent of cyberpunk genre video games",
        "negative_prompt": "nsfw, nude, naked, historical, natural, rustic, low detailed"
    },
    {
        "name": "mario",
        "prompt": "Super Mario style {prompt} . vibrant, cute, cartoony, fantasy, playful, reminiscent of Super Mario series",
        "negative_prompt": "nsfw, nude, naked, realistic, modern, horror, dystopian, violent"
    },
    {
        "name": "minecraft",
        "prompt": "Minecraft style {prompt} . blocky, pixelated, vibrant colors, recognizable characters and objects, game assets",
        "negative_prompt": "nsfw, nude, naked, smooth, realistic, detailed, photorealistic, noise, blurry, deformed"
    },
    {
        "name": "strategy game",
        "prompt": "strategy game style {prompt} . overhead view, detailed map, units, reminiscent of real-time strategy video games",
        "negative_prompt": "nsfw, nude, naked, first-person view, modern, photorealistic"
    },
    {
        "name": "dystopian",
        "prompt": "dystopian style {prompt} . bleak, post-apocalyptic, somber, dramatic, highly detailed",
        "negative_prompt": "nsfw, nude, naked, ugly, deformed, noisy, blurry, low contrast, cheerful, optimistic, vibrant, colorful"
    },
    {
        "name": "fairy tale",
        "prompt": "fairy tale {prompt} . magical, fantastical, enchanting, storybook style, highly detailed",
        "negative_prompt": "nsfw, nude, naked, realistic, modern, ordinary, mundane"
    },
    {
        "name": "gothic",
        "prompt": "gothic style {prompt} . dark, mysterious, haunting, dramatic, ornate, detailed",
        "negative_prompt": "nsfw, nude, naked, ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, cheerful, optimistic"
    },
    {
        "name": "metropolis",
        "prompt": "metropolis-themed {prompt} . urban, cityscape, skyscrapers, modern, futuristic, highly detailed",
        "negative_prompt": "nsfw, nude, naked, rural, natural, rustic, historical, simple"
    },
    {
        "name": "monochrome",
        "prompt": "monochrome {prompt} . black and white, contrast, tone, texture, detailed",
        "negative_prompt": "nsfw, nude, naked, colorful, vibrant, noisy, blurry, deformed"
    },
    {
        "name": "space",
        "prompt": "space-themed {prompt} . cosmic, celestial, stars, galaxies, nebulas, planets, science fiction, highly detailed",
        "negative_prompt": "nsfw, nude, naked, earthly, mundane, ground-based, realism"
    },
    {
        "name": "stained glass",
        "prompt": "stained glass style {prompt} . vibrant, beautiful, translucent, intricate, detailed",
        "negative_prompt": "nsfw, nude, naked, ugly, deformed, noisy, blurry, low contrast, realism, photorealistic"
    },
    {
        "name": "tribal art",
        "prompt": "tribal style {prompt} . indigenous, ethnic, traditional patterns, bold, natural colors, highly detailed",
        "negative_prompt": "nsfw, nude, naked, modern, futuristic, minimalist, pastel"
    },
    {
        "name": "zentangle",
        "prompt": "zentangle {prompt} . intricate, abstract, monochrome, patterns, meditative, highly detailed",
        "negative_prompt": "nsfw, nude, naked, colorful, representative, simplistic, large fields of color"
    },
    {
        "name": "kirigami",
        "prompt": "kirigami representation of {prompt} . 3D, paper folding, paper cutting, Japanese, intricate, symmetrical, precision, clean lines",
        "negative_prompt": "nsfw, nude, naked, painting, drawing, 2D, noisy, blurry, deformed"
    },
    {
        "name": "paper mache",
        "prompt": "paper mache representation of {prompt} . 3D, sculptural, textured, handmade, vibrant, fun",
        "negative_prompt": "nsfw, nude, naked, 2D, flat, photo, sketch, digital art, deformed, noisy, blurry"
    },
    {
        "name": "paper quilling",
        "prompt": "paper quilling art of {prompt} . intricate, delicate, curling, rolling, shaping, coiling, loops, 3D, dimensional, ornamental",
        "negative_prompt": "nsfw, nude, naked, photo, painting, drawing, 2D, flat, deformed, noisy, blurry"
    },
    {
        "name": "papercut shadow box",
        "prompt": "3D papercut shadow box of {prompt} . layered, dimensional, depth, silhouette, shadow, papercut, handmade, high contrast",
        "negative_prompt": "nsfw, nude, naked, painting, drawing, photo, 2D, flat, high detail, blurry, noisy, disfigured"
    },
    {
        "name": "stacked papercut",
        "prompt": "stacked papercut art of {prompt} . 3D, layered, dimensional, depth, precision cut, stacked layers, papercut, high contrast",
        "negative_prompt": "nsfw, nude, naked, 2D, flat, noisy, blurry, painting, drawing, photo, deformed"
    },
    {
        "name": "film noir",
        "prompt": "film noir style {prompt} . monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic",
        "negative_prompt": "nsfw, nude, naked, ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, vibrant, colorful"
    },
    {
        "name": "neon noir",
        "prompt": "neon noir {prompt} . cyberpunk, dark, rainy streets, neon signs, high contrast, low light, vibrant, highly detailed",
        "negative_prompt": "nsfw, nude, naked, bright, sunny, daytime, low contrast, black and white, sketch, watercolor"
    }
]

styles = {k['name']: (k['prompt'], k['negative_prompt']) for k in styles}
default_style = styles['cinematic']
style_keys = list(styles.keys())


SD_XL_BASE_RATIOS = {
    "0.5": (704, 1408),
    "0.52": (704, 1344),
    "0.57": (768, 1344),
    "0.6": (768, 1280),
    "0.68": (832, 1216),
    "0.72": (832, 1152),
    "0.78": (896, 1152),
    "0.82": (896, 1088),
    "0.88": (960, 1088),
    "0.94": (960, 1024),
    "1.0": (1024, 1024),
    "1.07": (1024, 960),
    "1.13": (1088, 960),
    "1.21": (1088, 896),
    "1.29": (1152, 896),
    "1.38": (1152, 832),
    "1.46": (1216, 832),
    "1.67": (1280, 768),
    "1.75": (1344, 768),
    "1.91": (1344, 704),
    "2.0": (1408, 704),
    "2.09": (1472, 704),
    "2.4": (1536, 640),
    "2.5": (1600, 640),
    "2.89": (1664, 576),
    "3.0": (1728, 576),
}


aspect_ratios = {str(v[0])+'×'+str(v[1]):v for k, v in SD_XL_BASE_RATIOS.items()}


def apply_style(style, positive):
    p, n = styles.get(style, default_style)
    return p.replace('{prompt}', positive), n