Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,9 @@ sh("pip install -e .")
|
|
30 |
# tell Python to re-scan site-packages now that the egg-link exists
|
31 |
import importlib, site; site.addsitedir(site.getsitepackages()[0]); importlib.invalidate_caches()
|
32 |
|
33 |
-
from pixel3dmm import env_paths
|
34 |
import torch._dynamo
|
35 |
torch._dynamo.disable()
|
|
|
36 |
|
37 |
sh("cd src/pixel3dmm/preprocessing/facer && pip install -e . && cd ../../../..")
|
38 |
sh("cd src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils && sh make.sh && cd ../../../../../..")
|
@@ -202,7 +202,11 @@ def step4_track(state):
|
|
202 |
session_id = state.get("session_id")
|
203 |
tracking_conf.video_name = f'{session_id}'
|
204 |
tracker = Tracker(tracking_conf, flame_model, diff_renderer)
|
205 |
-
|
|
|
|
|
|
|
|
|
206 |
|
207 |
tracking_dir = os.path.join(os.environ["PIXEL3DMM_TRACKING_OUTPUT"], session_id, "frames")
|
208 |
image = first_image_from_dir(tracking_dir)
|
|
|
30 |
# tell Python to re-scan site-packages now that the egg-link exists
|
31 |
import importlib, site; site.addsitedir(site.getsitepackages()[0]); importlib.invalidate_caches()
|
32 |
|
|
|
33 |
import torch._dynamo
|
34 |
torch._dynamo.disable()
|
35 |
+
from pixel3dmm import env_paths
|
36 |
|
37 |
sh("cd src/pixel3dmm/preprocessing/facer && pip install -e . && cd ../../../..")
|
38 |
sh("cd src/pixel3dmm/preprocessing/PIPNet/FaceBoxesV2/utils && sh make.sh && cd ../../../../../..")
|
|
|
202 |
session_id = state.get("session_id")
|
203 |
tracking_conf.video_name = f'{session_id}'
|
204 |
tracker = Tracker(tracking_conf, flame_model, diff_renderer)
|
205 |
+
|
206 |
+
from torch._dynamo import disable as no_dynamo
|
207 |
+
|
208 |
+
with no_dynamo()
|
209 |
+
tracker.run()
|
210 |
|
211 |
tracking_dir = os.path.join(os.environ["PIXEL3DMM_TRACKING_OUTPUT"], session_id, "frames")
|
212 |
image = first_image_from_dir(tracking_dir)
|