From 67110341348c77c7284b5316e55cc38d7a3e1343 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 25 Jun 2018 18:02:16 +0200 Subject: process sequences --- run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index 5a65e57..4127cb3 100644 --- a/run.py +++ b/run.py @@ -84,8 +84,8 @@ def recurse_videos(moduleNetwork, tensorOutput, a, b, a_offset, b_offset, count, if (index % 10) == 0: print("{}...".format(index)) step /= 2 - a_img = load_image(os.path.join(a, "frame_{:05d}.png".format(frame_index + a_offset))) - b_img = load_image(os.path.join(b, "frame_{:05d}.png".format(frame_index + b_offset))) + a_img = load_image(os.path.join(a, "frame_{:0>5}.png".format(frame_index + a_offset))) + b_img = load_image(os.path.join(b, "frame_{:0>5}.png".format(frame_index + b_offset))) frame = process_two_frames(moduleNetwork, tensorOutput, a, b, a_offset, b_offset, a_img, b_img, frame_index, count, count / 2) if step < 2: return [frame] -- cgit v1.2.3-70-g09d2