Spaces:
Running
on
Zero
Running
on
Zero
- apps/gradio_app.py +2 -1
- requirements.txt +1 -1
apps/gradio_app.py
CHANGED
@@ -110,7 +110,8 @@ def image2mesh(view_front: np.ndarray,
|
|
110 |
if 'Remesh' in more:
|
111 |
print("Remeshing with Instant Meshes...")
|
112 |
target_face_count = int(len(mesh.faces)/10)
|
113 |
-
command = f"{proj_dir}/apps/third_party/InstantMeshes {filepath} -f {target_face_count} -d -S 0 -r 6 -p 6 -o {filepath.replace('.obj', '_remeshed.obj')}"
|
|
|
114 |
os.system(command)
|
115 |
filepath = filepath.replace('.obj', '_remeshed.obj')
|
116 |
|
|
|
110 |
if 'Remesh' in more:
|
111 |
print("Remeshing with Instant Meshes...")
|
112 |
target_face_count = int(len(mesh.faces)/10)
|
113 |
+
# command = f"{proj_dir}/apps/third_party/InstantMeshes {filepath} -f {target_face_count} -d -S 0 -r 6 -p 6 -o {filepath.replace('.obj', '_remeshed.obj')}"
|
114 |
+
command = f"{proj_dir}/apps/third_party/InstantMeshes {filepath} -f {target_face_count} -d -S 0 -r 4 -p 4 -o {filepath.replace('.obj', '_remeshed.obj')}"
|
115 |
os.system(command)
|
116 |
filepath = filepath.replace('.obj', '_remeshed.obj')
|
117 |
|
requirements.txt
CHANGED
@@ -32,4 +32,4 @@ trimesh==4.3.2
|
|
32 |
wandb==0.16.6
|
33 |
segment_anything==1.0
|
34 |
rembg==2.0.56
|
35 |
-
xformers==0.0.
|
|
|
32 |
wandb==0.16.6
|
33 |
segment_anything==1.0
|
34 |
rembg==2.0.56
|
35 |
+
xformers==0.0.27.dev792
|