mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 13:09:56 -07:00
enable motion blur
This commit is contained in:
parent
f8263d2914
commit
22a5e68f56
1 changed files with 3 additions and 4 deletions
|
@ -243,10 +243,9 @@ class SampleProcessor(object):
|
||||||
blur_type = np.random.choice(['motion', 'gaussian'])
|
blur_type = np.random.choice(['motion', 'gaussian'])
|
||||||
|
|
||||||
if blur_type == 'motion':
|
if blur_type == 'motion':
|
||||||
# blur_k = np.random.randint(10, 20)
|
blur_k = np.random.randint(10, 20)
|
||||||
# blur_angle = 360 * np.random.random()
|
blur_angle = 360 * np.random.random()
|
||||||
# img = LinearMotionBlur(img, blur_k, blur_angle)
|
img = LinearMotionBlur(img, blur_k, blur_angle)
|
||||||
pass
|
|
||||||
elif blur_type == 'gaussian':
|
elif blur_type == 'gaussian':
|
||||||
blur_sigma = 5 * np.random.random() + 3
|
blur_sigma = 5 * np.random.random() + 3
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue