mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 13:09:56 -07:00
commit
0b5ceff405
1 changed files with 1 additions and 0 deletions
|
@ -373,6 +373,7 @@ def color_transfer(ct_mode, img_src, img_trg):
|
||||||
# imported from faceswap
|
# imported from faceswap
|
||||||
def color_augmentation(img, seed=None):
|
def color_augmentation(img, seed=None):
|
||||||
""" Color adjust RGB image """
|
""" Color adjust RGB image """
|
||||||
|
img = img.astype(np.float32)
|
||||||
face = img
|
face = img
|
||||||
face = np.clip(face*255.0, 0, 255).astype(np.uint8)
|
face = np.clip(face*255.0, 0, 255).astype(np.uint8)
|
||||||
face = random_clahe(face, seed)
|
face = random_clahe(face, seed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue