Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,11 @@ from detectron2.data import MetadataCatalog
|
|
8 |
from detectron2.engine import DefaultPredictor
|
9 |
import gradio as gr
|
10 |
import os
|
|
|
11 |
os.system('git clone https://github.com/facebookresearch/detectron2.git')
|
12 |
os.system('pip install -e detectron2')
|
|
|
|
|
13 |
|
14 |
cfg = get_cfg()
|
15 |
add_vit_config(cfg)
|
|
|
8 |
from detectron2.engine import DefaultPredictor
|
9 |
import gradio as gr
|
10 |
import os
|
11 |
+
|
12 |
os.system('git clone https://github.com/facebookresearch/detectron2.git')
|
13 |
os.system('pip install -e detectron2')
|
14 |
+
import sys
|
15 |
+
sys.path.append("detectron2")
|
16 |
|
17 |
cfg = get_cfg()
|
18 |
add_vit_config(cfg)
|