Spaces:
Runtime error
Runtime error
jens
commited on
Commit
·
d03ff7c
1
Parent(s):
32a0a1c
fix
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -82,7 +82,7 @@ class DepthPredictor:
|
|
| 82 |
align_corners=False,
|
| 83 |
).squeeze()
|
| 84 |
|
| 85 |
-
output = 1 - (prediction.cpu().numpy() / np.max(
|
| 86 |
#formatted = 255 - (output * 255 / np.max(output)).astype('uint8')
|
| 87 |
#img = Image.fromarray(formatted)
|
| 88 |
return output
|
|
|
|
| 82 |
align_corners=False,
|
| 83 |
).squeeze()
|
| 84 |
|
| 85 |
+
output = 1 - (prediction.cpu().numpy() / np.max(prediction))
|
| 86 |
#formatted = 255 - (output * 255 / np.max(output)).astype('uint8')
|
| 87 |
#img = Image.fromarray(formatted)
|
| 88 |
return output
|