Skip to content

Commit

Permalink
[Fix] fix ssim only calculate on the first channel bug (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Fran authored Dec 19, 2022
1 parent ccd52c4 commit b0f5592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmedit/evaluation/metrics/metrics_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def img_transform(img,
'"Y" and None.')

if crop_border != 0:
img = img[crop_border:-crop_border, crop_border:-crop_border, None]
img = img[crop_border:-crop_border, crop_border:-crop_border, ...]

return img

Expand Down

0 comments on commit b0f5592

Please sign in to comment.