You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for your valuable work on this project. I noticed a potential issue in the MSE calculation within the test/MSE.py script. Specifically, the current implementation does not seem to account for the RGB channels correctly when calculating the MSE.
In the code, the MSE is computed as follows:
mse = np.sum((gt - pred) ** 2) / count
However, since we are dealing with RGB images, we need to account for all three channels (R, G, and B). Thus, the count should be multiplied by 3. The corrected calculation should be:
mse = np.sum((gt - pred) ** 2) / (count * 3)
Here is the updated section of the code with the necessary modification:
Hi, professor!
First of all, thank you for your valuable work on this project. I noticed a potential issue in the MSE calculation within the test/MSE.py script. Specifically, the current implementation does not seem to account for the RGB channels correctly when calculating the MSE.
In the code, the MSE is computed as follows:
However, since we are dealing with RGB images, we need to account for all three channels (R, G, and B). Thus, the count should be multiplied by 3. The corrected calculation should be:
Here is the updated section of the code with the necessary modification:
Would you please review this and confirm if this change is correct?
Thank you for your time and effort!
The text was updated successfully, but these errors were encountered: