umuthopeyildirim
commited on
Commit
•
c4beb64
1
Parent(s):
f5ce9f2
Fix depth image conversion issue
Browse files
app.py
CHANGED
@@ -110,10 +110,10 @@ with gr.Blocks(css=css) as demo:
|
|
110 |
|
111 |
# If pred_depth is in an acceptable range for 16-bit representation
|
112 |
# No need for further normalization
|
113 |
-
pred_depth_16bit = pred_depth_squeezed.cpu().numpy().astype('uint16')
|
114 |
|
115 |
# Convert to PIL image
|
116 |
-
raw_depth = Image.fromarray(
|
117 |
|
118 |
# Continue with your file saving operations
|
119 |
tmp = tempfile.NamedTemporaryFile(suffix='.png', delete=False)
|
|
|
110 |
|
111 |
# If pred_depth is in an acceptable range for 16-bit representation
|
112 |
# No need for further normalization
|
113 |
+
# pred_depth_16bit = pred_depth_squeezed.cpu().numpy().astype('uint16')
|
114 |
|
115 |
# Convert to PIL image
|
116 |
+
raw_depth = Image.fromarray(pred_depth_squeezed)
|
117 |
|
118 |
# Continue with your file saving operations
|
119 |
tmp = tempfile.NamedTemporaryFile(suffix='.png', delete=False)
|