Pytorch implementation of MS-SSIM L1 Loss function for image restoration. How to use import this .py file into your project. from MS_SSIM_L1_loss import MS_SSIM_L1_LOSS criterion = MS_SSIM_L1_LOSS() # your pytorch tensor x, y with [B, C, H, W] dimension on cuda device 0 loss ...