summaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'run.py')
-rw-r--r--run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run.py b/run.py
index 04eac2c..36364ea 100644
--- a/run.py
+++ b/run.py
@@ -99,7 +99,7 @@ def recurse_videos(moduleNetwork, tensorOutput, a, b, a_offset, b_offset, count,
def process_two_videos(moduleNetwork, tensorOutput, a, b, a_offset, b_offset, steps, dilate):
steps *= dilate
- a_fn = os.path.join(a, "frame_{:0>5}.png".format(int(a_offset)))
+ a_fn = os.path.join(a, "frame_{:0>5}.png".format(max(int(a_offset), 1)))
frames = []
frames += [ load_image(a_fn) ]
frames += recurse_videos(moduleNetwork, tensorOutput, a, b, a_offset, b_offset, steps, steps, steps/2, dilate)