Updated dependencies and simplified mesh processing
Browse files- cog.yaml +0 -1
- predict.py +0 -6
cog.yaml
CHANGED
@@ -7,6 +7,5 @@ build:
|
|
7 |
cuda: "11.5" # Query nvcc --version
|
8 |
python_packages:
|
9 |
- "torch==2.3.1"
|
10 |
-
- "libigl==2.5.1"
|
11 |
- "git+https://github.com/MarcusLoppe/meshgpt-pytorch.git@14126a20626356e9bd2e12dcf1a06872b9fe968d"
|
12 |
predict: "predict.py:Predictor"
|
|
|
7 |
cuda: "11.5" # Query nvcc --version
|
8 |
python_packages:
|
9 |
- "torch==2.3.1"
|
|
|
10 |
- "git+https://github.com/MarcusLoppe/meshgpt-pytorch.git@14126a20626356e9bd2e12dcf1a06872b9fe968d"
|
11 |
predict: "predict.py:Predictor"
|
predict.py
CHANGED
@@ -55,12 +55,6 @@ class Predictor(BasePredictor):
|
|
55 |
file_name = "./mesh.obj"
|
56 |
file_path = Path(tempfile.mkdtemp()) / file_name
|
57 |
mesh_render.save_rendering(file_path, output)
|
58 |
-
v, f = igl.read_triangle_mesh(file_path)
|
59 |
-
v, f, _, _ = igl.remove_unreferenced(v, f)
|
60 |
-
c, _ = igl.orientable_patches(f)
|
61 |
-
f, _ = igl.orient_outward(v, f, c)
|
62 |
-
igl.write_triangle_mesh(file_path, v, f)
|
63 |
-
file_path = self.save_as_obj(file_path)
|
64 |
return file_path
|
65 |
|
66 |
|
|
|
55 |
file_name = "./mesh.obj"
|
56 |
file_path = Path(tempfile.mkdtemp()) / file_name
|
57 |
mesh_render.save_rendering(file_path, output)
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
return file_path
|
59 |
|
60 |
|