File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ def run(
131
131
z_down : bool ,
132
132
mode : str ,
133
133
override_func : Optional [Callable [[], Any ]] = None ,
134
+ clip_output : bool = True ,
134
135
) -> np .ndarray :
135
136
"""Run Equi2Pers
136
137
@@ -224,7 +225,7 @@ def run(
224
225
225
226
out = (
226
227
out .astype (equi_dtype )
227
- if equi_dtype == np .dtype (np .uint8 )
228
+ if equi_dtype == np .dtype (np .uint8 ) or not clip_output
228
229
else np .clip (out , 0.0 , 1.0 )
229
230
)
230
231
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ def run(
117
117
z_down : bool ,
118
118
mode : str ,
119
119
backend : str = "native" ,
120
+ clip_output : bool = True ,
120
121
) -> torch .Tensor :
121
122
"""Run Equi2Pers
122
123
@@ -242,7 +243,7 @@ def run(
242
243
243
244
out = (
244
245
out .type (equi_dtype )
245
- if equi_dtype == torch .uint8
246
+ if equi_dtype == torch .uint8 or not clip_output
246
247
else torch .clip (out , 0.0 , 1.0 )
247
248
)
248
249
You can’t perform that action at this time.
0 commit comments