mpark commited on
Commit
2b917b0
β€’
1 Parent(s): 61c2d32

import and install

Browse files
Files changed (2) hide show
  1. app.py +8 -0
  2. 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.0.1
2
- torchvision==0.15.2
3
- torchaudio==2.0.2
4
- numpy==1.24.4
5
- scipy==1.10.1
6
- scikit-image==0.21.0
7
- opencv-python==4.7.0.72
8
- pillow==9.4.0
9
- diffusers==0.24.0
10
- transformers==4.36.2
11
- accelerate==0.26.1
12
- matplotlib==3.7.4
13
- tqdm==4.64.1
14
- gradio==4.16.0
15
- config==0.5.1
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