Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,10 +40,10 @@ def run_theia(image):
|
|
| 40 |
device='cuda',
|
| 41 |
)
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
-
return
|
| 47 |
|
| 48 |
-
demo = gr.Interface(fn=run_theia, inputs=gr.Image(type="pil"), outputs=gr.
|
| 49 |
demo.launch()
|
|
|
|
| 40 |
device='cuda',
|
| 41 |
)
|
| 42 |
|
| 43 |
+
theia_decode_results = (255.0 * theia_decode_results[0]).astype(np.uint8)
|
| 44 |
+
gt_decode_results = (255.0 * gt_decode_results[0]).astype(np.uint8)
|
| 45 |
|
| 46 |
+
return [(theia_decode_results, "Theia Results"), (gt_decode_results, "Ground Truth")]
|
| 47 |
|
| 48 |
+
demo = gr.Interface(fn=run_theia, inputs=gr.Image(type="pil"), outputs=gr.Gallery(label="Input, DINOv2, SAM, Depth Anything", type="numpy"))
|
| 49 |
demo.launch()
|