Skip to content

Commit

Permalink
Fix channel_axis argument in ssim function
Browse files Browse the repository at this point in the history
  • Loading branch information
k-taro56 committed Mar 27, 2024
1 parent c9b0d96 commit c8bfe05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .score-calculation/calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
expect = cv2.imread('./question/img/except.png')
answer = cv2.imread('./app/build/outputs/roborazzi/com.github.nidroid.uiperfectcopycontesttest.ExampleUnitTest.yourAnswerTest.png')

msssim_value = ssim(expect, answer, multichannel=True)
msssim_value = ssim(expect, answer, channel_axis=3)

print(f'MS-SSIM: {msssim_value}')

0 comments on commit c8bfe05

Please sign in to comment.