title: SSIM / MS-SSIM for TensorFlow
body: <p>Is there a <strong>SSIM</strong> or even <strong>MS-SSIM</strong> implementation for <strong>TensorFlow</strong>? </p>
  
  <p>SSIM (<em>structural similarity index metric</em>) is a metric to measure image quality or similarity of images. It is inspired by human perception and according to a couple of papers, it is a much better loss-function compared to l1/l2. For example, see <a href="http://arxiv.org/abs/1511.08861" rel="noreferrer">Loss Functions for Neural Networks for Image Processing</a>.</p>
  
  <p>Up to now, I could not find an implementation in TensorFlow. And after trying to do it by myself by porting it from C++ or python code (such as <a href="https://github.com/lvchigo/VQMT/blob/master/src/SSIM.cpp" rel="noreferrer">Github: VQMT/SSIM</a>), I got stuck on methods like applying Gaussian blur to an image in TensorFlow.</p>
  
  <p>Has someone already tried to implement it by himself?</p>