mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
didn't make a difference
This commit is contained in:
parent
9dd3f68da8
commit
a93cd32337
1 changed files with 3 additions and 9 deletions
|
@ -433,19 +433,13 @@ class SAEModel(ModelBase):
|
||||||
self.AE_view = K.function([warped_src, warped_dst],
|
self.AE_view = K.function([warped_src, warped_dst],
|
||||||
[pred_src_src[-1], pred_dst_dst[-1], pred_src_dst[-1]])
|
[pred_src_src[-1], pred_dst_dst[-1], pred_src_dst[-1]])
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Updated "pred_src_dst[-1]" to "pred_src_dst[-1][:4]", as it was breaking on images with 4th channel
|
# Updated "pred_src_dst[-1]" to "pred_src_dst[-1][:4]", as it was breaking on images with 4th channel
|
||||||
if self.options['learn_mask']:
|
if self.options['learn_mask']:
|
||||||
if self.options['apply_random_ct']:
|
self.AE_convert = K.function([warped_dst], [pred_src_dst[-1][:4], pred_dst_dstm[-1], pred_src_dstm[-1]])
|
||||||
params = [pred_src_dst[-1], pred_dst_dstm[-1], pred_src_dstm[-1]]
|
|
||||||
else:
|
else:
|
||||||
params = [pred_src_dst[-1][:4], pred_dst_dstm[-1], pred_src_dstm[-1]]
|
self.AE_convert = K.function([warped_dst], [pred_src_dst[-1][:4]])
|
||||||
else:
|
|
||||||
if self.options['apply_random_ct']:
|
|
||||||
params = [pred_src_dst[-1]]
|
|
||||||
else:
|
|
||||||
params = [pred_src_dst[-1][:4]]
|
|
||||||
self.AE_convert = K.function([warped_dst], params)
|
|
||||||
|
|
||||||
if self.is_training_mode:
|
if self.is_training_mode:
|
||||||
self.src_sample_losses = []
|
self.src_sample_losses = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue