mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 22:34:25 -07:00
only rotate over A*B*
This commit is contained in:
parent
0eaeb3e689
commit
d94d65c8ea
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ def seamless_clone(source, target, mask):
|
|||
|
||||
def random_color_transform(image, seed=None):
|
||||
image = cv2.cvtColor(image, cv2.COLOR_BGR2LAB)
|
||||
M = special_ortho_group.rvs(3, 1, seed)
|
||||
M = np.eye(3)
|
||||
M[1:, 1:] = special_ortho_group.rvs(2, 1, seed)
|
||||
image = image.dot(M)
|
||||
l, a, b = cv2.split(image)
|
||||
l = np.clip(l, 0, 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue