GuoLanqing / ShadowFormer

ShadowFormer (AAAI2023), Pytorch implementation
MIT License
141 stars 16 forks source link

Why is the RMSE (MAE) calculation multiplied by 3? #36

Open VHaardt opened 2 months ago

VHaardt commented 2 months ago

In test.py, at line 147, the RMSE (MAE) calculation includes a multiplication by 3:

rmse_temp = np.abs(cv2.cvtColor(rgb_restored, cv2.COLOR_RGB2LAB) - cv2.cvtColor(rgb_gt, cv2.COLOR_RGB2LAB)).mean() * 3

Could you explain the reasoning behind this?