Spaces:
Running
on
Zero
Running
on
Zero
adamelliotfields
commited on
Add Anything style
Browse files- DOCS.md +11 -3
- data/styles.json +64 -59
- lib/inference.py +6 -2
DOCS.md
CHANGED
@@ -51,7 +51,7 @@ Apply up to 2 LoRA (low-rank adaptation) adapters with adjustable strength:
|
|
51 |
|
52 |
Select one or more [textual inversion](https://huggingface.co/docs/diffusers/en/using-diffusers/textual_inversion_inference) embeddings:
|
53 |
|
54 |
-
* [`fast_negative`](https://civitai.com/models/71961?modelVersionId=94057): all-purpose (default)
|
55 |
* [`cyberrealistic_negative`](https://civitai.com/models/77976?modelVersionId=82745): realistic add-on (for CyberRealistic)
|
56 |
* [`unrealistic_dream`](https://civitai.com/models/72437?modelVersionId=77173): realistic add-on (for RealisticVision)
|
57 |
|
@@ -63,12 +63,20 @@ Select one or more [textual inversion](https://huggingface.co/docs/diffusers/en/
|
|
63 |
|
64 |
Start by framing a simple subject like `portrait of a young adult woman` or `landscape of a mountain range` and experiment.
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
### Scale
|
67 |
|
68 |
Rescale up to 4x using [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) with weights from [ai-forever](ai-forever/Real-ESRGAN). Necessary for high-resolution images.
|
69 |
|
70 |
-
> NB: I find this Real-ESRGAN model to work well, so I do not use a _hi-res fix_.
|
71 |
-
|
72 |
### Image-to-Image
|
73 |
|
74 |
The `🖼️ Image` tab enables the image-to-image and IP-Adapter pipelines. Either use the image input or select a generation from the gallery. To disable, simply clear the image input (the `x` overlay button).
|
|
|
51 |
|
52 |
Select one or more [textual inversion](https://huggingface.co/docs/diffusers/en/using-diffusers/textual_inversion_inference) embeddings:
|
53 |
|
54 |
+
* [`fast_negative`](https://civitai.com/models/71961?modelVersionId=94057): all-purpose (default, **recommended**)
|
55 |
* [`cyberrealistic_negative`](https://civitai.com/models/77976?modelVersionId=82745): realistic add-on (for CyberRealistic)
|
56 |
* [`unrealistic_dream`](https://civitai.com/models/72437?modelVersionId=77173): realistic add-on (for RealisticVision)
|
57 |
|
|
|
63 |
|
64 |
Start by framing a simple subject like `portrait of a young adult woman` or `landscape of a mountain range` and experiment.
|
65 |
|
66 |
+
#### Anime
|
67 |
+
|
68 |
+
The `Anime: *` styles work the best with Dreamshaper. When using the anime-specific Anything model, you should use the `Anime: Anything` style with the following settings:
|
69 |
+
|
70 |
+
* Scheduler: `DEIS 2M` or `DPM++ 2M`
|
71 |
+
* Guidance: `10`
|
72 |
+
* Steps: `50`
|
73 |
+
|
74 |
+
You subject should be a few simple tokens like `girl, brunette, blue eyes, armor, nebula, celestial`. Experiment with `Clip Skip` and `Karras`. Finish with the `Perfection Style` LoRA on a moderate setting and upscale.
|
75 |
+
|
76 |
### Scale
|
77 |
|
78 |
Rescale up to 4x using [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) with weights from [ai-forever](ai-forever/Real-ESRGAN). Necessary for high-resolution images.
|
79 |
|
|
|
|
|
80 |
### Image-to-Image
|
81 |
|
82 |
The `🖼️ Image` tab enables the image-to-image and IP-Adapter pipelines. Either use the image input or select a generation from the gallery. To disable, simply clear the image input (the `x` overlay button).
|
data/styles.json
CHANGED
@@ -1,136 +1,141 @@
|
|
1 |
{
|
2 |
"_base": {
|
3 |
-
"positive": "
|
4 |
"negative": "watermark, trademark, signature, autograph, artifacts, deformed, mutated, bad, ugly, unattractive, noisy, grainy, blurry, distorted, oversaturated, undersaturated, overexposed, underexposed, amateur, sloppy, cluttered, low detail, worst quality"
|
5 |
},
|
6 |
"abstract": {
|
7 |
"name": "Abstract",
|
8 |
-
"positive": "({prompt}), in an abstract art style, non-representational colors and shapes, expressive, imaginative, vibrant",
|
9 |
-
"negative": "({prompt}), discrete, objective, realism, photographic, monochrome, muted"
|
10 |
},
|
11 |
-
"
|
12 |
-
"name": "Anime:
|
13 |
-
"positive": "({prompt}),
|
14 |
-
"negative": "({prompt}),
|
15 |
},
|
16 |
-
"
|
17 |
-
"name": "Anime:
|
18 |
-
"positive": "({prompt}), in a
|
19 |
-
"negative": "({prompt}), shonen, seinen,
|
20 |
},
|
21 |
"anime_seinen": {
|
22 |
"name": "Anime: Seinen",
|
23 |
-
"positive": "({prompt}), in a seinen anime style, Ghost in the Shell, by Masamune Shirow, manga, adult, mature, dark, gritty, intricate design, dramatic lighting, high contrast",
|
24 |
-
"negative": "({prompt}), shonen, shojo, josei, chibi, kawaii, realism, photographic, dull, plain, low contrast"
|
25 |
},
|
26 |
-
"
|
27 |
-
"name": "Anime:
|
28 |
-
"positive": "({prompt}), in a
|
29 |
-
"negative": "({prompt}), shonen,
|
|
|
|
|
|
|
|
|
|
|
30 |
},
|
31 |
"art_deco": {
|
32 |
"name": "Art Deco",
|
33 |
-
"positive": "({prompt}), in an art deco style, inspired by Tamara de Lempicka, geometric shapes, bold colors, luxurious, elegant, sleek, streamlined, symmetrical, vibrant, high contrast",
|
34 |
-
"negative": "({prompt}), realism, photographic, asymmetrical, monochrome, muted, low contrast"
|
35 |
},
|
36 |
"biomechanical": {
|
37 |
"name": "Biomechanical",
|
38 |
-
"positive": "({prompt}), in a biomechanical style, organic and mechanical, flesh and metal, cyborg, cybernetic, intricate design, futuristic, sci-fi",
|
39 |
-
"negative": "({prompt}), natural, rustic, primitive, medieval"
|
40 |
},
|
41 |
"cubism": {
|
42 |
"name": "Cubism",
|
43 |
-
"positive": "({prompt}), in a cubist style, inspired by Picasso, fragmented shapes and planes, abstract forms, collage",
|
44 |
-
"negative": "({prompt}), discrete, objective"
|
45 |
},
|
46 |
"cyberpunk": {
|
47 |
"name": "Cyberpunk",
|
48 |
-
"positive": "({prompt}), in a cyberpunk style, 2077, synthwave, neon, digital, high-tech, futuristic, dystopian, vibrant, high contrast",
|
49 |
-
"negative": "({prompt}), rustic, primitive, medieval, monochrome, muted, low contrast"
|
50 |
},
|
51 |
"enhance": {
|
52 |
"name": "Enhance",
|
53 |
-
"positive": "({prompt})",
|
54 |
-
"negative": "({prompt})"
|
55 |
},
|
56 |
"expressionism": {
|
57 |
"name": "Expressionism",
|
58 |
-
"positive": "({prompt}), in an expressionist style, energetic brushwork, bold colors, abstract forms, vibrant, expressive, imaginative, high contrast",
|
59 |
-
"negative": "({prompt}), discrete, objective, realism, photographic, dull, plain, monochrome, muted, low contrast"
|
60 |
},
|
61 |
"fantasy": {
|
62 |
"name": "Fantasy",
|
63 |
-
"positive": "({prompt}), in a fantasy style, digital concept art, by Greg Rutkowski, trending on ArtStation, magical, enchanting, ethereal, dreamlike, graphic, illustration, high contrast",
|
64 |
-
"negative": "({prompt}), realism, photographic, ordinary, mundane, monochrome, muted, low contrast"
|
65 |
},
|
66 |
"graffiti": {
|
67 |
"name": "Graffiti",
|
68 |
-
"positive": "({prompt}), in a graffiti style, street art, creative composition, dynamic lines, spray paint, hip-hop, stylized, bold, vibrant, urban, mural, high contrast",
|
69 |
-
"negative": "({prompt}), dull, plain, monochrome, muted, low contrast"
|
70 |
},
|
71 |
"line_art": {
|
72 |
"name": "Line Art",
|
73 |
-
"positive": "({prompt}), in a line art drawing style, graphic, illustration, sleek, streamlined, centered composition, solo subject, isolated subject, white background, minimalist arrangement",
|
74 |
-
"negative": "({prompt}), off-center, oil, acrylic, watercolor"
|
75 |
},
|
76 |
"papercraft": {
|
77 |
"name": "Papercraft",
|
78 |
-
"positive": "({prompt}), as a papercraft model, Kirigami style, folded paper, papercut, sharp edges, intricate design, 3d, layered, textural, color block, centered composition, minimalist arrangement",
|
79 |
-
"negative": "({prompt}), 2d, flat"
|
80 |
},
|
81 |
"photography_food": {
|
82 |
"name": "Photography: Food",
|
83 |
-
"positive": "({prompt}), food photography style, fresh ingredients, delicious, culinary, real, authentic, macro details, soft natural lighting, high resolution, uhd, centered composition, minimalist arrangement",
|
84 |
-
"negative": "({prompt}), unappetizing, fake, artificial, low resolution"
|
85 |
},
|
86 |
"photography_hdr": {
|
87 |
"name": "Photography: HDR",
|
88 |
-
"positive": "({prompt}), breathtaking HDR photography, high dynamic range, vivid colors, shadows and highlights, dramatic lighting, high contrast, high resolution, uhd",
|
89 |
-
"negative": "({prompt}), flat colors, plain, dull, low dynamic range, low contrast, low resolution"
|
90 |
},
|
91 |
"photography_iphone": {
|
92 |
"name": "Photography: iPhone",
|
93 |
-
"positive": "({prompt}), taken by iPhone ProRAW camera, XDR, Retina, depth-of-field, vivid colors, dynamic range, dramatic lighting, real, authentic, high contrast, high resolution, uhd",
|
94 |
-
"negative": "({prompt}), shallow depth-of-field, bokeh, fake, artificial, low contrast, low resolution"
|
95 |
},
|
96 |
"photography_iphone_portrait": {
|
97 |
"name": "Photography: iPhone Portrait",
|
98 |
-
"positive": "({prompt}), taken by iPhone Portrait Mode, XDR, Retina, shallow depth-of-field, bokeh, vivid colors, dramatic lighting, real, authentic, high contrast, high resolution, uhd",
|
99 |
-
"negative": "({prompt}), fake, artificial, low contrast, low resolution"
|
100 |
},
|
101 |
"photography_real_estate": {
|
102 |
"name": "Photography: Real Estate",
|
103 |
-
"positive": "({prompt}), real estate photography style, on Zillow, inviting, staged, well-lit, real, authentic, high resolution, uhd",
|
104 |
-
"negative": "({prompt}), dark, fake, artificial, low resolution"
|
105 |
},
|
106 |
"photography_street": {
|
107 |
"name": "Photography: Street",
|
108 |
-
"positive": "({prompt}), street photography style, taken on Fujifilm X100V, f2 aperture, 35mm, RAW format, candid, authentic, gritty, urban, high contrast, high resolution, uhd",
|
109 |
-
"negative": "({prompt}), staged, fake, artificial, low contrast, low resolution"
|
110 |
},
|
111 |
"pointillism": {
|
112 |
"name": "Pointillism",
|
113 |
-
"positive": "({prompt}), pointillism style, composed of small dots, inspired by Georges Seurat, intricate design, vibrant",
|
114 |
-
"negative": "({prompt}), line drawing, smooth shading, wide color gamut, dull, plain, monochrome, muted"
|
115 |
},
|
116 |
"pop_art": {
|
117 |
"name": "Pop Art",
|
118 |
-
"positive": "({prompt}), in a pop art style, inspired by Warhol, bright colors, bold outlines, popular culture, kitsch, vibrant, high contrast",
|
119 |
-
"negative": "({prompt}), discrete, objective, dull, plain, monochrome, muted, low contrast"
|
120 |
},
|
121 |
"render": {
|
122 |
"name": "Render",
|
123 |
-
"positive": "({prompt}), Octane render, Unreal Engine, volumetric lighting, ray tracing, ambient occlusion, subsurface scattering, high resolution, uhd",
|
124 |
-
"negative": "({prompt}), glitch, error, painting, sketch, low resolution"
|
125 |
},
|
126 |
"vaporwave": {
|
127 |
"name": "Vaporwave",
|
128 |
-
"positive": "({prompt}), in a vaporwave style, retro aesthetic, neon colors, vibrant, high contrast",
|
129 |
-
"negative": "({prompt}), dark, monochrome, muted, low contrast"
|
130 |
},
|
131 |
"watercolor": {
|
132 |
"name": "Watercolor",
|
133 |
-
"positive": "({prompt}), painted with watercolors, colorful, painterly, artistic, fluid",
|
134 |
-
"negative": "({prompt}), realism, photographic, oil, acrylic, digital"
|
135 |
}
|
136 |
}
|
|
|
1 |
{
|
2 |
"_base": {
|
3 |
+
"positive": "good, perfect, accurate, precise, professional, highly detailed, best quality, masterpiece",
|
4 |
"negative": "watermark, trademark, signature, autograph, artifacts, deformed, mutated, bad, ugly, unattractive, noisy, grainy, blurry, distorted, oversaturated, undersaturated, overexposed, underexposed, amateur, sloppy, cluttered, low detail, worst quality"
|
5 |
},
|
6 |
"abstract": {
|
7 |
"name": "Abstract",
|
8 |
+
"positive": "({prompt}), in an abstract art style, non-representational colors and shapes, expressive, imaginative, vibrant, {_base}",
|
9 |
+
"negative": "({prompt}), discrete, objective, realism, photographic, monochrome, muted, {_base}"
|
10 |
},
|
11 |
+
"anime_anything": {
|
12 |
+
"name": "Anime: Anything",
|
13 |
+
"positive": "({prompt}), masterpiece, best quality, illustration, beautiful detailed, finely detailed, dramatic light, intricate details",
|
14 |
+
"negative": "({prompt}), lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry"
|
15 |
},
|
16 |
+
"anime_josei": {
|
17 |
+
"name": "Anime: Josei",
|
18 |
+
"positive": "({prompt}), in a josei anime style, Paradise Kiss, by Ai Yazawa, manga, mature, emotional, sophisticated, soft colors, refined lines, {_base}",
|
19 |
+
"negative": "({prompt}), shonen, shojo, seinen, chibi, dark, gritty, realism, photographic, {_base}"
|
20 |
},
|
21 |
"anime_seinen": {
|
22 |
"name": "Anime: Seinen",
|
23 |
+
"positive": "({prompt}), in a seinen anime style, Ghost in the Shell, by Masamune Shirow, manga, adult, mature, dark, gritty, intricate design, dramatic lighting, high contrast, {_base}",
|
24 |
+
"negative": "({prompt}), shonen, shojo, josei, chibi, kawaii, realism, photographic, dull, plain, low contrast, {_base}"
|
25 |
},
|
26 |
+
"anime_shojo": {
|
27 |
+
"name": "Anime: Shojo",
|
28 |
+
"positive": "({prompt}), in a shojo anime style, Sailor Moon, by Naoko Takeuchi, manga, kawaii, romantic, emotional, pastel colors, soft lines, {_base}",
|
29 |
+
"negative": "({prompt}), shonen, seinen, josei, dark, gritty, realism, photographic, {_base}"
|
30 |
+
},
|
31 |
+
"anime_shonen": {
|
32 |
+
"name": "Anime: Shonen",
|
33 |
+
"positive": "({prompt}), in a shonen anime style, One Piece, by Eiichiro Oda, manga, action, adventure, heroic, youthful, vibrant, high contrast, {_base}",
|
34 |
+
"negative": "({prompt}), shojo, seinen, josei, chibi, kawaii, realism, photographic, dull, plain, monochrome, muted, low contrast, {_base}"
|
35 |
},
|
36 |
"art_deco": {
|
37 |
"name": "Art Deco",
|
38 |
+
"positive": "({prompt}), in an art deco style, inspired by Tamara de Lempicka, geometric shapes, bold colors, luxurious, elegant, sleek, streamlined, symmetrical, vibrant, high contrast, {_base}",
|
39 |
+
"negative": "({prompt}), realism, photographic, asymmetrical, monochrome, muted, low contrast, {_base}"
|
40 |
},
|
41 |
"biomechanical": {
|
42 |
"name": "Biomechanical",
|
43 |
+
"positive": "({prompt}), in a biomechanical style, organic and mechanical, flesh and metal, cyborg, cybernetic, intricate design, futuristic, sci-fi, {_base}",
|
44 |
+
"negative": "({prompt}), natural, rustic, primitive, medieval, {_base}"
|
45 |
},
|
46 |
"cubism": {
|
47 |
"name": "Cubism",
|
48 |
+
"positive": "({prompt}), in a cubist style, inspired by Picasso, fragmented shapes and planes, abstract forms, collage, {_base}",
|
49 |
+
"negative": "({prompt}), discrete, objective, {_base}"
|
50 |
},
|
51 |
"cyberpunk": {
|
52 |
"name": "Cyberpunk",
|
53 |
+
"positive": "({prompt}), in a cyberpunk style, 2077, synthwave, neon, digital, high-tech, futuristic, dystopian, vibrant, high contrast, {_base}",
|
54 |
+
"negative": "({prompt}), rustic, primitive, medieval, monochrome, muted, low contrast, {_base}"
|
55 |
},
|
56 |
"enhance": {
|
57 |
"name": "Enhance",
|
58 |
+
"positive": "({prompt}), {_base}",
|
59 |
+
"negative": "({prompt}), {_base}"
|
60 |
},
|
61 |
"expressionism": {
|
62 |
"name": "Expressionism",
|
63 |
+
"positive": "({prompt}), in an expressionist style, energetic brushwork, bold colors, abstract forms, vibrant, expressive, imaginative, high contrast, {_base}",
|
64 |
+
"negative": "({prompt}), discrete, objective, realism, photographic, dull, plain, monochrome, muted, low contrast, {_base}"
|
65 |
},
|
66 |
"fantasy": {
|
67 |
"name": "Fantasy",
|
68 |
+
"positive": "({prompt}), in a fantasy style, digital concept art, by Greg Rutkowski, trending on ArtStation, magical, enchanting, ethereal, dreamlike, graphic, illustration, high contrast, {_base}",
|
69 |
+
"negative": "({prompt}), realism, photographic, ordinary, mundane, monochrome, muted, low contrast, {_base}"
|
70 |
},
|
71 |
"graffiti": {
|
72 |
"name": "Graffiti",
|
73 |
+
"positive": "({prompt}), in a graffiti style, street art, creative composition, dynamic lines, spray paint, hip-hop, stylized, bold, vibrant, urban, mural, high contrast, {_base}",
|
74 |
+
"negative": "({prompt}), dull, plain, monochrome, muted, low contrast, {_base}"
|
75 |
},
|
76 |
"line_art": {
|
77 |
"name": "Line Art",
|
78 |
+
"positive": "({prompt}), in a line art drawing style, graphic, illustration, sleek, streamlined, centered composition, solo subject, isolated subject, white background, minimalist arrangement, {_base}",
|
79 |
+
"negative": "({prompt}), off-center, oil, acrylic, watercolor, {_base}"
|
80 |
},
|
81 |
"papercraft": {
|
82 |
"name": "Papercraft",
|
83 |
+
"positive": "({prompt}), as a papercraft model, Kirigami style, folded paper, papercut, sharp edges, intricate design, 3d, layered, textural, color block, centered composition, minimalist arrangement, {_base}",
|
84 |
+
"negative": "({prompt}), 2d, flat, {_base}"
|
85 |
},
|
86 |
"photography_food": {
|
87 |
"name": "Photography: Food",
|
88 |
+
"positive": "({prompt}), food photography style, fresh ingredients, delicious, culinary, real, authentic, macro details, soft natural lighting, high resolution, uhd, centered composition, minimalist arrangement, {_base}",
|
89 |
+
"negative": "({prompt}), unappetizing, fake, artificial, low resolution, {_base}"
|
90 |
},
|
91 |
"photography_hdr": {
|
92 |
"name": "Photography: HDR",
|
93 |
+
"positive": "({prompt}), breathtaking HDR photography, high dynamic range, vivid colors, shadows and highlights, dramatic lighting, high contrast, high resolution, uhd, {_base}",
|
94 |
+
"negative": "({prompt}), flat colors, plain, dull, low dynamic range, low contrast, low resolution, {_base}"
|
95 |
},
|
96 |
"photography_iphone": {
|
97 |
"name": "Photography: iPhone",
|
98 |
+
"positive": "({prompt}), taken by iPhone ProRAW camera, XDR, Retina, depth-of-field, vivid colors, dynamic range, dramatic lighting, real, authentic, high contrast, high resolution, uhd, {_base}",
|
99 |
+
"negative": "({prompt}), shallow depth-of-field, bokeh, fake, artificial, low contrast, low resolution, {_base}"
|
100 |
},
|
101 |
"photography_iphone_portrait": {
|
102 |
"name": "Photography: iPhone Portrait",
|
103 |
+
"positive": "({prompt}), taken by iPhone Portrait Mode, XDR, Retina, shallow depth-of-field, bokeh, vivid colors, dramatic lighting, real, authentic, high contrast, high resolution, uhd, {_base}",
|
104 |
+
"negative": "({prompt}), fake, artificial, low contrast, low resolution, {_base}"
|
105 |
},
|
106 |
"photography_real_estate": {
|
107 |
"name": "Photography: Real Estate",
|
108 |
+
"positive": "({prompt}), real estate photography style, on Zillow, inviting, staged, well-lit, real, authentic, high resolution, uhd, {_base}",
|
109 |
+
"negative": "({prompt}), dark, fake, artificial, low resolution, {_base}"
|
110 |
},
|
111 |
"photography_street": {
|
112 |
"name": "Photography: Street",
|
113 |
+
"positive": "({prompt}), street photography style, taken on Fujifilm X100V, f2 aperture, 35mm, RAW format, candid, authentic, gritty, urban, high contrast, high resolution, uhd, {_base}",
|
114 |
+
"negative": "({prompt}), staged, fake, artificial, low contrast, low resolution, {_base}"
|
115 |
},
|
116 |
"pointillism": {
|
117 |
"name": "Pointillism",
|
118 |
+
"positive": "({prompt}), pointillism style, composed of small dots, inspired by Georges Seurat, intricate design, vibrant, {_base}",
|
119 |
+
"negative": "({prompt}), line drawing, smooth shading, wide color gamut, dull, plain, monochrome, muted, {_base}"
|
120 |
},
|
121 |
"pop_art": {
|
122 |
"name": "Pop Art",
|
123 |
+
"positive": "({prompt}), in a pop art style, inspired by Warhol, bright colors, bold outlines, popular culture, kitsch, vibrant, high contrast, {_base}",
|
124 |
+
"negative": "({prompt}), discrete, objective, dull, plain, monochrome, muted, low contrast, {_base}"
|
125 |
},
|
126 |
"render": {
|
127 |
"name": "Render",
|
128 |
+
"positive": "({prompt}), Octane render, Unreal Engine, volumetric lighting, ray tracing, ambient occlusion, subsurface scattering, high resolution, uhd, {_base}",
|
129 |
+
"negative": "({prompt}), glitch, error, painting, sketch, low resolution, {_base}"
|
130 |
},
|
131 |
"vaporwave": {
|
132 |
"name": "Vaporwave",
|
133 |
+
"positive": "({prompt}), in a vaporwave style, retro aesthetic, neon colors, vibrant, high contrast, {_base}",
|
134 |
+
"negative": "({prompt}), dark, monochrome, muted, low contrast, {_base}"
|
135 |
},
|
136 |
"watercolor": {
|
137 |
"name": "Watercolor",
|
138 |
+
"positive": "({prompt}), painted with watercolors, colorful, painterly, artistic, fluid, {_base}",
|
139 |
+
"negative": "({prompt}), realism, photographic, oil, acrylic, digital, {_base}"
|
140 |
}
|
141 |
}
|
lib/inference.py
CHANGED
@@ -51,8 +51,12 @@ def apply_style(positive_prompt, negative_prompt, style_id="none"):
|
|
51 |
|
52 |
style_base = styles.get("_base", {})
|
53 |
return (
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
56 |
)
|
57 |
|
58 |
|
|
|
51 |
|
52 |
style_base = styles.get("_base", {})
|
53 |
return (
|
54 |
+
style.get("positive")
|
55 |
+
.format(prompt=positive_prompt, _base=style_base.get("positive"))
|
56 |
+
.strip(),
|
57 |
+
style.get("negative")
|
58 |
+
.format(prompt=negative_prompt, _base=style_base.get("negative"))
|
59 |
+
.strip(),
|
60 |
)
|
61 |
|
62 |
|