Frorozcol commited on
Commit
0065555
1 Parent(s): 4d8b913

Update src/model.py

Browse files
Files changed (1) hide show
  1. src/model.py +3 -2
src/model.py CHANGED
@@ -6,8 +6,9 @@ import cv2
6
  try:
7
  import detectron2
8
  except:
9
- import os
10
- os.system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html')
 
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