Jordan Pierce commited on
Commit
d22fba5
1 Parent(s): d2e69e1

smart way of installing detectron2

Browse files
Files changed (2) hide show
  1. .idea/workspace.xml +1 -1
  2. app.py +6 -0
.idea/workspace.xml CHANGED
@@ -64,7 +64,7 @@
64
  <option name="number" value="Default" />
65
  <option name="presentableId" value="Default" />
66
  <updated>1666646148268</updated>
67
- <workItem from="1666646160771" duration="2366000" />
68
  </task>
69
  <servers />
70
  </component>
 
64
  <option name="number" value="Default" />
65
  <option name="presentableId" value="Default" />
66
  <updated>1666646148268</updated>
67
+ <workItem from="1666646160771" duration="2650000" />
68
  </task>
69
  <servers />
70
  </component>
app.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
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
  import os
8
  import glob
9