Skip to content

Commit

Permalink
🩹 Fix outdated example
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-rozet committed Oct 30, 2023
1 parent 68dfac0 commit d934345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ Like `torch.nn` built-in components, these classes are based on functional defin
from piqa.ssim import ssim
from piqa.utils.functional import gaussian_kernel

kernel = gaussian_kernel(11, sigma=1.5).expand(3, 11, 11)

l = 1 - ssim(x, y, kernel=kernel)
kernel = gaussian_kernel(11, sigma=1.5).repeat(3, 1, 1)
ss, cs = ssim(x, y, kernel=kernel)
```

For more information, check out the documentation at [piqa.readthedocs.io](https://piqa.readthedocs.io).
Expand Down
5 changes: 2 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ Like :mod:`torch.nn` built-in components, these classes are based on functional
from piqa.ssim import ssim
from piqa.utils.functional import gaussian_kernel
kernel = gaussian_kernel(11, sigma=1.5).expand(3, 11, 11)
l = 1 - ssim(x, y, kernel=kernel)
kernel = gaussian_kernel(11, sigma=1.5).repeat(3, 1, 1)
ss, cs = ssim(x, y, kernel=kernel)
For more information, check out the `API <api.html>`_ or the `repository <https://github.com/francois-rozet/piqa>`_.

Expand Down

0 comments on commit d934345

Please sign in to comment.