Open locusbear opened 1 year ago
我注意到似乎PSNR loss函数中存在l2 loss
(self.loss_weight self.scale torch.log(((pred - target) ** 2).mean(dim=(1, 2, 3)) + 1e-8).mean())
是否是l2 loss造成的部分文本图像文字模糊的问题呢?我能否将其修改为l1 loss?另外还有没有什么好的方法,在基本不改变原始效果的前提下能优化文字模糊的问题呢?谢谢
我注意到似乎PSNR loss函数中存在l2 loss
(self.loss_weight self.scale torch.log(((pred - target) ** 2).mean(dim=(1, 2, 3)) + 1e-8).mean())
是否是l2 loss造成的部分文本图像文字模糊的问题呢?我能否将其修改为l1 loss?另外还有没有什么好的方法,在基本不改变原始效果的前提下能优化文字模糊的问题呢?谢谢