Spaces:
Running
on
Zero
Running
on
Zero
import and install
Browse files- app.py +8 -0
- requirements.txt +17 -19
app.py
CHANGED
@@ -1,4 +1,12 @@
|
|
1 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import sys
|
3 |
import time
|
4 |
from pathlib import Path
|
|
|
1 |
import os
|
2 |
+
|
3 |
+
try:
|
4 |
+
import detectron2
|
5 |
+
import densepose
|
6 |
+
except ImportError:
|
7 |
+
os.system('pip install -e ./preprocess/detectron2')
|
8 |
+
os.system('pip install -e ./preprocess/detectron2/projects/DensePose')
|
9 |
+
|
10 |
import sys
|
11 |
import time
|
12 |
from pathlib import Path
|
requirements.txt
CHANGED
@@ -1,20 +1,18 @@
|
|
1 |
-
torch
|
2 |
-
torchvision
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
einops==0.7.0
|
17 |
-
onnxruntime==1.16.2
|
18 |
basicsr
|
19 |
-
./preprocess/detectron2
|
20 |
-
./preprocess/detectron2/projects/DensePose
|
|
|
1 |
+
torch
|
2 |
+
torchvision
|
3 |
+
numpy
|
4 |
+
scipy
|
5 |
+
scikit-image
|
6 |
+
opencv-python
|
7 |
+
pillow
|
8 |
+
diffusers
|
9 |
+
transformers
|
10 |
+
accelerate
|
11 |
+
matplotlib
|
12 |
+
tqdm
|
13 |
+
gradio
|
14 |
+
einops
|
15 |
+
onnxruntime
|
|
|
|
|
16 |
basicsr
|
17 |
+
# ./preprocess/detectron2
|
18 |
+
# ./preprocess/detectron2/projects/DensePose
|