Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from unilm.dit.object_detection.ditod import add_vit_config
|
2 |
import torch
|
3 |
import cv2
|
|
|
1 |
+
import os
|
2 |
+
os.system('git clone https://github.com/facebookresearch/detectron2.git')
|
3 |
+
os.system('pip install -e detectron2')
|
4 |
+
import Sys
|
5 |
+
sys.path.append("detectron2")
|
6 |
from unilm.dit.object_detection.ditod import add_vit_config
|
7 |
import torch
|
8 |
import cv2
|