Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,7 @@ 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 |
-
|
34 |
-
torch._dynamo.disable()
|
35 |
from pixel3dmm import env_paths
|
36 |
|
37 |
sh("cd src/pixel3dmm/preprocessing/facer && pip install -e . && cd ../../../..")
|
@@ -203,9 +202,9 @@ def step4_track(state):
|
|
203 |
tracking_conf.video_name = f'{session_id}'
|
204 |
tracker = Tracker(tracking_conf, flame_model, diff_renderer)
|
205 |
|
206 |
-
|
207 |
|
208 |
-
with
|
209 |
tracker.run()
|
210 |
|
211 |
tracking_dir = os.path.join(os.environ["PIXEL3DMM_TRACKING_OUTPUT"], session_id, "frames")
|
|
|
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 |
+
|
|
|
34 |
from pixel3dmm import env_paths
|
35 |
|
36 |
sh("cd src/pixel3dmm/preprocessing/facer && pip install -e . && cd ../../../..")
|
|
|
202 |
tracking_conf.video_name = f'{session_id}'
|
203 |
tracker = Tracker(tracking_conf, flame_model, diff_renderer)
|
204 |
|
205 |
+
import torch._dynamo
|
206 |
|
207 |
+
with torch._dynamo.disable():
|
208 |
tracker.run()
|
209 |
|
210 |
tracking_dir = os.path.join(os.environ["PIXEL3DMM_TRACKING_OUTPUT"], session_id, "frames")
|