I\'m trying to use tf.image.ssim() as my loss function for training my model and I explored a liitle bit how people have implemented it. Here they are: