mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
debug predictor
This commit is contained in:
parent
e086e95061
commit
ca815abaf5
1 changed files with 4 additions and 0 deletions
|
@ -575,6 +575,10 @@ class SAEModel(ModelBase):
|
||||||
|
|
||||||
def predictor_func(self, face):
|
def predictor_func(self, face):
|
||||||
if self.options['learn_mask']:
|
if self.options['learn_mask']:
|
||||||
|
print('np.shape(face):', np.shape(face))
|
||||||
|
print('np.newaxis:', np.newaxis)
|
||||||
|
print('np.shape(face[np.newaxis, ...]):', np.shape(face[np.newaxis, ...]))
|
||||||
|
print('np.shape(self.AE_convert([face[np.newaxis, ...]])):', self.AE_convert([face[np.newaxis, ...]]))
|
||||||
bgr, mask_dst_dstm, mask_src_dstm = self.AE_convert([face[np.newaxis, ...]])
|
bgr, mask_dst_dstm, mask_src_dstm = self.AE_convert([face[np.newaxis, ...]])
|
||||||
mask = mask_dst_dstm[0] * mask_src_dstm[0]
|
mask = mask_dst_dstm[0] * mask_src_dstm[0]
|
||||||
return bgr[0], mask[..., 0]
|
return bgr[0], mask[..., 0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue