Skip to content

Commit

Permalink
fix(api): convert mask before blending source
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 15, 2023
1 parent 081a96d commit f142418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ def expand_image(

full_mask = mask_filter(mask_image, dims, origin)
full_noise = noise_source(source_image, dims, origin)
full_source = Image.composite(full_source, full_noise, full_mask)
full_source = Image.composite(full_source, full_noise, full_mask.convert('L'))

return (full_source, full_mask, full_noise, (full_width, full_height))

0 comments on commit f142418

Please sign in to comment.