Skip to content

Commit

Permalink
fix(api): match inpaint source and mask formats
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 26, 2023
1 parent 93e3125 commit 7ca5dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7ca5dc1

Please sign in to comment.