Federico Galatolo commited on
Commit
7a53ffa
1 Parent(s): 87aee0a

detectron2 as wheel

Browse files
Files changed (3) hide show
  1. README.md +1 -0
  2. app.py +0 -7
  3. requirements.txt +1 -0
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: indigo
5
  colorTo: green
6
  sdk: streamlit
7
  sdk_version: 1.10.0
 
8
  app_file: app.py
9
  pinned: false
10
  license: agpl-3.0
 
5
  colorTo: green
6
  sdk: streamlit
7
  sdk_version: 1.10.0
8
+ python_version: 3.8
9
  app_file: app.py
10
  pinned: false
11
  license: agpl-3.0
app.py CHANGED
@@ -1,12 +1,5 @@
1
  import os
2
  import streamlit as st
3
-
4
- try:
5
- import detectron2
6
- except:
7
- with st.spinner("Installing detectron2"):
8
- os.system("pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.10/index.html")
9
-
10
  import cv2
11
  import sys
12
  import argparse
 
1
  import os
2
  import streamlit as st
 
 
 
 
 
 
 
3
  import cv2
4
  import sys
5
  import argparse
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  absl-py==1.2.0
2
  altair==4.2.0
3
  antlr4-python3-runtime==4.9.3
 
1
+ ./detectron2-0.6+cpu-cp38-cp38-linux_x86_64.whl
2
  absl-py==1.2.0
3
  altair==4.2.0
4
  antlr4-python3-runtime==4.9.3