Closed JustinAsdz closed 3 years ago
There are 6 steps for an input LR image and its ground truth HR:
ssim = pytorch_ssim.ssim(hr, sr, reduction='none').detach()
# the meaning of sigma and maxVal can be found in my paper
gauss = lambda x: torch.exp(-((x+1) / sigma) ** 2) * self.maxVal
weight = gauss(ssim).detach()
nsr = sr * weight
nhr = hr * weight
loss = mae(nsr, nhr) # use mae as example
loss.backward()
PSPL is a very sample method to accelerate convergence, all its function can be represented by the code show in Core Part in README file.
Thanks for your quick reply,
Your Explanation is clear and percise, but can you show the steps to run the code for example : about dataset preparation or running file order. Thanks
I have explained it in issue 1, including preparing data and running the code in src. You can refer to it.
Thanks ,go to issue 1
Hi Elin
Thanks for your work, recently I want to reproduce the result of your method. Can you specify the work-flow of your paper, for convenient usage for others to use.
Thanks !