mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-21 22:13:20 -07:00
fix?
This commit is contained in:
parent
33ea98012c
commit
607863f3fa
1 changed files with 1 additions and 1 deletions
|
@ -24,6 +24,6 @@ class MsSsim(nn.LayerBase):
|
|||
ms_ssim_val = tf.image.ssim_multiscale(y_true_t, y_pred_t, max_val, power_factors=self.power_factors, filter_size=self.kernel_size)
|
||||
# ssim_multiscale returns values in range [0, 1] (where 1 is completely identical)
|
||||
# subtract from 1 to get loss
|
||||
return 1 - ms_ssim_val
|
||||
return 1.0 - ms_ssim_val
|
||||
|
||||
nn.MsSsim = MsSsim
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue