MCPcopy Create free account
hub / github.com/CandleLabAI/PCBSegClassNet / ssim_loss

Function ssim_loss

src/models/loss.py:37–38  ·  view source on GitHub ↗
(y_true, y_pred)

Source from the content-addressed store, hash-verified

35
36
37def ssim_loss(y_true, y_pred):
38 return tf.reduce_mean(1.0 - tf.image.ssim(y_true, y_pred, 2.0))
39
40
41def DISLoss(y_true, y_pred):

Callers 1

DISLossFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected