Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ import subprocess
|
|
7 |
import shlex
|
8 |
import torch
|
9 |
|
10 |
-
|
11 |
-
os.system("git clone https://github.com/Visual-AI/vCLR.git && cd vCLR && rm -f requirements.txt && cd ..")
|
12 |
|
13 |
subprocess.run(
|
14 |
shlex.split(
|
@@ -19,7 +19,6 @@ subprocess.run(
|
|
19 |
sys.path.append("vCLR/")
|
20 |
|
21 |
|
22 |
-
os.system("pip install detectron2")
|
23 |
from demo.predictors import VisualizationDemo
|
24 |
from detectron2.checkpoint import DetectionCheckpointer
|
25 |
from detectron2.config import LazyConfig, instantiate
|
|
|
7 |
import shlex
|
8 |
import torch
|
9 |
|
10 |
+
os.system("pip install git+https://github.com/facebookresearch/detectron2.git")
|
11 |
+
os.system("git clone https://github.com/Visual-AI/vCLR.git && cd vCLR && rm -f requirements.txt && cd .. && cp deformable_train_voc_eval_nonvoc.py vCLR/projects/vCLR_deformable_mask/configs/dino-resnet/")
|
12 |
|
13 |
subprocess.run(
|
14 |
shlex.split(
|
|
|
19 |
sys.path.append("vCLR/")
|
20 |
|
21 |
|
|
|
22 |
from demo.predictors import VisualizationDemo
|
23 |
from detectron2.checkpoint import DetectionCheckpointer
|
24 |
from detectron2.config import LazyConfig, instantiate
|