Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -257,6 +257,10 @@ def generate_results_and_mesh(image, session_id=None):
|
|
257 |
mesh_dir = os.path.join(os.environ["PIXEL3DMM_TRACKING_OUTPUT"], session_id, "mesh")
|
258 |
mesh_file = first_file_from_dir(mesh_dir, "ply")
|
259 |
|
|
|
|
|
|
|
|
|
260 |
final_status = "\n".join([status1, status2, status3, status4])
|
261 |
return final_status, crop_img, normals_img, uv_img, track_img, mesh_file
|
262 |
|
|
|
257 |
mesh_dir = os.path.join(os.environ["PIXEL3DMM_TRACKING_OUTPUT"], session_id, "mesh")
|
258 |
mesh_file = first_file_from_dir(mesh_dir, "ply")
|
259 |
|
260 |
+
print(f"[DEBUG] looking in {mesh_dir}, found mesh_file = {mesh_file}")
|
261 |
+
if mesh_file and not os.path.exists(mesh_file):
|
262 |
+
print(f"[ERROR] mesh_file path exists variable is non‐existent on disk!")
|
263 |
+
|
264 |
final_status = "\n".join([status1, status2, status3, status4])
|
265 |
return final_status, crop_img, normals_img, uv_img, track_img, mesh_file
|
266 |
|