-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Convert RGB image to YCbCr and take luminance should be Y = 0.256789 R + 0.504129 G +0.097906 B, not
Line 39 in e8f6513
| rgb_to_grey = torch.tensor([0.299, 0.587, 0.114]).view(1, -1, 1, 1).to(x) |
As for SSIM, to make sure the results can be same with Matlab Code, it must use DoubleTensor, and these three lines should change:
Line 55 in e8f6513
| x = x.type(torch.float32) |
Line 56 in e8f6513
| y = y.type(torch.float32) |
Line 35 in e8f6513
| coords = torch.arange(kernel_size).to(dtype=torch.float32) |
Please refer to my implement of SSIM and PSNR.
Reactions are currently unavailable
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working