diff options
author | CodeHatchling <steve@codehatch.com> | 2023-12-03 21:20:20 +0000 |
---|---|---|
committer | CodeHatchling <steve@codehatch.com> | 2023-12-03 21:20:20 +0000 |
commit | 28a2b5b4aab43424733039c31d910e8b8dd507cd (patch) | |
tree | 7124c36aeaf372ab3798751a6e8443d1de111b86 | |
parent | 3bd3a091604a332de6ff249870dabd2a91215499 (diff) | |
download | stable-diffusion-webui-gfx803-28a2b5b4aab43424733039c31d910e8b8dd507cd.tar.gz stable-diffusion-webui-gfx803-28a2b5b4aab43424733039c31d910e8b8dd507cd.tar.bz2 stable-diffusion-webui-gfx803-28a2b5b4aab43424733039c31d910e8b8dd507cd.zip |
Fixed a math mistake.
-rw-r--r-- | modules/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py index 6648097e..94953498 100644 --- a/modules/images.py +++ b/modules/images.py @@ -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
|