Spaces:
Runtime error
Runtime error
Commit
·
20241dd
1
Parent(s):
ea0e214
Refactor app.py to include automatic installation of curpo model dependency and remove redundant subprocess import
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from typing import List, Literal
|
2 |
from pathlib import Path
|
3 |
from functools import partial
|
@@ -16,13 +24,7 @@ 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 |
-
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"
|
|
|
1 |
+
import subprocess
|
2 |
+
import sys
|
3 |
+
|
4 |
+
subprocess.check_call([
|
5 |
+
sys.executable, "-m", "pip", "install", "-e",
|
6 |
+
"./extern/CUT3R/src/croco/models/curope"
|
7 |
+
])
|
8 |
+
|
9 |
from typing import List, Literal
|
10 |
from pathlib import Path
|
11 |
from functools import partial
|
|
|
24 |
from utils import tensor_to_pil, encode_vae_image, encode_image, get_default_intrinsics, load_img_and_K, transform_img_and_K
|
25 |
import os
|
26 |
import glob
|
|
|
|
|
27 |
|
|
|
|
|
|
|
|
|
28 |
|
29 |
|
30 |
CONFIG_PATH = "configs/inference/inference.yaml"
|