Spaces:
Build error
Build error
Ubuntu
commited on
Commit
·
09213d6
1
Parent(s):
7184c79
- .ipynb_checkpoints/app-checkpoint.py +2 -6
- app.py +2 -6
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -7,12 +7,8 @@ import numpy as np
|
|
| 7 |
import gc
|
| 8 |
|
| 9 |
def video_identity(video):
|
| 10 |
-
|
| 11 |
-
#
|
| 12 |
-
# video_arr = torch.from_numpy(clip['video']).permute(3, 0, 1, 2)
|
| 13 |
-
# write_video('out.mp4', video_arr, fps=60)
|
| 14 |
-
|
| 15 |
-
gc.collect()
|
| 16 |
# output_video_path = "./output.mp4"
|
| 17 |
capture = cv2.VideoCapture(video)
|
| 18 |
# fourcc = cv2.VideoWriter_fourcc(*"I420") # encoder
|
|
|
|
| 7 |
import gc
|
| 8 |
|
| 9 |
def video_identity(video):
|
| 10 |
+
|
| 11 |
+
# gc.collect()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# output_video_path = "./output.mp4"
|
| 13 |
capture = cv2.VideoCapture(video)
|
| 14 |
# fourcc = cv2.VideoWriter_fourcc(*"I420") # encoder
|
app.py
CHANGED
|
@@ -7,12 +7,8 @@ import numpy as np
|
|
| 7 |
import gc
|
| 8 |
|
| 9 |
def video_identity(video):
|
| 10 |
-
|
| 11 |
-
#
|
| 12 |
-
# video_arr = torch.from_numpy(clip['video']).permute(3, 0, 1, 2)
|
| 13 |
-
# write_video('out.mp4', video_arr, fps=60)
|
| 14 |
-
|
| 15 |
-
gc.collect()
|
| 16 |
# output_video_path = "./output.mp4"
|
| 17 |
capture = cv2.VideoCapture(video)
|
| 18 |
# fourcc = cv2.VideoWriter_fourcc(*"I420") # encoder
|
|
|
|
| 7 |
import gc
|
| 8 |
|
| 9 |
def video_identity(video):
|
| 10 |
+
|
| 11 |
+
# gc.collect()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# output_video_path = "./output.mp4"
|
| 13 |
capture = cv2.VideoCapture(video)
|
| 14 |
# fourcc = cv2.VideoWriter_fourcc(*"I420") # encoder
|