alexnasa commited on
Commit
d38ca73
·
verified ·
1 Parent(s): b94a387

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -11,9 +11,9 @@ import sys
11
 
12
 
13
  # Set environment variables
14
- os.environ["CODE_BASE"] = "."
15
- os.environ["PREPROCESSED_DATA"] = "./proprocess_results"
16
- os.environ["TRACKING_OUTPUT"] = "./tracking_results"
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):