Is there a SSIM or even MS-SSIM implementation for TensorFlow?
SSIM (structural similarity index metric)
This appears to be what you are looking for:
msssim.py
Usage:
python msssim.py --original_image=original.png --compared_image=distorted.png