Skip to content

Commit

Permalink
[#131] Fix skimage SSIM win_size error (#133)
Browse files Browse the repository at this point in the history
Addressing github issue #131 : #131

Fixes: the demos on the README leads to an error due to skimage thinking that the color channel for the images used for SSIM are part of the image dimension rather than channels.
  • Loading branch information
jaeheungs committed Mar 23, 2023
1 parent fc2d451 commit 28a9964
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wisp/ops/image/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ def ssim(rgb, gts):
multichannel=True,
data_range=1,
gaussian_weights=True,
sigma=1.5)
sigma=1.5,
channel_axis=-1)

0 comments on commit 28a9964

Please sign in to comment.