Spaces:
Runtime error
Runtime error
jens
commited on
Commit
·
e7e0776
1
Parent(s):
d140d89
fix
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import numpy as np
|
|
9 |
def snap(image, video):
|
10 |
depth_predictor = DepthPredictor()
|
11 |
depth_result = depth_predictor.predict(image)
|
12 |
-
gltf_path =
|
13 |
#segment_predictor = SegmentPredictor()
|
14 |
#sam_result = segment_predictor.predict(image)
|
15 |
return [image, gltf_path, gltf_path]#[depth_result, gltf_path, gltf_path]
|
|
|
9 |
def snap(image, video):
|
10 |
depth_predictor = DepthPredictor()
|
11 |
depth_result = depth_predictor.predict(image)
|
12 |
+
gltf_path = create_3d_obj(np.array(image), depth_result)
|
13 |
#segment_predictor = SegmentPredictor()
|
14 |
#sam_result = segment_predictor.predict(image)
|
15 |
return [image, gltf_path, gltf_path]#[depth_result, gltf_path, gltf_path]
|