Spaces:
Paused
Paused
woods-today
commited on
Commit
•
c530969
1
Parent(s):
ff17bc0
Workin on it
Browse files- routers/training.py +2 -2
routers/training.py
CHANGED
@@ -56,8 +56,8 @@ async def performAction(actionBody: ActionBody):
|
|
56 |
init_image = init_image.resize((actionBody.resizeW, actionBody.resizeH))
|
57 |
|
58 |
response = requests.get(actionBody.maskUrl)
|
59 |
-
|
60 |
-
|
61 |
|
62 |
|
63 |
images = pipe(prompt=actionBody.prompt, image=init_image, mask_image=mask_image, strength=actionBody.strength, guidance_scale=actionBody.guidance_scale).images
|
|
|
56 |
init_image = init_image.resize((actionBody.resizeW, actionBody.resizeH))
|
57 |
|
58 |
response = requests.get(actionBody.maskUrl)
|
59 |
+
mask_image = Image.open(BytesIO(response.content)).convert("RGB")
|
60 |
+
mask_image = mask_image.resize((actionBody.resizeW, actionBody.resizeH))
|
61 |
|
62 |
|
63 |
images = pipe(prompt=actionBody.prompt, image=init_image, mask_image=mask_image, strength=actionBody.strength, guidance_scale=actionBody.guidance_scale).images
|