Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -33,14 +33,14 @@ os.environ["PIXEL3DMM_TRACKING_OUTPUT"] = f"{os.getcwd()}/tracking_results"
|
|
33 |
def sh(cmd): subprocess.check_call(cmd, shell=True)
|
34 |
|
35 |
sh("pip install -e .")
|
|
|
|
|
36 |
|
37 |
# tell Python to re-scan site-packages now that the egg-link exists
|
38 |
import importlib, site; site.addsitedir(site.getsitepackages()[0]); importlib.invalidate_caches()
|
39 |
|
40 |
from pixel3dmm import env_paths
|
41 |
|
42 |
-
sh("cd src/pixel3dmm/preprocessing/facer && pip install -e . && cd ../../../..")
|
43 |
-
sh("cd src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils && sh make.sh && cd ../../../../../..")
|
44 |
|
45 |
def install_cuda_toolkit():
|
46 |
CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run"
|
|
|
33 |
def sh(cmd): subprocess.check_call(cmd, shell=True)
|
34 |
|
35 |
sh("pip install -e .")
|
36 |
+
sh("cd src/pixel3dmm/preprocessing/facer && pip install -e . && cd ../../../..")
|
37 |
+
sh("cd src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils && sh make.sh && cd ../../../../../..")
|
38 |
|
39 |
# tell Python to re-scan site-packages now that the egg-link exists
|
40 |
import importlib, site; site.addsitedir(site.getsitepackages()[0]); importlib.invalidate_caches()
|
41 |
|
42 |
from pixel3dmm import env_paths
|
43 |
|
|
|
|
|
44 |
|
45 |
def install_cuda_toolkit():
|
46 |
CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run"
|