mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 04:59:27 -07:00
remove some commented-out code
This commit is contained in:
parent
4a3d1d971e
commit
3855adb1bd
1 changed files with 0 additions and 3 deletions
|
@ -229,16 +229,13 @@ class SampleProcessor(object):
|
|||
if noise_type == 'gaussian':
|
||||
noise = np.random.normal(scale=noise_scale, size=img.shape)
|
||||
img += noise / 255.0
|
||||
# pass
|
||||
elif noise_type == 'laplace':
|
||||
noise = np.random.laplace(scale=noise_scale, size=img.shape)
|
||||
img += noise / 255.0
|
||||
# pass
|
||||
elif noise_type == 'poisson':
|
||||
noise_lam = (15 * np.random.random() + 15)
|
||||
noise = np.random.poisson(lam=noise_lam, size=img.shape)
|
||||
img += noise / 255.0
|
||||
# pass
|
||||
|
||||
img = imagelib.warp_by_params (params_per_resolution[resolution], img, warp, transform, can_flip=True, border_replicate=border_replicate)
|
||||
img = np.clip(img.astype(np.float32), 0, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue