mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
disble all clipping/scaling
This commit is contained in:
parent
1d49825b0f
commit
d24cd21b0a
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ def reinhard_color_transfer(target, source, clip=False, preserve_paper=False, ta
|
||||||
# clip/scale the pixel intensities if they fall outside
|
# clip/scale the pixel intensities if they fall outside
|
||||||
# L*a*b* space (0 ≤ L ≤ 100, −127 ≤ a ≤ 127, −127 ≤ b ≤ 127)
|
# L*a*b* space (0 ≤ L ≤ 100, −127 ≤ a ≤ 127, −127 ≤ b ≤ 127)
|
||||||
# https://docs.opencv.org/3.3.0/de/d25/imgproc_color_conversions.html
|
# https://docs.opencv.org/3.3.0/de/d25/imgproc_color_conversions.html
|
||||||
l, a, b = _scale_array(l, a, b, clip=clip)
|
# l, a, b = _scale_array(l, a, b, clip=clip)
|
||||||
|
|
||||||
# merge the channels together and convert back to the RGB color
|
# merge the channels together and convert back to the RGB color
|
||||||
transfer = cv2.merge([l, a, b])
|
transfer = cv2.merge([l, a, b])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue