diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-07 15:21:27 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-07 15:21:27 +0200 |
| commit | ab18a90b1a5c6d12faaa979e56903eaca93a7b0c (patch) | |
| tree | e00e105977b06e7c44e6ac8a02c32824a048807e /augment.py | |
| parent | 15efabd225f08921c4ffb83f488710ac7456f9d2 (diff) | |
augment plus 2
Diffstat (limited to 'augment.py')
| -rwxr-xr-x | augment.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -94,7 +94,7 @@ if not opt.engine and not opt.onnx: sequence = read_sequence(data_opt.sequence_name, '') print("Got sequence {}, {} images".format(data_opt.sequence_name, len(sequence))) -_len = len(sequence) - data_opt.augment_take - 1 +_len = len(sequence) - data_opt.augment_take - 2 if _len <= 0: print("Got empty sequence...") @@ -160,6 +160,6 @@ for m in range(data_opt.augment_take): if os.path.exists(frame_B): os.unlink(frame_B) os.symlink(os.path.abspath(next_path), os.path.abspath(frame_A)) - os.symlink(os.path.abspath(sequence[index+1]), os.path.abspath(frame_B)) + os.symlink(os.path.abspath(sequence[index+2]), os.path.abspath(frame_B)) |
