summaryrefslogtreecommitdiff
path: root/augment.py
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2018-11-23 18:18:25 +0100
committerjules@lens <julescarbon@gmail.com>2018-11-23 18:18:25 +0100
commit57f041f7e9e08180c9539a172197e110aa486cd5 (patch)
treed809e34dae4cb611cdba6255caf95f8929096145 /augment.py
parentb6247d1acbe4616fe5b25b38ca4dc93db87a5050 (diff)
upload check
Diffstat (limited to 'augment.py')
-rwxr-xr-xaugment.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/augment.py b/augment.py
index c0f8c7a..03b8140 100755
--- a/augment.py
+++ b/augment.py
@@ -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))
+