Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -456,9 +456,9 @@ async def on_message(message):
|
|
456 |
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"""
|
457 |
st = time.time()
|
458 |
# image, m = (await SD.text_to_image(imgp, negative_prompt=np, guidance), "Stable Diffusion 2-1")
|
459 |
-
|
460 |
# image, m = (await SDXLT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.0), "sdxl-turbo")
|
461 |
-
image, m = (await SDT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.
|
462 |
# image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
|
463 |
image.save("image.png")
|
464 |
file = discord.File("image.png", filename="image.png", description=imgp)
|
@@ -469,7 +469,7 @@ async def on_message(message):
|
|
469 |
)
|
470 |
await e.edit(embed=embed, attachments=[file])
|
471 |
gt = time.time()
|
472 |
-
image, r = (await RF.image_to_image("image.png", num_inference_steps=
|
473 |
rt = time.time()
|
474 |
embed.set_footer(
|
475 |
text=
|
|
|
456 |
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"""
|
457 |
st = time.time()
|
458 |
# image, m = (await SD.text_to_image(imgp, negative_prompt=np, guidance), "Stable Diffusion 2-1")
|
459 |
+
image, m = (await SDXL.text_to_image(imgp, negative_prompt=np, num_inference_steps=8), "stable-diffusion-xl-base-1.0")
|
460 |
# image, m = (await SDXLT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.0), "sdxl-turbo")
|
461 |
+
# image, m = (await SDT.text_to_image(imgp, negative_prompt=np, num_inference_steps=1, guidance_scale=0.0), "sd-turbo")
|
462 |
# image, m = (await PT.text_to_image(imgp, negative_prompt=np), "Proteus v0.2")
|
463 |
image.save("image.png")
|
464 |
file = discord.File("image.png", filename="image.png", description=imgp)
|
|
|
469 |
)
|
470 |
await e.edit(embed=embed, attachments=[file])
|
471 |
gt = time.time()
|
472 |
+
image, r = (await RF.image_to_image("image.png", num_inference_steps=1, prompt=imgp, negative_prompt=np), "stable-diffusion-xl-refiner-1.0")
|
473 |
rt = time.time()
|
474 |
embed.set_footer(
|
475 |
text=
|