woods-today commited on
Commit
ff17bc0
1 Parent(s): e5727cb

Workin on it

Browse files
Files changed (1) hide show
  1. routers/training.py +1 -1
routers/training.py CHANGED
@@ -60,7 +60,7 @@ async def performAction(actionBody: ActionBody):
60
  init_image = init_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
  print(images)
65
  buffered = BytesIO()
66
  images[0].save(buffered, format="JPEG")
 
60
  init_image = init_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
64
  print(images)
65
  buffered = BytesIO()
66
  images[0].save(buffered, format="JPEG")