Skip to content

Commit

Permalink
Update torch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoooo333 authored Aug 15, 2023
1 parent 49c92c6 commit 7dd2916
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion equilib/equi2pers/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def run(
z_down: bool,
mode: str,
backend: str = "native",
clip_output: bool = True,
) -> torch.Tensor:
"""Run Equi2Pers
Expand Down Expand Up @@ -242,7 +243,7 @@ def run(

out = (
out.type(equi_dtype)
if equi_dtype == torch.uint8
if equi_dtype == torch.uint8 or not clip_output
else torch.clip(out, 0.0, 1.0)
)

Expand Down

0 comments on commit 7dd2916

Please sign in to comment.