Commit
·
b286bf7
1
Parent(s):
9657406
added pip install for detectron2
Browse files- inference.py +7 -0
inference.py
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import glob
|
| 3 |
|
|
|
|
| 1 |
+
try:
|
| 2 |
+
import detectron2
|
| 3 |
+
except:
|
| 4 |
+
import os
|
| 5 |
+
os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
|
| 6 |
+
|
| 7 |
+
|
| 8 |
import os
|
| 9 |
import glob
|
| 10 |
|