diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-25 18:18:32 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-25 18:18:32 +0200 |
| commit | f7f71439c823607cf2396323f5852e946958a2e1 (patch) | |
| tree | b1140c32f8eb416d710ac7bb3544bcbb045344a5 | |
| parent | c325a63c35b91a315077161df318bb45a49ee69f (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/4) + next_index = frame_index - (step/2) next_a_np = a_np next_b_np = middle_np else: - next_index = frame_index + (step/4) + next_index = frame_index + (step/2) 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) |
