Working with SSIM loss function in tensorflow for RGB images
问题 I want to use SSIM metric as my loss function for the model I'm working on in tensorflow . SSIM should measure the similarity between my reconstructed output image of my denoising autoencoder and the input uncorrupted image (RGB) . As of what I understood, for using the SSIM metric in tensorflow, the images should be normalized to [0,1] or [0,255] and not [-1,1]. After converting my tensors to [0,1] and implementing SSIM as my loss function, the reconstructed image is black and white instead