diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-14 11:53:37 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-14 11:53:37 +0200 |
| commit | bd3db3205e675614bed8000e70530eb9749301bc (patch) | |
| tree | 481e8683eda06fc2567ed5990d7f42108feea3e1 | |
| parent | 670508b37e164dc6c290ab9374e4ba1d7c7ec2fe (diff) | |
sequence loading
| -rw-r--r-- | live-mogrify.py | 5 |
1 files 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 |
