Spaces:
Running
on
L4
Running
on
L4
Commit
·
ea0e214
1
Parent(s):
7f6c8e0
Add automatic installation of curpo model dependency in app.py and comment out GitHub link in requirements.txt
Browse files- app.py +7 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -16,6 +16,13 @@ from PIL import Image
|
|
16 |
from utils import tensor_to_pil, encode_vae_image, encode_image, get_default_intrinsics, load_img_and_K, transform_img_and_K
|
17 |
import os
|
18 |
import glob
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
|
21 |
CONFIG_PATH = "configs/inference/inference.yaml"
|
|
|
16 |
from utils import tensor_to_pil, encode_vae_image, encode_image, get_default_intrinsics, load_img_and_K, transform_img_and_K
|
17 |
import os
|
18 |
import glob
|
19 |
+
import subprocess
|
20 |
+
import sys
|
21 |
+
|
22 |
+
subprocess.check_call([
|
23 |
+
sys.executable, "-m", "pip", "install", "-e",
|
24 |
+
"./extern/CUT3R/src/croco/models/curope"
|
25 |
+
])
|
26 |
|
27 |
|
28 |
CONFIG_PATH = "configs/inference/inference.yaml"
|
requirements.txt
CHANGED
@@ -40,4 +40,4 @@ wandb
|
|
40 |
evo
|
41 |
open3d
|
42 |
|
43 |
-
-e git+https://github.com/runjiali-rl/curope.git@main#egg=curope
|
|
|
40 |
evo
|
41 |
open3d
|
42 |
|
43 |
+
# -e git+https://github.com/runjiali-rl/curope.git@main#egg=curope
|