Spaces:
Runtime error
Runtime error
eliphatfs
commited on
Commit
·
f0ae1c5
1
Parent(s):
99bebdc
Fix.
Browse files
app.py
CHANGED
@@ -39,9 +39,9 @@ def load_data():
|
|
39 |
pc = misc_utils.model_to_pc(misc_utils.as_mesh(trimesh.load(model)))
|
40 |
elif objaid:
|
41 |
prog.progress(0.1, "Downloading Objaverse Object")
|
42 |
-
|
43 |
prog.progress(0.2, "Preparing Point Cloud")
|
44 |
-
pc = misc_utils.model_to_pc(misc_utils.as_mesh(trimesh.load(
|
45 |
else:
|
46 |
raise ValueError("You have to supply 3D input!")
|
47 |
prog.progress(0.25, "Preprocessing Point Cloud")
|
|
|
39 |
pc = misc_utils.model_to_pc(misc_utils.as_mesh(trimesh.load(model)))
|
40 |
elif objaid:
|
41 |
prog.progress(0.1, "Downloading Objaverse Object")
|
42 |
+
objamodel = objaverse.load_objects([objaid])[objaid]
|
43 |
prog.progress(0.2, "Preparing Point Cloud")
|
44 |
+
pc = misc_utils.model_to_pc(misc_utils.as_mesh(trimesh.load(objamodel)))
|
45 |
else:
|
46 |
raise ValueError("You have to supply 3D input!")
|
47 |
prog.progress(0.25, "Preprocessing Point Cloud")
|