Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""GLD Gradio Demo β Novel View Synthesis + 3D Reconstruction."""
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# ββ xformers compat patch (must be before ANY torch import) ββββββββββββββ
|
| 5 |
import torch.backends.cuda
|
| 6 |
if not hasattr(torch.backends.cuda, "is_flash_attention_available"):
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""GLD Gradio Demo β Novel View Synthesis + 3D Reconstruction."""
|
| 3 |
|
| 4 |
+
# ββ Install depth-anything-3 without heavy deps (open3d, e3nn, etc.) βββββ
|
| 5 |
+
import subprocess, importlib
|
| 6 |
+
if importlib.util.find_spec("depth_anything_3") is None:
|
| 7 |
+
subprocess.check_call([
|
| 8 |
+
"pip", "install", "--no-deps", "depth-anything-3",
|
| 9 |
+
])
|
| 10 |
+
|
| 11 |
# ββ xformers compat patch (must be before ANY torch import) ββββββββββββββ
|
| 12 |
import torch.backends.cuda
|
| 13 |
if not hasattr(torch.backends.cuda, "is_flash_attention_available"):
|