Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Kastryulin <[email protected]>
  • Loading branch information
snk4tr committed Oct 14, 2021
1 parent f5a96d9 commit 88e92e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piq/srsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _spectral_residual_visual_saliency(x: torch.Tensor, scale: float = 0.25, ker
torch.exp(spectral_residual) * torch.cos(phase),
torch.exp(spectral_residual) * torch.sin(phase)), -1)

if len(torch_version) != 0 and torch_version >= recommended_torch_version:
if len(torch_version) != 0 and torch_version >= recommended_torch_version:
saliency_map = torch.abs(torch.fft.ifft2(torch.view_as_complex(compx))) ** 2

else:
Expand Down

0 comments on commit 88e92e1

Please sign in to comment.