mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
cleaning
This commit is contained in:
parent
d8c1e2e58b
commit
d003366033
1 changed files with 0 additions and 6 deletions
|
@ -223,12 +223,6 @@ class SampleProcessor(object):
|
|||
|
||||
img_bgr = imagelib.linear_color_transfer (img_bgr, ct_sample_bgr_resized)
|
||||
img_bgr = np.clip( img_bgr, 0.0, 1.0)
|
||||
|
||||
# img_bgr = imagelib.reinhard_color_transfer ( np.clip( (img_bgr*255) .astype(np.uint8), 0, 255),
|
||||
# np.clip( (ct_sample_bgr_resized*255).astype(np.uint8), 0, 255) )
|
||||
# #source_mask=ct_sample_mask_resized, target_mask=img_mask)
|
||||
|
||||
# img_bgr = np.clip( img_bgr.astype(np.float32) / 255.0, 0.0, 1.0)
|
||||
|
||||
if normalize_std_dev:
|
||||
img_bgr = (img_bgr - img_bgr.mean( (0,1)) ) / img_bgr.std( (0,1) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue