Skip to content

Commit

Permalink
[NVIDIAGameWorks#131] Fix skimage SSIM win_size error (NVIDIAGameWork…
Browse files Browse the repository at this point in the history
…s#133)

Addressing github issue NVIDIAGameWorks#131 : NVIDIAGameWorks#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 authored and orperel committed May 30, 2023
1 parent 52e1d36 commit fb151c5
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 fb151c5

Please sign in to comment.