diff options
| author | jules@lens <julescarbon@gmail.com> | 2018-11-23 18:18:25 +0100 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2018-11-23 18:18:25 +0100 |
| commit | 57f041f7e9e08180c9539a172197e110aa486cd5 (patch) | |
| tree | d809e34dae4cb611cdba6255caf95f8929096145 /augment.py | |
| parent | b6247d1acbe4616fe5b25b38ca4dc93db87a5050 (diff) | |
upload check
Diffstat (limited to 'augment.py')
| -rwxr-xr-x | augment.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -172,5 +172,7 @@ for m in range(data_opt.augment_take): os.unlink(frame_A) 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+2]), os.path.abspath(frame_B)) + if index + 2 < len(sequence): + os.symlink(os.path.abspath(next_path), os.path.abspath(frame_A)) + os.symlink(os.path.abspath(sequence[index+2]), os.path.abspath(frame_B)) + |
