summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-25 18:02:16 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-25 18:02:16 +0200
commit67110341348c77c7284b5316e55cc38d7a3e1343 (patch)
tree5f4e39f6b4c29fd52b932a6dfa93f9f484b69960
parentb1b6a118d1c1f04164e1c6f386cd345597dbf3a7 (diff)
process sequences
-rw-r--r--run.py4
1 files 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]