Skip to content

Commit

Permalink
Update metrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chaithyagr committed Jan 10, 2024
1 parent 3bae0ac commit dfc2060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modopt/math/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def ssim(test, ref, mask=None):

test, ref, mask = _preprocess_input(test, ref, mask)
test = move_to_cpu(test)
assim, ssim_value = compare_ssim(test, ref, full=True)
assim, ssim_value = compare_ssim(test, ref, full=True, data_range=1.0)

if mask is None:
return assim
Expand Down

0 comments on commit dfc2060

Please sign in to comment.