summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-25 20:22:26 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-25 20:22:26 +0200
commit21629fc4e7ab646148960fe13e64dc6415e118b3 (patch)
treed0ecea332c657196c9800302056d7df831077157
parent8b68e8eef4bb001e6508a70c4ba1adee6805b882 (diff)
smooth sequences
-rw-r--r--run.py4
1 files changed, 2 insertions, 2 deletions
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)