Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -97,7 +97,7 @@ def background_preprocess(input_image, do_remove_background):
|
|
| 97 |
return input_image
|
| 98 |
|
| 99 |
def remove_outliers_and_average(tensor, threshold=1.5):
|
| 100 |
-
assert tensor.dim() == 1
|
| 101 |
|
| 102 |
q1 = torch.quantile(tensor, 0.25)
|
| 103 |
q3 = torch.quantile(tensor, 0.75)
|
|
|
|
| 97 |
return input_image
|
| 98 |
|
| 99 |
def remove_outliers_and_average(tensor, threshold=1.5):
|
| 100 |
+
assert tensor.dim() == 1
|
| 101 |
|
| 102 |
q1 = torch.quantile(tensor, 0.25)
|
| 103 |
q3 = torch.quantile(tensor, 0.75)
|