mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 04:59:27 -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'])
|
||||
|
||||
if blur_type == 'motion':
|
||||
# blur_k = np.random.randint(10, 20)
|
||||
# blur_angle = 360 * np.random.random()
|
||||
# img = LinearMotionBlur(img, blur_k, blur_angle)
|
||||
pass
|
||||
blur_k = np.random.randint(10, 20)
|
||||
blur_angle = 360 * np.random.random()
|
||||
img = LinearMotionBlur(img, blur_k, blur_angle)
|
||||
elif blur_type == 'gaussian':
|
||||
blur_sigma = 5 * np.random.random() + 3
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue