mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
fix: misnamed arg for tf.image.ssim_multiscale
This commit is contained in:
parent
d5fd69906d
commit
6b78f1cbc3
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ def ms_ssim(img1, img2, resolution, kernel_size=11, k1=0.01, k2=0.03, max_value=
|
|||
if sum(power_factors) < 1.0:
|
||||
power_factors = [x/sum(power_factors) for x in power_factors]
|
||||
|
||||
ms_ssim_val = tf.image.ssim_multiscale(img1, img2, max_value=max_value, power_factors=power_factors,
|
||||
ms_ssim_val = tf.image.ssim_multiscale(img1, img2, max_val=max_value, power_factors=power_factors,
|
||||
filter_size=kernel_size, k1=k1, k2=k2)
|
||||
loss = (1.0 - ms_ssim_val) / 2.0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue