Update gradio_app.py
Browse files- gradio_app.py +23 -25
gradio_app.py
CHANGED
@@ -48,32 +48,30 @@ def run_epic_inference(video_path, caption, motion_type):
|
|
48 |
# Save uploaded video
|
49 |
if video_path:
|
50 |
os.system(f"cp '{video_path}' {temp_input_path}")
|
51 |
-
|
52 |
-
# Construct command to run inference
|
53 |
command = [
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
output_dir,
|
77 |
]
|
78 |
|
79 |
# Run inference command
|
|
|
48 |
# Save uploaded video
|
49 |
if video_path:
|
50 |
os.system(f"cp '{video_path}' {temp_input_path}")
|
51 |
+
|
|
|
52 |
command = [
|
53 |
+
"python",
|
54 |
+
"/app/inference/v2v_data/inference.py",
|
55 |
+
"--video_path",
|
56 |
+
temp_input_path,
|
57 |
+
"--stride",
|
58 |
+
"1",
|
59 |
+
"--out_dir",
|
60 |
+
output_dir,
|
61 |
+
"--radius_scale",
|
62 |
+
"1",
|
63 |
+
"--camera",
|
64 |
+
"traj",
|
65 |
+
"--mask",
|
66 |
+
"--target_pose", "0", "30", "-0.6", "0", "0",
|
67 |
+
"--traj_txt",
|
68 |
+
traj_txt,
|
69 |
+
"--save_name",
|
70 |
+
f"amalfi-coast_traj_{traj_name}",
|
71 |
+
"--mode",
|
72 |
+
"gradual",
|
73 |
+
"--out_dir",
|
74 |
+
output_dir,
|
|
|
75 |
]
|
76 |
|
77 |
# Run inference command
|