SeonghuJeon commited on
Commit
3945b14
Β·
verified Β·
1 Parent(s): 760a427

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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"):