Skip to content

Commit

Permalink
fix(api): fill gaussian blur with noise first
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 15, 2023
1 parent 4af1b8e commit e2d17e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/onnx_web/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ def noise_source_gaussian(source_image: Image, dims: Tuple[int, int], origin: Tu
'''
Gaussian blur, source image centered on white canvas.
'''
width, height = dims

noise = Image.new('RGB', (width, height), 'white')
noise = noise_source_uniform(source_image, dims, origin)
noise.paste(source_image, origin)

for i in range(rounds):
Expand Down

0 comments on commit e2d17e1

Please sign in to comment.