mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 05:22:06 -07:00
fix
This commit is contained in:
parent
b572b8f4d4
commit
00dce38187
4 changed files with 4 additions and 4 deletions
|
@ -122,7 +122,7 @@ class Model(ModelBase):
|
|||
|
||||
def predictor_func (self, face=None, dummy_predict=False):
|
||||
if dummy_predict:
|
||||
self.AE_convert ([ np.zeros ( (1, 64, 64, 3) ), dtype=np.float32 ) ])
|
||||
self.src_view ([ np.zeros ( (1, 64, 64, 3), dtype=np.float32 ) ])
|
||||
else:
|
||||
x, mx = self.src_view ( [ face[np.newaxis,...] ] )
|
||||
return x[0], mx[0][...,0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue