Skip to content

Commit ad127ef

Browse files
committed
removed squeeze and permute ops on sr imagery. letting the user handle that
1 parent 68d87fa commit ad127ef

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

torch_enhance/models/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,4 @@ def enhance(self, x: torch.Tensor) -> torch.Tensor:
7979
x *= 255.0
8080
x = x.clamp(0, 255)
8181
x = x.to(torch.uint8)
82-
x = x.squeeze(0)
83-
x = x.permute(1, 2, 0)
8482
return x

0 commit comments

Comments
 (0)