haodongli commited on
Commit
3873404
·
1 Parent(s): e295367
Files changed (1) hide show
  1. app.py +2 -2
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, [distance_vis, normal_image]
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=75,
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