Update app.py
Browse files
app.py
CHANGED
@@ -93,13 +93,15 @@ def create_video(frames, fps, type):
|
|
93 |
mediapy.write_video(type + "_result.mp4", imgs, fps=fps)
|
94 |
return type + "_result.mp4"
|
95 |
|
|
|
|
|
96 |
|
97 |
def infer(glr_in, interpolation, fps_output):
|
98 |
|
99 |
fps_output = logscale(fps_output)
|
100 |
# 1. break video into frames and get FPS
|
101 |
#break_vid = get_frames(url_in, "vid_input_frame", "origin", resize_n)
|
102 |
-
frames_list = glr_in #break_vid[0]
|
103 |
fps = 1 #break_vid[1]
|
104 |
print(f"ORIGIN FPS: {fps}")
|
105 |
n_frame = int(300) #limited to 300 frames
|
|
|
93 |
mediapy.write_video(type + "_result.mp4", imgs, fps=fps)
|
94 |
return type + "_result.mp4"
|
95 |
|
96 |
+
def sortFiles(e):
|
97 |
+
return e[0]
|
98 |
|
99 |
def infer(glr_in, interpolation, fps_output):
|
100 |
|
101 |
fps_output = logscale(fps_output)
|
102 |
# 1. break video into frames and get FPS
|
103 |
#break_vid = get_frames(url_in, "vid_input_frame", "origin", resize_n)
|
104 |
+
frames_list = glr_in.sort(key=sortFiles) #break_vid[0]
|
105 |
fps = 1 #break_vid[1]
|
106 |
print(f"ORIGIN FPS: {fps}")
|
107 |
n_frame = int(300) #limited to 300 frames
|