mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
fix kernel size
This commit is contained in:
parent
f6f4d9e446
commit
6d8abe34c2
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ class SampleProcessor(object):
|
||||||
kernel_size = 2.9 * blur_sigma # 97% of weight
|
kernel_size = 2.9 * blur_sigma # 97% of weight
|
||||||
else:
|
else:
|
||||||
kernel_size = 2.6 * blur_sigma # 95% of weight
|
kernel_size = 2.6 * blur_sigma # 95% of weight
|
||||||
|
kernel_size = int(kernel_size)
|
||||||
|
|
||||||
img = cv2.GaussianBlur(img, (kernel_size, kernel_size), blur_sigma)
|
img = cv2.GaussianBlur(img, (kernel_size, kernel_size), blur_sigma)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue