Spaces:
Running
on
Zero
Running
on
Zero
minor
Browse files
app.py
CHANGED
|
@@ -85,7 +85,7 @@ def fn(image_path, mask_path):
|
|
| 85 |
save_path = f'files/cache/{name_base}.glb'
|
| 86 |
normal_image = distance2pointcloud(distance, cv2_image, mask, save_path=save_path.replace('.glb', '.ply'), return_normal=True, save_distance=False)
|
| 87 |
ply2glb(save_path.replace('.glb', '.ply'), save_path)
|
| 88 |
-
return save_path, [
|
| 89 |
|
| 90 |
inputs = [
|
| 91 |
gr.Image(label="Input Image", type="filepath"),
|
|
@@ -96,7 +96,7 @@ outputs = [
|
|
| 96 |
gr.ImageSlider(
|
| 97 |
label="Output Depth / Normal (transformed from the depth)",
|
| 98 |
type="pil",
|
| 99 |
-
slider_position=
|
| 100 |
)
|
| 101 |
]
|
| 102 |
|
|
|
|
| 85 |
save_path = f'files/cache/{name_base}.glb'
|
| 86 |
normal_image = distance2pointcloud(distance, cv2_image, mask, save_path=save_path.replace('.glb', '.ply'), return_normal=True, save_distance=False)
|
| 87 |
ply2glb(save_path.replace('.glb', '.ply'), save_path)
|
| 88 |
+
return save_path, [normal_image, distance_vis]
|
| 89 |
|
| 90 |
inputs = [
|
| 91 |
gr.Image(label="Input Image", type="filepath"),
|
|
|
|
| 96 |
gr.ImageSlider(
|
| 97 |
label="Output Depth / Normal (transformed from the depth)",
|
| 98 |
type="pil",
|
| 99 |
+
slider_position=20,
|
| 100 |
)
|
| 101 |
]
|
| 102 |
|