revert change, found issue in ConverterMasked

This commit is contained in:
Jeremy Hummel 2019-08-14 12:13:07 -07:00
commit 31417bc97a

View file

@ -435,11 +435,10 @@ class SAEModel(ModelBase):
else: else:
# 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']:
self.AE_convert = K.function([warped_dst], [pred_src_dst[-1][:4], pred_dst_dstm[-1], pred_src_dstm[-1]]) self.AE_convert = K.function([warped_dst], [pred_src_dst[-1], pred_dst_dstm[-1], pred_src_dstm[-1]])
else: else:
self.AE_convert = K.function([warped_dst], [pred_src_dst[-1][:4]]) self.AE_convert = K.function([warped_dst], [pred_src_dst[-1]])
if self.is_training_mode: if self.is_training_mode:
self.src_sample_losses = [] self.src_sample_losses = []