1
0
Fork 0

fix(api): match inpaint source and mask formats

This commit is contained in:
Sean Sube 2023-11-26 10:38:12 -06:00
parent 93e3125e28
commit 7ca5dc12a4
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ def inpaint(server: ServerContext, pool: DevicePoolExecutor):
if mask_file is None:
return error_reply("mask image is required")
source = Image.open(BytesIO(source_file.read())).convert("RGB")
source = Image.open(BytesIO(source_file.read())).convert("RGBA")
size = Size(source.width, source.height)
mask_top_layer = Image.open(BytesIO(mask_file.read())).convert("RGBA")