Closed fzhiheng closed 8 months ago
Thanks for your great work. I have a question about RBG loss. Why use laplacian.var() as the weight for the RBG loss and what is the benefit of doing so?
all_laplacian = [np.ones_like(img[..., 0]) cv2.Laplacian(cv2.cvtColor((img255).astype(np.uint8), cv2.COLOR_RGB2GRAY), cv2.CV_32F).var() for img in all_rgbs]
loss = 0.25 ((torch.abs(rgb_map - rgb_train)) loss_weights) / loss_weights.mean()
Looking forward to your reply.
Hi, We use this scaling to reduce the supervision of blurier images. We did not formally evaluate its impact.
Thanks for your great work. I have a question about RBG loss. Why use laplacian.var() as the weight for the RBG loss and what is the benefit of doing so?
all_laplacian = [np.ones_like(img[..., 0]) cv2.Laplacian(cv2.cvtColor((img255).astype(np.uint8), cv2.COLOR_RGB2GRAY), cv2.CV_32F).var() for img in all_rgbs]
loss = 0.25 ((torch.abs(rgb_map - rgb_train)) loss_weights) / loss_weights.mean()
Looking forward to your reply.