Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,9 @@ import sys
|
|
| 11 |
|
| 12 |
|
| 13 |
# Set environment variables
|
| 14 |
-
os.environ["
|
| 15 |
-
os.environ["
|
| 16 |
-
os.environ["
|
| 17 |
|
| 18 |
def sh(cmd): subprocess.check_call(cmd, shell=True)
|
| 19 |
|
|
@@ -22,8 +22,6 @@ sh("pip install -e .")
|
|
| 22 |
sh("cd src/pixel3dmm/preprocessing/facer && pip install -e .")
|
| 23 |
sh("cd src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils && sh make.sh")
|
| 24 |
|
| 25 |
-
import os
|
| 26 |
-
print("Current working dir:", os.getcwd())
|
| 27 |
|
| 28 |
# Utility to stitch frames into a video
|
| 29 |
def make_video_from_frames(frames_dir, out_path, fps=15):
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
# Set environment variables
|
| 14 |
+
os.environ["PIXEL3DMM_CODE_BASE"] = f"{os.getcwd()}"
|
| 15 |
+
os.environ["PIXEL3DMM_PREPROCESSED_DATA"] = f"{os.getcwd()}/proprocess_results"
|
| 16 |
+
os.environ["PIXEL3DMM_TRACKING_OUTPUT"] = f"{os.getcwd()}/tracking_results"
|
| 17 |
|
| 18 |
def sh(cmd): subprocess.check_call(cmd, shell=True)
|
| 19 |
|
|
|
|
| 22 |
sh("cd src/pixel3dmm/preprocessing/facer && pip install -e .")
|
| 23 |
sh("cd src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils && sh make.sh")
|
| 24 |
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# Utility to stitch frames into a video
|
| 27 |
def make_video_from_frames(frames_dir, out_path, fps=15):
|