Skip to content

Commit

Permalink
fix(api): run blend pipeline in RGB mode (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 17, 2023
1 parent db8a7a2 commit 9e73470
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 @@ -502,7 +502,7 @@ def blend(server: ServerContext, pool: DevicePoolExecutor):
if source_file is None:
logger.warning("missing source %s", i)
else:
source = Image.open(BytesIO(source_file.read())).convert("RGBA")
source = Image.open(BytesIO(source_file.read())).convert("RGB")
sources.append(source)

device, params, size = pipeline_from_request(server)
Expand Down

0 comments on commit 9e73470

Please sign in to comment.