diff --git a/models/Model_AMP/Model.py b/models/Model_AMP/Model.py index 62f64db..f4ede17 100644 --- a/models/Model_AMP/Model.py +++ b/models/Model_AMP/Model.py @@ -524,7 +524,7 @@ class AMPModel(ModelBase): if self.options['loss_function'] == 'MS-SSIM': gpu_dst_loss = 10 * nn.MsSsim(bs_per_gpu, input_ch, resolution)(gpu_target_dst_masked, gpu_pred_dst_dst_masked, max_val=1.0) - gpu_src_loss += tf.reduce_mean ( 10*tf.square ( gpu_target_dst_masked - gpu_pred_dst_dst_masked ), axis=[1,2,3]) + gpu_dst_loss += tf.reduce_mean ( 10*tf.square ( gpu_target_dst_masked - gpu_pred_dst_dst_masked ), axis=[1,2,3]) elif self.options['loss_function'] == 'MS-SSIM+L1': gpu_dst_loss = 10 * nn.MsSsim(bs_per_gpu, input_ch, resolution, use_l1=True)(gpu_target_dst_masked, gpu_pred_dst_dst_masked, max_val=1.0)