From 21629fc4e7ab646148960fe13e64dc6415e118b3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 25 Jun 2018 20:22:26 +0200 Subject: smooth sequences --- run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'run.py') diff --git a/run.py b/run.py index 6563b43..8490a57 100644 --- a/run.py +++ b/run.py @@ -119,8 +119,8 @@ def average_two_videos(moduleNetwork, tensorOutput, a, b, a_offset, b_offset, st frames = [] steps *= dilate for i in range(0, steps * dilate, dilate): - a_fn = os.path.join(a, "frame_{:0>5}.png".format(int(frame_index + a_offset))) - b_fn = os.path.join(b, "frame_{:0>5}.png".format(int(frame_index + b_offset))) + a_fn = os.path.join(a, "frame_{:0>5}.png".format(int(i + a_offset))) + b_fn = os.path.join(b, "frame_{:0>5}.png".format(int(i + b_offset))) print("{} => {}".format(a_fn, b_fn)) a_np = load_image(a_fn) b_np = load_image(b_fn) -- cgit v1.2.3-70-g09d2