Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,8 @@ os.makedirs(TMP_DIR, exist_ok=True)
|
|
28 |
|
29 |
HOLOPART_CODE_DIR = "./holopart"
|
30 |
if not os.path.exists(HOLOPART_REPO_URL):
|
31 |
-
|
|
|
32 |
|
33 |
import sys
|
34 |
sys.path.append(HOLOPART_CODE_DIR)
|
@@ -49,6 +50,7 @@ HEADER = """
|
|
49 |
Upload a mesh with part segmentation. We recommend using these segmentation tools:
|
50 |
- [SAMPart3D](https://github.com/Pointcept/SAMPart3D)
|
51 |
- [SAMesh](https://github.com/gtangg12/samesh)
|
|
|
52 |
For a mesh file `mesh.glb` and corresponding face mask `mask.npy`, prepare your input using this Python code:
|
53 |
```python
|
54 |
import trimesh
|
|
|
28 |
|
29 |
HOLOPART_CODE_DIR = "./holopart"
|
30 |
if not os.path.exists(HOLOPART_REPO_URL):
|
31 |
+
# GIT_LFS_SKIP_SMUDGE=1
|
32 |
+
os.system(f"git clone {HOLOPART_REPO_URL} {HOLOPART_CODE_DIR}")
|
33 |
|
34 |
import sys
|
35 |
sys.path.append(HOLOPART_CODE_DIR)
|
|
|
50 |
Upload a mesh with part segmentation. We recommend using these segmentation tools:
|
51 |
- [SAMPart3D](https://github.com/Pointcept/SAMPart3D)
|
52 |
- [SAMesh](https://github.com/gtangg12/samesh)
|
53 |
+
|
54 |
For a mesh file `mesh.glb` and corresponding face mask `mask.npy`, prepare your input using this Python code:
|
55 |
```python
|
56 |
import trimesh
|