mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 13:32:09 -07:00
fix for plaidML
This commit is contained in:
parent
35ab63f752
commit
bde700243c
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ NLayerDiscriminator = nnlib.NLayerDiscriminator
|
||||||
cs = (num1 - num0 + c2) / (den1 - den0 + c2)
|
cs = (num1 - num0 + c2) / (den1 - den0 + c2)
|
||||||
|
|
||||||
ssim_val = K.mean(luminance * cs, axis=(-3, -2) )
|
ssim_val = K.mean(luminance * cs, axis=(-3, -2) )
|
||||||
return K.mean( (1.0 - ssim_val ) / 2.0 )
|
return(1.0 - ssim_val ) / 2.0
|
||||||
|
|
||||||
return func
|
return func
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue