Araeynn commited on
Commit
e650109
1 Parent(s): 42df498

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -483,17 +483,16 @@ async def on_message(message):
483
 
484
  e = await message.reply(embed=embed)
485
  if imgp != "":
486
- # np = """lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature"""
487
- np = ""
488
  st = time.time()
489
  if imageModel == "Stable Diffusion 2-1":
490
  image, m = (await SD.text_to_image(imgp, negative_prompt=np), "Stable Diffusion 2-1")
491
  elif imageModel == "stable-diffusion-xl-base-1.0":
492
  image, m = (await SDXL.text_to_image(imgp, negative_prompt=np, num_inference_steps=8), "stable-diffusion-xl-base-1.0")
493
  elif imageModel == "sdxl-turbo":
494
- image, m = (await SDXLT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.0), "sdxl-turbo")
495
  elif imageModel == "sd-turbo":
496
- image, m = (await SDT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.0), "sd-turbo")
497
  elif imageModel == "Proteus v0.2":
498
  image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
499
  else:
@@ -507,7 +506,7 @@ async def on_message(message):
507
  )
508
  await e.edit(embed=embed, attachments=[file])
509
  gt = time.time()
510
- image, r = (await RF.image_to_image("image.png", num_inference_steps=1, prompt=imgp, negative_prompt=np), "stable-diffusion-xl-refiner-1.0")
511
  rt = time.time()
512
  embed.set_footer(
513
  text=
 
483
 
484
  e = await message.reply(embed=embed)
485
  if imgp != "":
486
+ np = """lowres, error, cropped, worst quality, low quality, ugly, duplicate, morbid, mutilated, out of frame, blurry, watermark, signature"""
 
487
  st = time.time()
488
  if imageModel == "Stable Diffusion 2-1":
489
  image, m = (await SD.text_to_image(imgp, negative_prompt=np), "Stable Diffusion 2-1")
490
  elif imageModel == "stable-diffusion-xl-base-1.0":
491
  image, m = (await SDXL.text_to_image(imgp, negative_prompt=np, num_inference_steps=8), "stable-diffusion-xl-base-1.0")
492
  elif imageModel == "sdxl-turbo":
493
+ image, m = (await SDXLT.text_to_image(imgp, negative_prompt=np, num_inference_steps=4, guidance_scale=0.0), "sdxl-turbo")
494
  elif imageModel == "sd-turbo":
495
+ image, m = (await SDT.text_to_image(imgp, negative_prompt=np, num_inference_steps=4, guidance_scale=0.0), "sd-turbo")
496
  elif imageModel == "Proteus v0.2":
497
  image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
498
  else:
 
506
  )
507
  await e.edit(embed=embed, attachments=[file])
508
  gt = time.time()
509
+ image, r = (await RF.image_to_image("image.png", num_inference_steps=8, prompt=imgp, negative_prompt=np), "stable-diffusion-xl-refiner-1.0")
510
  rt = time.time()
511
  embed.set_footer(
512
  text=