Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions basicsr/metrics/psnr_ssim.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ def _ssim_pth(img, img2):
It is called by func:`calculate_ssim_pt`.

Args:
img (Tensor): Images with range [0, 1], shape (n, 3/1, h, w).
img2 (Tensor): Images with range [0, 1], shape (n, 3/1, h, w).
img (Tensor): Images with range [0, 255], shape (n, 3/1, h, w).
img2 (Tensor): Images with range [0, 255], shape (n, 3/1, h, w).

Returns:
float: SSIM result.
Expand Down