Spaces:
Build error
Build error
combine output
Browse files- app.py +3 -1
- driving.mp4 +3 -0
- gradio_queue.db +0 -0
app.py
CHANGED
@@ -105,9 +105,11 @@ def inference(video, image):
|
|
105 |
cpu=True,
|
106 |
)
|
107 |
imageio.mimsave("result.mp4", [img_as_ubyte(frame) for frame in predictions], fps=fps)
|
|
|
108 |
cmd = f"ffmpeg -y -i result.mp4 -i {video} -c copy -map 0:0 -map 1:1 -shortest out.mp4"
|
109 |
subprocess.run(cmd.split())
|
110 |
-
|
|
|
111 |
|
112 |
|
113 |
title = "First Order Motion Model"
|
|
|
105 |
cpu=True,
|
106 |
)
|
107 |
imageio.mimsave("result.mp4", [img_as_ubyte(frame) for frame in predictions], fps=fps)
|
108 |
+
imageio.mimsave("driving.mp4", [img_as_ubyte(frame) for frame in driving_video], fps=fps)
|
109 |
cmd = f"ffmpeg -y -i result.mp4 -i {video} -c copy -map 0:0 -map 1:1 -shortest out.mp4"
|
110 |
subprocess.run(cmd.split())
|
111 |
+
cmd = "ffmpeg -y -i driving.mp4 -i out.mp4 -filter_complex hstack=inputs=2 final.mp4"
|
112 |
+
return "final.mp4"
|
113 |
|
114 |
|
115 |
title = "First Order Motion Model"
|
driving.mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4362329fa55b1671c9ec04a090ff24aac82a0339c5a0e541bb7ede05474b199f
|
3 |
+
size 201870
|
gradio_queue.db
CHANGED
Binary files a/gradio_queue.db and b/gradio_queue.db differ
|
|