mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 14:24:40 -07:00
HOTFIX: fix image type before conversion
This commit is contained in:
parent
84827d8965
commit
1c7ef41f62
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ def seamless_clone(source, target, mask):
|
|||
|
||||
|
||||
def random_color_transform(image, seed=None):
|
||||
image = cv2.cvtColor(image, cv2.COLOR_BGR2LAB)
|
||||
image = cv2.cvtColor(image.astype(np.float32), cv2.COLOR_BGR2LAB)
|
||||
M = np.eye(3)
|
||||
M[1:, 1:] = special_ortho_group.rvs(2, 1, seed)
|
||||
image = image.dot(M)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue