Spaces:
Runtime error
Runtime error
Update src/model.py
Browse files- src/model.py +3 -2
src/model.py
CHANGED
@@ -6,8 +6,9 @@ import cv2
|
|
6 |
try:
|
7 |
import detectron2
|
8 |
except:
|
9 |
-
|
10 |
-
os.system(
|
|
|
11 |
|
12 |
from detectron2 import model_zoo
|
13 |
from detectron2.engine import DefaultPredictor
|
|
|
6 |
try:
|
7 |
import detectron2
|
8 |
except:
|
9 |
+
os.system('pip install -U pip')
|
10 |
+
os.system("pip install 'git+https://github.com/facebookresearch/fvcore.git'")
|
11 |
+
os.system("pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.10/index.html")
|
12 |
|
13 |
from detectron2 import model_zoo
|
14 |
from detectron2.engine import DefaultPredictor
|