From bd3db3205e675614bed8000e70530eb9749301bc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 14 Jun 2018 11:53:37 +0200 Subject: sequence loading --- live-mogrify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/live-mogrify.py b/live-mogrify.py index 86e82b7..155ee1d 100644 --- a/live-mogrify.py +++ b/live-mogrify.py @@ -331,7 +331,7 @@ def process_live_input(opt, data_opt, rpc_client, model): data_opt.load_sequence = False new_sequence = read_sequence(data_opt.sequence_name) if len(new_sequence) != 0: - print("Got sequence {}, {} images, first: {}".format(data_opt.sequence_name, len(sequence), sequence[0])) + print("Got sequence {}, {} images, first: {}".format(data_opt.sequence_name, len(new_sequence), new_sequence[0])) sequence = new_sequence sequence_i = 1 else: @@ -426,7 +426,8 @@ def process_live_input(opt, data_opt, rpc_client, model): cv2.imwrite(tmp_path, next_img) os.rename(tmp_path, next_path) - print("created {}".format(next_path)) + if (i % 20) == 0: + print("created {}".format(next_path)) if data_opt.pause: data_opt.pause = False break -- cgit v1.2.3-70-g09d2