Skip to content

Commit

Permalink
modified: src/trainer/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruyi-Zha committed Sep 18, 2023
1 parent 9af16c6 commit 6811fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trainer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def cal_rmse(a, b, mask):
if len(mask.shape) == len(a.shape) - 1:
mask = mask[..., None]
mask_sum = np.sum(mask) + 1e-10
rmse = (((a - b)**2 * mask).sum() / (mask_sum * 3.0))**0.5
rmse = (((a - b)**2 * mask).sum() / (mask_sum))**0.5
return rmse


Expand Down

0 comments on commit 6811fd9

Please sign in to comment.