jens commited on
Commit
af06a2a
·
1 Parent(s): d0ed3bd
Files changed (2) hide show
  1. app.py +2 -2
  2. inference.py +1 -1
app.py CHANGED
@@ -55,8 +55,8 @@ with block:
55
  print("depth reconstruction")
56
  image = inputs[raw_image]
57
  # depth reconstruction
58
- mask = inputs[masks][0][0]
59
- path = dpt.generate_obj(image, inputs[n_samples], mask)
60
 
61
  return {pcl_figure: path}
62
 
 
55
  print("depth reconstruction")
56
  image = inputs[raw_image]
57
  # depth reconstruction
58
+ #mask = inputs[masks][0][0]
59
+ path = dpt.generate_obj(image, inputs[n_samples])
60
 
61
  return {pcl_figure: path}
62
 
inference.py CHANGED
@@ -70,7 +70,7 @@ class DepthPredictor:
70
  ax.scatter(points,size=0.01, c=colors, marker='o')
71
  return fig
72
 
73
- def generate_obj(self, image, n_samples, mask):
74
  # Step 1: Create a point cloud
75
  point_cloud, color_array = self.generate_pcl(image)
76
  #point_cloud, color_array = point_cloud[mask.ravel()[:-1]], color_array[mask.ravel()[:-1]]
 
70
  ax.scatter(points,size=0.01, c=colors, marker='o')
71
  return fig
72
 
73
+ def generate_obj(self, image, n_samples):
74
  # Step 1: Create a point cloud
75
  point_cloud, color_array = self.generate_pcl(image)
76
  #point_cloud, color_array = point_cloud[mask.ravel()[:-1]], color_array[mask.ravel()[:-1]]