Spaces:
Runtime error
Runtime error
convert fps float to int
Browse files
app.py
CHANGED
|
@@ -223,13 +223,16 @@ def infer_auto(project_name, video_in, subject_to_remove):
|
|
| 223 |
|
| 224 |
#bmx_trees_folder = os.path.join(output_folder, "bmx-trees")
|
| 225 |
|
|
|
|
|
|
|
|
|
|
| 226 |
command = [
|
| 227 |
f"python",
|
| 228 |
f"inference_propainter.py",
|
| 229 |
f"--video={video_frames_folder}",
|
| 230 |
f"--mask={masks_folder}",
|
| 231 |
f"--output={output_folder}",
|
| 232 |
-
f"--save_fps={
|
| 233 |
]
|
| 234 |
|
| 235 |
execute_command(command)
|
|
|
|
| 223 |
|
| 224 |
#bmx_trees_folder = os.path.join(output_folder, "bmx-trees")
|
| 225 |
|
| 226 |
+
# Convert the float fps to an integer
|
| 227 |
+
needed_fps = int(video_frames[1])
|
| 228 |
+
|
| 229 |
command = [
|
| 230 |
f"python",
|
| 231 |
f"inference_propainter.py",
|
| 232 |
f"--video={video_frames_folder}",
|
| 233 |
f"--mask={masks_folder}",
|
| 234 |
f"--output={output_folder}",
|
| 235 |
+
f"--save_fps={needed_fps}"
|
| 236 |
]
|
| 237 |
|
| 238 |
execute_command(command)
|