Spaces:
Runtime error
Runtime error
MaureenZOU
commited on
Commit
•
a86817c
1
Parent(s):
e70ce19
init
Browse files- app.py +22 -0
- requirements.txt +38 -0
app.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
os.system("python -m pip install -r requirements.txt")
|
3 |
+
os.system("python -m pip install git+https://github.com/MaureenZOU/detectron2-xyz.git")
|
4 |
+
|
5 |
+
github_user = os.environ.get('GITHUB_USER')
|
6 |
+
github_token = os.environ.get('GITHUB_TOKEN')
|
7 |
+
|
8 |
+
repo = 'IX-Decoder-Demo'
|
9 |
+
|
10 |
+
os.system("export GITHUB_USER={}".format(github_user))
|
11 |
+
os.system("export GITHUB_TOKEN={}".format(github_token))
|
12 |
+
os.system("git clone https://{}:{}@github.com/{}/{}".format(github_user, github_token, github_user, repo))
|
13 |
+
|
14 |
+
cwd0 = os.getcwd()
|
15 |
+
cwd1 = os.path.join(cwd0, 'IX-Decoder-Demo/xdecoder/body/encoder/ops')
|
16 |
+
os.chdir(cwd1)
|
17 |
+
os.system("sh make.sh")
|
18 |
+
os.chdir(cwd0)
|
19 |
+
|
20 |
+
cwd2 = os.path.join(cwd0, 'IX-Decoder-Demo')
|
21 |
+
os.chdir(cwd2)
|
22 |
+
os.system("python app.py")
|
requirements.txt
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
torchvision
|
3 |
+
opencv-python
|
4 |
+
pyyaml
|
5 |
+
json_tricks
|
6 |
+
yacs
|
7 |
+
scikit-learn
|
8 |
+
pandas
|
9 |
+
timm==0.4.12
|
10 |
+
numpy==1.23.5
|
11 |
+
einops
|
12 |
+
fvcore
|
13 |
+
transformers==4.19.2
|
14 |
+
sentencepiece
|
15 |
+
ftfy
|
16 |
+
regex
|
17 |
+
nltk
|
18 |
+
vision-datasets==0.2.2
|
19 |
+
pycocotools==2.0.4
|
20 |
+
diffdist
|
21 |
+
pyarrow
|
22 |
+
cityscapesscripts
|
23 |
+
shapely
|
24 |
+
scikit-image
|
25 |
+
mup
|
26 |
+
gradio==3.13.0
|
27 |
+
scann
|
28 |
+
kornia==0.6.4
|
29 |
+
torchmetrics==0.6.0
|
30 |
+
torch==1.13
|
31 |
+
torchvision
|
32 |
+
invisible-watermark
|
33 |
+
diffusers==0.11.1
|
34 |
+
accelerate
|
35 |
+
altair
|
36 |
+
openai
|
37 |
+
git+https://github.com/arogozhnikov/einops.git
|
38 |
+
git+https://github.com/openai/whisper.git
|