fix(api): match inpaint source and mask formats
This commit is contained in:
parent
93e3125e28
commit
7ca5dc12a4
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue