mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 14:24:40 -07:00
as uint8
This commit is contained in:
parent
e1eebe900b
commit
22e50acb5d
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ def reinhard_color_transfer(target, source, clip=False, preserve_paper=False, ta
|
|||
|
||||
# merge the channels together and convert back to the RGB color
|
||||
transfer = cv2.merge([l, a, b])
|
||||
transfer = cv2.cvtColor(transfer, cv2.COLOR_LAB2BGR)
|
||||
transfer = cv2.cvtColor(transfer.astype("uint8"), cv2.COLOR_LAB2BGR)
|
||||
np.clip(transfer, 0, 1, out=transfer)
|
||||
|
||||
# return the color transferred image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue