DGSpitzer commited on
Commit
77963cd
1 Parent(s): 1171e3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +118 -57
app.py CHANGED
@@ -38,6 +38,7 @@ class Model:
38
 
39
  models = [
40
  Model("Cyberpunk Anime Diffusion", "DGSpitzer/Cyberpunk-Anime-Diffusion", "dgs illustration style "),
 
41
  Model("Guan Yu Diffusion", "DGSpitzer/Guan-Yu-Diffusion", "")
42
  ]
43
 
@@ -51,23 +52,51 @@ current_model = models[1] if is_colab else models[0]
51
  current_model_path = current_model.path
52
 
53
  if is_colab:
54
- pipe = StableDiffusionPipeline.from_pretrained(
55
  current_model.path,
56
- torch_dtype=torch.float16,
57
  scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler"),
58
  safety_checker=lambda images, clip_input: (images, False)
59
  )
 
 
 
 
 
 
 
 
 
 
60
 
61
  else:
62
  eulera = EulerAncestralDiscreteScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", num_train_timesteps=1000)
63
- pipe = StableDiffusionPipeline.from_pretrained(
64
- current_model.path,
65
- torch_dtype=torch.float16,
66
  scheduler=eulera
67
  )
68
-
69
- if torch.cuda.is_available():
70
- pipe = pipe.to("cuda")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  #pipe.enable_xformers_memory_efficient_attention()
72
 
73
  device = "GPU 🔥" if torch.cuda.is_available() else "CPU 🥶"
@@ -101,7 +130,7 @@ def inference(model_name, prompt, neg_prompt, guidance, steps, width=512, height
101
  model_path = current_model.path
102
 
103
  generator = torch.Generator('cuda').manual_seed(seed) if seed != 0 else None
104
-
105
  try:
106
  if img is not None:
107
  return img_to_img(model_path, prompt, neg_prompt, img, strength, guidance, steps, width, height, n_images, generator), None, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
@@ -120,43 +149,64 @@ def txt_to_img(model_path, prompt, neg_prompt, guidance, steps, width, height, n
120
  print(f"{datetime.datetime.now()} txt_to_img, model: {current_model.name}")
121
 
122
  global last_mode
123
- global pipe
 
 
124
  global current_model_path
125
  if model_path != current_model_path or last_mode != "txt2img":
126
  current_model_path = model_path
127
 
128
  if is_colab or current_model == custom_model:
129
- pipe = StableDiffusionPipeline.from_pretrained(
130
  current_model_path,
131
- torch_dtype=torch.float16,
132
  scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler"),
133
  safety_checker=lambda images, clip_input: (images, False)
134
  )
135
- else:
136
- eulera = EulerAncestralDiscreteScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", num_train_timesteps=1000)
137
- pipe = StableDiffusionPipeline.from_pretrained(
138
- current_model_path,
139
- torch_dtype=torch.float16,
140
- scheduler=eulera
141
- )
142
- # pipe = pipe.to("cpu")
143
- # pipe = current_model.pipe_t2i
144
-
145
- if torch.cuda.is_available():
146
- pipe = pipe.to("cuda")
147
- # pipe.enable_xformers_memory_efficient_attention()
148
  last_mode = "txt2img"
149
 
150
  prompt = current_model.prefix + prompt
151
- result = pipe(
152
- prompt,
153
- negative_prompt = neg_prompt,
154
- num_images_per_prompt=n_images,
155
- num_inference_steps = int(steps),
156
- guidance_scale = guidance,
157
- width = width,
158
- height = height,
159
- generator = generator)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
 
161
  return replace_nsfw_images(result)
162
 
@@ -165,36 +215,37 @@ def img_to_img(model_path, prompt, neg_prompt, img, strength, guidance, steps, w
165
  print(f"{datetime.datetime.now()} img_to_img, model: {model_path}")
166
 
167
  global last_mode
168
- global pipe
 
169
  global current_model_path
170
  if model_path != current_model_path or last_mode != "img2img":
171
  current_model_path = model_path
172
 
173
  if is_colab or current_model == custom_model:
174
- pipe = StableDiffusionImg2ImgPipeline.from_pretrained(
175
  current_model_path,
176
- torch_dtype=torch.float16,
177
  scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler"),
178
  safety_checker=lambda images, clip_input: (images, False)
179
  )
180
  else:
181
- pipe = StableDiffusionImg2ImgPipeline.from_pretrained(
182
  current_model_path,
183
- torch_dtype=torch.float16,
184
  scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler")
185
  )
186
  # pipe = pipe.to("cpu")
187
  # pipe = current_model.pipe_i2i
188
 
189
  if torch.cuda.is_available():
190
- pipe = pipe.to("cuda")
191
- pipe.enable_xformers_memory_efficient_attention()
192
  last_mode = "img2img"
193
 
194
  prompt = current_model.prefix + prompt
195
  ratio = min(height / img.height, width / img.width)
196
  img = img.resize((int(img.width * ratio), int(img.height * ratio)), Image.LANCZOS)
197
- result = pipe(
198
  prompt,
199
  negative_prompt = neg_prompt,
200
  num_images_per_prompt=n_images,
@@ -212,10 +263,11 @@ def replace_nsfw_images(results):
212
  #Only return 1 image for community sharing
213
  if is_colab:
214
  return results.images[0]
215
-
216
  for i in range(len(results.images)):
217
  if results.nsfw_content_detected[i]:
218
  results.images[i] = Image.open("nsfw_placeholder.jpg")
 
219
  return results.images[0]
220
 
221
 
@@ -269,7 +321,7 @@ with gr.Blocks(css=css) as demo:
269
  </h1>
270
  </div>
271
  <p style="margin-bottom: 10px; font-size: 94%">
272
- Online Demo for <a href="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion" target="_blank">Cyberpunk Anime Diffusion</a> & <a href="https://huggingface.co/DGSpitzer/Guan-Yu-Diffusion" target="_blank">Guan Yu Diffusion</a>. Based of the projects by anzorq <a href="https://twitter.com/hahahahohohe"></a> and fffiloni <a href="https://twitter.com/fffiloni"></a>
273
  </p>
274
  </div>
275
  <div
@@ -342,19 +394,28 @@ with gr.Blocks(css=css) as demo:
342
  [models[0].name, "city landscape with fancy car, racing on the road, gopro, intricate details, 4k, cyberpunk", "out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 20, 704, 704],
343
  [models[0].name, "portrait of liu yifei girl, soldier working in a cyberpunk city, cleavage, intricate, 8k, highly detailed, digital painting, intense, sharp focus", "out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 20, 704, 704],
344
  [models[0].name, "portrait of a muscular beard male in dgs illustration style, half-body, holding robot arms, strong chest", "out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 20, 512, 640],
345
- [models[1].name, "Portrait of guanyu walking in ancient battlefield, close up shot", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
346
- [models[1].name, "Portrait of a man holding very cute panda plushie, Guanyu", "", 7, 30, 576, 576],
347
- [models[1].name, "taking selfie on ancient battlefield of China, guanyu, gopro, sharp focus, old scratched photo, three kingdoms warriors everywhere, masterpiece", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
348
- [models[1].name, "superman, portrait of fancy superhero guanyu, golden spiderman, mech, robot, high tech, shining core, intricate details, 4k", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
349
- [models[1].name, "batman, portrait of fancy superhero guanyu, golden spiderman, mech, robot, high tech, shining core, intricate details, 4k", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
350
- [models[1].name, "a huge gundam mech fighting against guanyu", "blurry, out of focus", 7, 30, 576, 576],
351
- [models[1].name, "a cute nendoroid figure toy guanyu", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
352
- [models[1].name, "a cute funko figure toy guanyu", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
353
- [models[1].name, "a lego guanyu", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
354
- [models[1].name, "a gorgeous wuxia girl standing in the palace", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
355
- [models[1].name, "a handsome wuxia man", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
356
- [models[1].name, "a wuxia girl diving underwater, surrounded by a shark", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 20, 576, 576],
357
- [models[1].name, "a cute nendoroid wuxia figure toy", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
 
 
 
 
 
 
 
 
 
358
  ], [model_name, prompt, neg_prompt, guidance, steps, width_input, height_input], outputs=image_out, fn=inference_example, cache_examples=torch.cuda.is_available())
359
  gr.Markdown('''
360
  Models and Space by [@DGSpitzer](https://www.youtube.com/channel/UCzzsYBF4qwtMwJaPJZ5SuPg)❤️ [@大谷的游戏创作小屋](https://space.bilibili.com/176003)
 
38
 
39
  models = [
40
  Model("Cyberpunk Anime Diffusion", "DGSpitzer/Cyberpunk-Anime-Diffusion", "dgs illustration style "),
41
+ Model("DGSpitzer Art Diffusion", "DGSpitzer/DGSpitzer-Art-Diffusion", "dgspitzer painting,"),
42
  Model("Guan Yu Diffusion", "DGSpitzer/Guan-Yu-Diffusion", "")
43
  ]
44
 
 
52
  current_model_path = current_model.path
53
 
54
  if is_colab:
55
+ pipe0 = StableDiffusionPipeline.from_pretrained(
56
  current_model.path,
57
+ torch_dtype=torchfloat,
58
  scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler"),
59
  safety_checker=lambda images, clip_input: (images, False)
60
  )
61
+
62
+ if torch.cuda.is_available():
63
+ pipe0 = pipe0.to("cuda")
64
+
65
+ elif torch.cuda.is_available() == False:
66
+ pipe0 = StableDiffusionPipeline.from_pretrained(
67
+ current_model.path,
68
+ torch_dtype=torchfloat,
69
+ scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler")
70
+ )
71
 
72
  else:
73
  eulera = EulerAncestralDiscreteScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", num_train_timesteps=1000)
74
+ pipe0 = StableDiffusionPipeline.from_pretrained(
75
+ models[0].path,
76
+ torch_dtype=torchfloat,
77
  scheduler=eulera
78
  )
79
+ pipe1 = StableDiffusionPipeline.from_pretrained(
80
+ models[1].path,
81
+ torch_dtype=torchfloat,
82
+ scheduler=eulera,
83
+ use_auth_token=os.environ.get("HF")
84
+ )
85
+ # pipe1 = StableDiffusionPipeline.from_pretrained(
86
+ # models[1].path,
87
+ # torch_dtype=torchfloat,
88
+ # scheduler=eulera
89
+ # )
90
+ pipe2 = StableDiffusionPipeline.from_pretrained(
91
+ models[2].path,
92
+ torch_dtype=torchfloat,
93
+ scheduler=eulera
94
+ )
95
+ if torch.cuda.is_available():
96
+ pipe0 = pipe0.to("cuda")
97
+ pipe1 = pipe1.to("cuda")
98
+ pipe2 = pipe2.to("cuda")
99
+
100
  #pipe.enable_xformers_memory_efficient_attention()
101
 
102
  device = "GPU 🔥" if torch.cuda.is_available() else "CPU 🥶"
 
130
  model_path = current_model.path
131
 
132
  generator = torch.Generator('cuda').manual_seed(seed) if seed != 0 else None
133
+
134
  try:
135
  if img is not None:
136
  return img_to_img(model_path, prompt, neg_prompt, img, strength, guidance, steps, width, height, n_images, generator), None, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
 
149
  print(f"{datetime.datetime.now()} txt_to_img, model: {current_model.name}")
150
 
151
  global last_mode
152
+ global pipe0
153
+ global pipe1
154
+ global pipe2
155
  global current_model_path
156
  if model_path != current_model_path or last_mode != "txt2img":
157
  current_model_path = model_path
158
 
159
  if is_colab or current_model == custom_model:
160
+ pipe0 = StableDiffusionPipeline.from_pretrained(
161
  current_model_path,
162
+ torch_dtype=torchfloat,
163
  scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler"),
164
  safety_checker=lambda images, clip_input: (images, False)
165
  )
166
+ if torch.cuda.is_available():
167
+ pipe0 = pipe0.to("cuda")
168
+ # pipe.enable_xformers_memory_efficient_attention()
169
+ elif torch.cuda.is_available() == False:
170
+ pipe0 = StableDiffusionPipeline.from_pretrained(
171
+ current_model_path,
172
+ torch_dtype=torchfloat,
173
+ scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler")
174
+ )
 
 
 
 
175
  last_mode = "txt2img"
176
 
177
  prompt = current_model.prefix + prompt
178
+ if current_model == models[0] or is_colab or torch.cuda.is_available() == False:
179
+ result = pipe0(
180
+ prompt,
181
+ negative_prompt = neg_prompt,
182
+ num_images_per_prompt=n_images,
183
+ num_inference_steps = int(steps),
184
+ guidance_scale = guidance,
185
+ width = width,
186
+ height = height,
187
+ generator = generator)
188
+ elif current_model == models[1]:
189
+ result = pipe1(
190
+ prompt,
191
+ negative_prompt = neg_prompt,
192
+ num_images_per_prompt=n_images,
193
+ num_inference_steps = int(steps),
194
+ guidance_scale = guidance,
195
+ width = width,
196
+ height = height,
197
+ generator = generator)
198
+ elif current_model == models[2]:
199
+ result = pipe2(
200
+ prompt,
201
+ negative_prompt = neg_prompt,
202
+ num_images_per_prompt=n_images,
203
+ num_inference_steps = int(steps),
204
+ guidance_scale = guidance,
205
+ width = width,
206
+ height = height,
207
+ generator = generator)
208
+
209
+ print("Job done! Filtering nsfw content")
210
 
211
  return replace_nsfw_images(result)
212
 
 
215
  print(f"{datetime.datetime.now()} img_to_img, model: {model_path}")
216
 
217
  global last_mode
218
+ global pipe0
219
+ global pipe1
220
  global current_model_path
221
  if model_path != current_model_path or last_mode != "img2img":
222
  current_model_path = model_path
223
 
224
  if is_colab or current_model == custom_model:
225
+ pipe0 = StableDiffusionImg2ImgPipeline.from_pretrained(
226
  current_model_path,
227
+ torch_dtype=torchfloat,
228
  scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler"),
229
  safety_checker=lambda images, clip_input: (images, False)
230
  )
231
  else:
232
+ pipe0 = StableDiffusionImg2ImgPipeline.from_pretrained(
233
  current_model_path,
234
+ torch_dtype=torchfloat,
235
  scheduler=DPMSolverMultistepScheduler.from_pretrained(current_model.path, subfolder="scheduler")
236
  )
237
  # pipe = pipe.to("cpu")
238
  # pipe = current_model.pipe_i2i
239
 
240
  if torch.cuda.is_available():
241
+ pipe0 = pipe0.to("cuda")
242
+ pipe0.enable_xformers_memory_efficient_attention()
243
  last_mode = "img2img"
244
 
245
  prompt = current_model.prefix + prompt
246
  ratio = min(height / img.height, width / img.width)
247
  img = img.resize((int(img.width * ratio), int(img.height * ratio)), Image.LANCZOS)
248
+ result = pipe0(
249
  prompt,
250
  negative_prompt = neg_prompt,
251
  num_images_per_prompt=n_images,
 
263
  #Only return 1 image for community sharing
264
  if is_colab:
265
  return results.images[0]
266
+
267
  for i in range(len(results.images)):
268
  if results.nsfw_content_detected[i]:
269
  results.images[i] = Image.open("nsfw_placeholder.jpg")
270
+
271
  return results.images[0]
272
 
273
 
 
321
  </h1>
322
  </div>
323
  <p style="margin-bottom: 10px; font-size: 94%">
324
+ Online Demo for <a href="https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion" target="_blank">Cyberpunk Anime Diffusion</a> & <a href="https://huggingface.co/DGSpitzer/DGSpitzer-Art-Diffusion" target="_blank">DGSpitzer Art Diffusion</a> & <a href="https://huggingface.co/DGSpitzer/Guan-Yu-Diffusion" target="_blank">Guan Yu Diffusion</a>. Based of the projects by anzorq <a href="https://twitter.com/hahahahohohe"></a> and fffiloni <a href="https://twitter.com/fffiloni"></a>
325
  </p>
326
  </div>
327
  <div
 
394
  [models[0].name, "city landscape with fancy car, racing on the road, gopro, intricate details, 4k, cyberpunk", "out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 20, 704, 704],
395
  [models[0].name, "portrait of liu yifei girl, soldier working in a cyberpunk city, cleavage, intricate, 8k, highly detailed, digital painting, intense, sharp focus", "out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 20, 704, 704],
396
  [models[0].name, "portrait of a muscular beard male in dgs illustration style, half-body, holding robot arms, strong chest", "out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 20, 512, 640],
397
+ [models[1].name, " portrait of a girl, draw photorealistic painting full body portrait of stunningly attractive female soldier working, cleavage, perfect face, dark ponytail curvy hair, intricate, 8k, highly detailed, shy, digital painting, intense, sharp focus", "NSFW, USA flag, 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, bad feet", 7, 30, 576, 576],
398
+ [models[1].name, "portrait of a girl, photorealistic painting paladin priest working in a magical tavern, cleavage, perfect face, curvy hair, intricate, 8k, highly detailed, intense, sharp focus, Anime, outline", "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, bad feet", 7, 30, 576, 576],
399
+ [models[1].name, "a beautiful mech girl, paining style, 4k, photorealistic", "saturation", 7, 30, 576, 576],
400
+ [models[1].name, "outline anime portrait of a beautiful martial art girl", "saturation, purple, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
401
+ [models[1].name, "sketch muscular man on ancient battlefield of China, sharp focus, old scratched photo, three kingdoms warriors everywhere, masterpiece", "cat ear, body out of frame, deformed, blurry, bad anatomy, ugly, disfigured, poorly drawn face, mutation, mutated, extra limbs, watermark", 7, 30, 576, 576],
402
+ [models[1].name, "a mech robot", "purple", 7, 30, 576, 576],
403
+ [models[1].name, "portrait of a beautiful very young teen cowboy girl who embodies the rugged and independent spirit of the Old West. She should be strong-willed and confident, with a sharp sense of justice and a heart of gold. Her style should be a blend of traditional Western fashion and modern flair, with a touch of glamour and femininity. Whether she's taming wild horses, fighting off bandits, or just enjoying the sunset on the prairie, this cowboy girl is a force to be reckoned with and a sight to behold.", "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, bad feet", 7, 30, 576, 576],
404
+ [models[1].name, "a muscular man from space", "blurry, out of focus", 7, 30, 576, 576],
405
+ [models[1].name, "landscape of a cyberpunk soldier man in the battlefield, dark light, far away", "blurry, out of focus", 7, 30, 704, 576],
406
+ [models[2].name, "Portrait of guanyu walking in ancient battlefield, close up shot", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
407
+ [models[2].name, "Portrait of a man holding very cute panda plushie, Guanyu", "", 7, 30, 576, 576],
408
+ [models[2].name, "taking selfie on ancient battlefield of China, guanyu, gopro, sharp focus, old scratched photo, three kingdoms warriors everywhere, masterpiece", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
409
+ [models[2].name, "superman, portrait of fancy superhero guanyu, golden spiderman, mech, robot, high tech, shining core, intricate details, 4k", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
410
+ [models[2].name, "batman, portrait of fancy superhero guanyu, golden spiderman, mech, robot, high tech, shining core, intricate details, 4k", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
411
+ [models[2].name, "a huge gundam mech fighting against guanyu", "blurry, out of focus", 7, 30, 576, 576],
412
+ [models[2].name, "a cute nendoroid figure toy guanyu", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
413
+ [models[2].name, "a cute funko figure toy guanyu", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
414
+ [models[2].name, "a lego guanyu", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
415
+ [models[2].name, "a gorgeous wuxia girl standing in the palace", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
416
+ [models[2].name, "a handsome wuxia man", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
417
+ [models[2].name, "a wuxia girl diving underwater, surrounded by a shark", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 20, 576, 576],
418
+ [models[2].name, "a cute nendoroid wuxia figure toy", "blurry, out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers", 7, 30, 576, 576],
419
  ], [model_name, prompt, neg_prompt, guidance, steps, width_input, height_input], outputs=image_out, fn=inference_example, cache_examples=torch.cuda.is_available())
420
  gr.Markdown('''
421
  Models and Space by [@DGSpitzer](https://www.youtube.com/channel/UCzzsYBF4qwtMwJaPJZ5SuPg)❤️ [@大谷的游戏创作小屋](https://space.bilibili.com/176003)