diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-25 18:19:55 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-25 18:19:55 +0200 |
| commit | 021ff56e7265674f56dd63fc2d2f7200def19c10 (patch) | |
| tree | 5c2f3065c4dd7f3c06ef72f03d2df74e46c11cee | |
| parent | 5f86eb4be2cd47bcd4335b6e639b413d67bb8d19 (diff) | |
process sequences
| -rw-r--r-- | run.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
