k-l-lambda commited on
Commit
72164ba
1 Parent(s): 78b8f5f

InstantID official gradio ui added.

Browse files
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.jpg filter=lfs diff=lfs merge=lfs -text
37
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
38
+ *.png filter=lfs diff=lfs merge=lfs -text
.gitignore CHANGED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+
2
+ *.pyc
3
+
4
+ gradio_cached_examples/
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 📈
4
  colorFrom: indigo
5
  colorTo: red
6
  sdk: gradio
7
- sdk_version: 4.19.2
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: indigo
5
  colorTo: red
6
  sdk: gradio
7
+ sdk_version: 4.15.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
app.py CHANGED
@@ -1,8 +1,347 @@
1
 
 
 
 
 
 
2
  import gradio as gr
3
 
4
- def greet(name):
5
- return "Hello " + name + "!!"
6
 
7
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
8
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
+ import random
3
+ import numpy as np
4
+
5
+ from style_template import styles
6
+
7
  import gradio as gr
8
 
 
 
9
 
10
+
11
+ # global variable
12
+ MAX_SEED = np.iinfo(np.int32).max
13
+ STYLE_NAMES = list(styles.keys())
14
+ DEFAULT_STYLE_NAME = "Spring Festival"
15
+ enable_lcm_arg = False
16
+
17
+ # Path to InstantID models
18
+ face_adapter = f"./checkpoints/ip-adapter.bin"
19
+ controlnet_path = f"./checkpoints/ControlNetModel"
20
+
21
+ # controlnet-pose/canny/depth
22
+ controlnet_pose_model = "thibaud/controlnet-openpose-sdxl-1.0"
23
+ controlnet_canny_model = "diffusers/controlnet-canny-sdxl-1.0"
24
+ controlnet_depth_model = "diffusers/controlnet-depth-sdxl-1.0-small"
25
+
26
+
27
+ def toggle_lcm_ui (value):
28
+ if value:
29
+ return (
30
+ gr.update(minimum=0, maximum=100, step=1, value=5),
31
+ gr.update(minimum=0.1, maximum=20.0, step=0.1, value=1.5),
32
+ )
33
+ else:
34
+ return (
35
+ gr.update(minimum=5, maximum=100, step=1, value=30),
36
+ gr.update(minimum=0.1, maximum=20.0, step=0.1, value=5),
37
+ )
38
+
39
+
40
+ def randomize_seed_fn (seed: int, randomize_seed: bool) -> int:
41
+ if randomize_seed:
42
+ seed = random.randint(0, MAX_SEED)
43
+ return seed
44
+
45
+
46
+ def remove_tips ():
47
+ return gr.update(visible=False)
48
+
49
+
50
+ def get_example ():
51
+ case = [
52
+ [
53
+ "./examples/yann-lecun_resize.jpg",
54
+ None,
55
+ "a man",
56
+ "Spring Festival",
57
+ "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
58
+ ],
59
+ [
60
+ "./examples/musk_resize.jpeg",
61
+ "./examples/poses/pose2.jpg",
62
+ "a man flying in the sky in Mars",
63
+ "Mars",
64
+ "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
65
+ ],
66
+ [
67
+ "./examples/sam_resize.png",
68
+ "./examples/poses/pose4.jpg",
69
+ "a man doing a silly pose wearing a suite",
70
+ "Jungle",
71
+ "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, gree",
72
+ ],
73
+ [
74
+ "./examples/schmidhuber_resize.png",
75
+ "./examples/poses/pose3.jpg",
76
+ "a man sit on a chair",
77
+ "Neon",
78
+ "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
79
+ ],
80
+ [
81
+ "./examples/kaifu_resize.png",
82
+ "./examples/poses/pose.jpg",
83
+ "a man",
84
+ "Vibrant Color",
85
+ "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
86
+ ],
87
+ ]
88
+ return case
89
+
90
+
91
+ def run_for_examples (face_file, pose_file, prompt, style, negative_prompt):
92
+ return generate_image(
93
+ face_file,
94
+ pose_file,
95
+ prompt,
96
+ negative_prompt,
97
+ style,
98
+ 20, # num_steps
99
+ 0.8, # identitynet_strength_ratio
100
+ 0.8, # adapter_strength_ratio
101
+ 0.4, # pose_strength
102
+ 0.3, # canny_strength
103
+ 0.5, # depth_strength
104
+ ["pose", "canny"], # controlnet_selection
105
+ 5.0, # guidance_scale
106
+ 42, # seed
107
+ "EulerDiscreteScheduler", # scheduler
108
+ False, # enable_LCM
109
+ True, # enable_Face_Region
110
+ )
111
+
112
+
113
+ def generate_image (
114
+ face_image_path,
115
+ pose_image_path,
116
+ prompt,
117
+ negative_prompt,
118
+ style_name,
119
+ num_steps,
120
+ identitynet_strength_ratio,
121
+ adapter_strength_ratio,
122
+ pose_strength,
123
+ canny_strength,
124
+ depth_strength,
125
+ controlnet_selection,
126
+ guidance_scale,
127
+ seed,
128
+ scheduler,
129
+ enable_LCM,
130
+ enhance_face_region,
131
+ progress=gr.Progress(track_tqdm=True),
132
+ ):
133
+ return None, gr.update(visible=True)
134
+
135
+
136
+ # Description
137
+ title = r"""
138
+ <h1 align="center">InstantID: Zero-shot Identity-Preserving Generation in Seconds</h1>
139
+ """
140
+
141
+ description = r"""
142
+ <b>Official 🤗 Gradio demo</b> for <a href='https://github.com/InstantID/InstantID' target='_blank'><b>InstantID: Zero-shot Identity-Preserving Generation in Seconds</b></a>.<br>
143
+
144
+ We are organizing a Spring Festival event with HuggingFace from 2.7 to 2.25, and you can now generate pictures of Spring Festival costumes. Happy Dragon Year 🐲 ! Share the joy with your family.<br>
145
+
146
+ How to use:<br>
147
+ 1. Upload an image with a face. For images with multiple faces, we will only detect the largest face. Ensure the face is not too small and is clearly visible without significant obstructions or blurring.
148
+ 2. (Optional) You can upload another image as a reference for the face pose. If you don't, we will use the first detected face image to extract facial landmarks. If you use a cropped face at step 1, it is recommended to upload it to define a new face pose.
149
+ 3. (Optional) You can select multiple ControlNet models to control the generation process. The default is to use the IdentityNet only. The ControlNet models include pose skeleton, canny, and depth. You can adjust the strength of each ControlNet model to control the generation process.
150
+ 4. Enter a text prompt, as done in normal text-to-image models.
151
+ 5. Click the <b>Submit</b> button to begin customization.
152
+ 6. Share your customized photo with your friends and enjoy! 😊"""
153
+
154
+ article = r"""
155
+ ---
156
+ """
157
+
158
+ tips = r"""
159
+ ### Usage tips of InstantID
160
+ 1. If you're not satisfied with the similarity, try increasing the weight of "IdentityNet Strength" and "Adapter Strength."
161
+ 2. If you feel that the saturation is too high, first decrease the Adapter strength. If it remains too high, then decrease the IdentityNet strength.
162
+ 3. If you find that text control is not as expected, decrease Adapter strength.
163
+ 4. If you find that realistic style is not good enough, go for our Github repo and use a more realistic base model.
164
+ """
165
+
166
+ css = """
167
+ .gradio-container {width: 85% !important}
168
+ """
169
+ with gr.Blocks(css=css) as demo:
170
+ # description
171
+ gr.Markdown(title)
172
+ gr.Markdown(description)
173
+
174
+ with gr.Row():
175
+ with gr.Column():
176
+ with gr.Row(equal_height=True):
177
+ # upload face image
178
+ face_file = gr.Image(
179
+ label="Upload a photo of your face", type="filepath"
180
+ )
181
+ # optional: upload a reference pose image
182
+ pose_file = gr.Image(
183
+ label="Upload a reference pose image (Optional)",
184
+ type="filepath",
185
+ )
186
+
187
+ # prompt
188
+ prompt = gr.Textbox(
189
+ label="Prompt",
190
+ info="Give simple prompt is enough to achieve good face fidelity",
191
+ placeholder="A photo of a person",
192
+ value="",
193
+ )
194
+
195
+ submit = gr.Button("Submit", variant="primary")
196
+ enable_LCM = gr.Checkbox(
197
+ label="Enable Fast Inference with LCM", value=enable_lcm_arg,
198
+ info="LCM speeds up the inference step, the trade-off is the quality of the generated image. It performs better with portrait face images rather than distant faces",
199
+ )
200
+ style = gr.Dropdown(
201
+ label="Style template",
202
+ choices=STYLE_NAMES,
203
+ value=DEFAULT_STYLE_NAME,
204
+ )
205
+
206
+ # strength
207
+ identitynet_strength_ratio = gr.Slider(
208
+ label="IdentityNet strength (for fidelity)",
209
+ minimum=0,
210
+ maximum=1.5,
211
+ step=0.05,
212
+ value=0.80,
213
+ )
214
+ adapter_strength_ratio = gr.Slider(
215
+ label="Image adapter strength (for detail)",
216
+ minimum=0,
217
+ maximum=1.5,
218
+ step=0.05,
219
+ value=0.80,
220
+ )
221
+ with gr.Accordion("Controlnet"):
222
+ controlnet_selection = gr.CheckboxGroup(
223
+ ["pose", "canny", "depth"], label="Controlnet", value=["pose"],
224
+ info="Use pose for skeleton inference, canny for edge detection, and depth for depth map estimation. You can try all three to control the generation process"
225
+ )
226
+ pose_strength = gr.Slider(
227
+ label="Pose strength",
228
+ minimum=0,
229
+ maximum=1.5,
230
+ step=0.05,
231
+ value=0.40,
232
+ )
233
+ canny_strength = gr.Slider(
234
+ label="Canny strength",
235
+ minimum=0,
236
+ maximum=1.5,
237
+ step=0.05,
238
+ value=0.40,
239
+ )
240
+ depth_strength = gr.Slider(
241
+ label="Depth strength",
242
+ minimum=0,
243
+ maximum=1.5,
244
+ step=0.05,
245
+ value=0.40,
246
+ )
247
+ with gr.Accordion(open=False, label="Advanced Options"):
248
+ negative_prompt = gr.Textbox(
249
+ label="Negative Prompt",
250
+ placeholder="low quality",
251
+ value="(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
252
+ )
253
+ num_steps = gr.Slider(
254
+ label="Number of sample steps",
255
+ minimum=1,
256
+ maximum=100,
257
+ step=1,
258
+ value=5 if enable_lcm_arg else 30,
259
+ )
260
+ guidance_scale = gr.Slider(
261
+ label="Guidance scale",
262
+ minimum=0.1,
263
+ maximum=20.0,
264
+ step=0.1,
265
+ value=0.0 if enable_lcm_arg else 5.0,
266
+ )
267
+ seed = gr.Slider(
268
+ label="Seed",
269
+ minimum=0,
270
+ maximum=MAX_SEED,
271
+ step=1,
272
+ value=42,
273
+ )
274
+ schedulers = [
275
+ "DEISMultistepScheduler",
276
+ "HeunDiscreteScheduler",
277
+ "EulerDiscreteScheduler",
278
+ "DPMSolverMultistepScheduler",
279
+ "DPMSolverMultistepScheduler-Karras",
280
+ "DPMSolverMultistepScheduler-Karras-SDE",
281
+ ]
282
+ scheduler = gr.Dropdown(
283
+ label="Schedulers",
284
+ choices=schedulers,
285
+ value="EulerDiscreteScheduler",
286
+ )
287
+ randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
288
+ enhance_face_region = gr.Checkbox(label="Enhance non-face region", value=True)
289
+
290
+ with gr.Column(scale=1):
291
+ gallery = gr.Image(label="Generated Images")
292
+ usage_tips = gr.Markdown(
293
+ label="InstantID Usage Tips", value=tips, visible=False
294
+ )
295
+
296
+ submit.click(
297
+ fn=remove_tips,
298
+ outputs=usage_tips,
299
+ ).then(
300
+ fn=randomize_seed_fn,
301
+ inputs=[seed, randomize_seed],
302
+ outputs=seed,
303
+ queue=False,
304
+ api_name=False,
305
+ ).then(
306
+ fn=generate_image,
307
+ inputs=[
308
+ face_file,
309
+ pose_file,
310
+ prompt,
311
+ negative_prompt,
312
+ style,
313
+ num_steps,
314
+ identitynet_strength_ratio,
315
+ adapter_strength_ratio,
316
+ pose_strength,
317
+ canny_strength,
318
+ depth_strength,
319
+ controlnet_selection,
320
+ guidance_scale,
321
+ seed,
322
+ scheduler,
323
+ enable_LCM,
324
+ enhance_face_region,
325
+ ],
326
+ outputs=[gallery, usage_tips],
327
+ )
328
+
329
+ enable_LCM.input(
330
+ fn=toggle_lcm_ui,
331
+ inputs=[enable_LCM],
332
+ outputs=[num_steps, guidance_scale],
333
+ queue=False,
334
+ )
335
+
336
+ gr.Examples(
337
+ examples=get_example(),
338
+ inputs=[face_file, pose_file, prompt, style, negative_prompt],
339
+ fn=run_for_examples,
340
+ outputs=[gallery, usage_tips],
341
+ cache_examples=True,
342
+ )
343
+
344
+ gr.Markdown(article)
345
+
346
+ demo.queue(api_open=False)
347
+ demo.launch()
examples/kaifu_resize.png ADDED

Git LFS Details

  • SHA256: b7302f0f7d0ff61be67bf13d172ad2393b6cb2bc985f048089f4e901145324d7
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
examples/musk_resize.jpeg ADDED

Git LFS Details

  • SHA256: 002e9a3b45b0a46c6d3c9daea7aac40d12e1e649a62e62d340796ab7254aacf9
  • Pointer size: 131 Bytes
  • Size of remote file: 361 kB
examples/poses/pose.jpg ADDED

Git LFS Details

  • SHA256: 47d536403e49af3312d21464db59bd571c304c54df9ec208feb4bb01c8674d53
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
examples/poses/pose2.jpg ADDED

Git LFS Details

  • SHA256: b8e12c756060e7459230eedf4b6076b7f68759c4d9ca4d75aaa7e4d3a94161ff
  • Pointer size: 130 Bytes
  • Size of remote file: 97.2 kB
examples/poses/pose3.jpg ADDED

Git LFS Details

  • SHA256: 26c968bf69ce536cf3fedb6d16308f98fdb77bae4cdfcccfe352d2f408e6e1fb
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
examples/poses/pose4.jpg ADDED

Git LFS Details

  • SHA256: b4246e9852ac73e395fbf535901ad743a59a6e98404d448f6c0bd590ebb317a8
  • Pointer size: 130 Bytes
  • Size of remote file: 84.1 kB
examples/sam_resize.png ADDED

Git LFS Details

  • SHA256: 1390d8a9a1be7b8f5388c0bc8483b2d5cca6c0f0adeb6eecd970a4413b1f1deb
  • Pointer size: 132 Bytes
  • Size of remote file: 2.36 MB
examples/schmidhuber_resize.png ADDED

Git LFS Details

  • SHA256: 51beaa72d1eb9f56118118fae8775bda818bcb56b03220f3cd39daa425f57a9a
  • Pointer size: 132 Bytes
  • Size of remote file: 3.23 MB
examples/yann-lecun_resize.jpg ADDED

Git LFS Details

  • SHA256: 2730103b6b9ebaf47b44ef9a9d7fbb722de7878a101af09f0b85f8dfadb4c8a4
  • Pointer size: 130 Bytes
  • Size of remote file: 30.6 kB
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
  novita_client==0.4.12
2
- gradio==3.50.2
 
1
  novita_client==0.4.12
2
+ gradio==4.15.0
style_template.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ style_list = [
2
+ {
3
+ "name": "(No style)",
4
+ "prompt": "{prompt}",
5
+ "negative_prompt": "",
6
+ },
7
+ {
8
+ "name": "Spring Festival",
9
+ "prompt": "Flat illustration, a Chinese {prompt}, ancient style, wearing a red cloth, smile face, white skin, clean background, fireworks blooming, red lanterns",
10
+ "negative_prompt": "photo, deformed, black and white, realism, disfigured, low contrast, realistic, cropped, worst quality, missing fingers, extra digit, jpeg artifacts, signature, multiple, (lowres, low quality, worst quality:1.2)",
11
+ },
12
+ {
13
+ "name": "Watercolor",
14
+ "prompt": "watercolor painting, {prompt}. vibrant, beautiful, painterly, detailed, textural, artistic",
15
+ "negative_prompt": "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, anime, photorealistic, 35mm film, deformed, glitch, low contrast, noisy",
16
+ },
17
+ {
18
+ "name": "Film Noir",
19
+ "prompt": "film noir style, ink sketch|vector, {prompt} highly detailed, sharp focus, ultra sharpness, monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic",
20
+ "negative_prompt": "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
21
+ },
22
+ {
23
+ "name": "Neon",
24
+ "prompt": "masterpiece painting, buildings in the backdrop, kaleidoscope, lilac orange blue cream fuchsia bright vivid gradient colors, the scene is cinematic, {prompt}, emotional realism, double exposure, watercolor ink pencil, graded wash, color layering, magic realism, figurative painting, intricate motifs, organic tracery, polished",
25
+ "negative_prompt": "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
26
+ },
27
+ {
28
+ "name": "Jungle",
29
+ "prompt": 'waist-up "{prompt} in a Jungle" by Syd Mead, tangerine cold color palette, muted colors, detailed, 8k,photo r3al,dripping paint,3d toon style,3d style,Movie Still',
30
+ "negative_prompt": "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
31
+ },
32
+ {
33
+ "name": "Mars",
34
+ "prompt": "{prompt}, Post-apocalyptic. Mars Colony, Scavengers roam the wastelands searching for valuable resources, rovers, bright morning sunlight shining, (detailed) (intricate) (8k) (HDR) (cinematic lighting) (sharp focus)",
35
+ "negative_prompt": "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
36
+ },
37
+ {
38
+ "name": "Vibrant Color",
39
+ "prompt": "vibrant colorful, ink sketch|vector|2d colors, at nightfall, sharp focus, {prompt}, highly detailed, sharp focus, the clouds,colorful,ultra sharpness",
40
+ "negative_prompt": "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
41
+ },
42
+ {
43
+ "name": "Snow",
44
+ "prompt": "cinema 4d render, {prompt}, high contrast, vibrant and saturated, sico style, surrounded by magical glow,floating ice shards, snow crystals, cold, windy background, frozen natural landscape in background cinematic atmosphere,highly detailed, sharp focus, intricate design, 3d, unreal engine, octane render, CG best quality, highres, photorealistic, dramatic lighting, artstation, concept art, cinematic, epic Steven Spielberg movie still, sharp focus, smoke, sparks, art by pascal blanche and greg rutkowski and repin, trending on artstation, hyperrealism painting, matte painting, 4k resolution",
45
+ "negative_prompt": "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
46
+ },
47
+ {
48
+ "name": "Line art",
49
+ "prompt": "line art drawing {prompt} . professional, sleek, modern, minimalist, graphic, line art, vector graphics",
50
+ "negative_prompt": "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",
51
+ },
52
+ ]
53
+
54
+ styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}