mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 21:42:08 -07:00
Fix bug in ConverterMasked when overexposed pixels appear sometimes
This commit is contained in:
parent
faa8cebc98
commit
1e28ae24b1
1 changed files with 4 additions and 2 deletions
|
@ -256,6 +256,8 @@ class ConverterMasked(ConverterBase):
|
||||||
if self.alpha:
|
if self.alpha:
|
||||||
out_img = np.concatenate ( [out_img, np.expand_dims (img_mask_blurry_aaa[:,:,0],-1)], -1 )
|
out_img = np.concatenate ( [out_img, np.expand_dims (img_mask_blurry_aaa[:,:,0],-1)], -1 )
|
||||||
|
|
||||||
|
out_img = np.clip (out_img, 0.0, 1.0 )
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
debugs += [out_img.copy()]
|
debugs += [out_img.copy()]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue