summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-25 18:19:55 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-25 18:19:55 +0200
commit021ff56e7265674f56dd63fc2d2f7200def19c10 (patch)
tree5c2f3065c4dd7f3c06ef72f03d2df74e46c11cee
parent5f86eb4be2cd47bcd4335b6e639b413d67bb8d19 (diff)
process sequences
-rw-r--r--run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run.py b/run.py
index 9c575e5..8ec6180 100644
--- a/run.py
+++ b/run.py
@@ -69,11 +69,11 @@ def recurse_two_frames(moduleNetwork, tensorOutput, a_np, b_np, frame_index, mor
middle_img = (numpy.rollaxis(middle_np, 0, 3)[:,:,::-1] * 255.0).astype(numpy.uint8)
return middle_img
if morph_index > frame_index:
- next_index = frame_index - (step/2)
+ next_index = frame_index - (step)
next_a_np = a_np
next_b_np = middle_np
else:
- next_index = frame_index + (step/2)
+ next_index = frame_index + (step)
next_a_np = middle_np
next_b_np = b_np
return recurse_two_frames(moduleNetwork, tensorOutput, next_a_np, next_b_np, frame_index, next_index, step/2, depth+1)