Spaces:
Paused
Paused
woods-today
commited on
Commit
•
0dfd0db
1
Parent(s):
c530969
Workin on it
Browse files- routers/training.py +2 -1
routers/training.py
CHANGED
@@ -60,7 +60,8 @@ async def performAction(actionBody: ActionBody):
|
|
60 |
mask_image = mask_image.resize((actionBody.resizeW, actionBody.resizeH))
|
61 |
|
62 |
|
63 |
-
images = pipe(prompt=actionBody.prompt, image=init_image,
|
|
|
64 |
print(images)
|
65 |
buffered = BytesIO()
|
66 |
images[0].save(buffered, format="JPEG")
|
|
|
60 |
mask_image = mask_image.resize((actionBody.resizeW, actionBody.resizeH))
|
61 |
|
62 |
|
63 |
+
# images = pipe(prompt=actionBody.prompt, image=init_image, strength=actionBody.strength, guidance_scale=actionBody.guidance_scale).images
|
64 |
+
images = pipe(prompt=actionBody.prompt, image=init_image, mask_image=mask_image).images
|
65 |
print(images)
|
66 |
buffered = BytesIO()
|
67 |
images[0].save(buffered, format="JPEG")
|