mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
No clip
This commit is contained in:
parent
ef1a2d6142
commit
6a215fd505
1 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ class SampleProcessor(object):
|
|||
img_bgr = imagelib.linear_color_transfer(img_bgr, ct_sample_bgr)
|
||||
|
||||
elif apply_ct == ColorTransferMode.RCT:
|
||||
img_bgr = imagelib.reinhard_color_transfer(img_bgr, ct_sample_bgr, clip=True, preserve_paper=True)
|
||||
img_bgr = imagelib.reinhard_color_transfer(img_bgr, ct_sample_bgr, clip=False, preserve_paper=True)
|
||||
|
||||
elif apply_ct == ColorTransferMode.RCT_MASKED:
|
||||
if ct_sample_mask is None:
|
||||
|
@ -243,7 +243,7 @@ class SampleProcessor(object):
|
|||
LandmarksProcessor.get_image_hull_mask(ct_sample_bgr.shape, ct_sample.landmarks)
|
||||
img_bgr = imagelib.reinhard_color_transfer(img_bgr,
|
||||
ct_sample_bgr,
|
||||
clip=True,
|
||||
clip=False,
|
||||
preserve_paper=True,
|
||||
target_mask=img_mask,
|
||||
source_mask=ct_sample_mask)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue