Spaces:
Running
on
Zero
Running
on
Zero
Commit
β’
807bce8
1
Parent(s):
e758926
softlink and reqs (#3)
Browse files- soft link (921e7bfe8e47f4164ff0b5117758a0161057a58d)
- reqs (2d9e5572d16f76bd2a6dce6ea6aa0a235e453893)
Co-authored-by: Minho Park <mpark@users.noreply.huggingface.co>
- app.py +0 -8
- densepose +1 -0
- detectron2 +1 -0
- requirements.txt +2 -2
app.py
CHANGED
@@ -1,12 +1,4 @@
|
|
1 |
import os
|
2 |
-
|
3 |
-
try:
|
4 |
-
import detectron2
|
5 |
-
import densepose
|
6 |
-
except ImportError:
|
7 |
-
os.system('pip install ./preprocess/detectron2')
|
8 |
-
os.system('pip install ./preprocess/detectron2/projects/DensePose')
|
9 |
-
|
10 |
import sys
|
11 |
import time
|
12 |
from pathlib import Path
|
|
|
1 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import sys
|
3 |
import time
|
4 |
from pathlib import Path
|
densepose
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
preprocess/detectron2/projects/DensePose/densepose/
|
detectron2
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
preprocess/detectron2/detectron2
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
torch
|
2 |
-
torchvision
|
3 |
numpy
|
4 |
scipy
|
5 |
scikit-image
|
|
|
1 |
+
torch==2.0.1
|
2 |
+
torchvision==0.15.2
|
3 |
numpy
|
4 |
scipy
|
5 |
scikit-image
|