mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-24 15:16:21 -07:00
-
This commit is contained in:
parent
62940aade1
commit
d4a72b49c6
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ class FANSegmentator(object):
|
||||||
input_image = input_image[np.newaxis,...]
|
input_image = input_image[np.newaxis,...]
|
||||||
|
|
||||||
result = np.clip ( self.model.predict( [input_image] ), 0, 1.0 )
|
result = np.clip ( self.model.predict( [input_image] ), 0, 1.0 )
|
||||||
|
result[result < 0.1] = 0 #get rid of noise
|
||||||
|
|
||||||
if input_shape_len == 3:
|
if input_shape_len == 3:
|
||||||
result = result[0]
|
result = result[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue