mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 04:11:15 -08:00
Fixed a math mistake.
This commit is contained in:
parent
3bd3a09160
commit
28a2b5b4aa
1 changed files with 1 additions and 1 deletions
|
|
@ -969,7 +969,7 @@ def get_gaussian_kernel(stddev_radius=1.0, max_radius=2):
|
|||
x = coordinate[0] ** 2.0 + coordinate[1] ** 2.0
|
||||
x = gaussian(x)
|
||||
x -= gauss_zero
|
||||
x /= gauss_kernel_scale
|
||||
x *= gauss_kernel_scale
|
||||
x = max(0.0, x)
|
||||
return x
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue