diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-25 20:22:26 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-25 20:22:26 +0200 |
| commit | 21629fc4e7ab646148960fe13e64dc6415e118b3 (patch) | |
| tree | d0ecea332c657196c9800302056d7df831077157 /run.py | |
| parent | 8b68e8eef4bb001e6508a70c4ba1adee6805b882 (diff) | |
smooth sequences
Diffstat (limited to 'run.py')
| -rw-r--r-- | run.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
