summaryrefslogtreecommitdiff
path: root/augment.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-29 20:30:13 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-29 20:30:13 +0100
commitbd0fd9bdde8effd7b965cfe8f4808d8675e64e00 (patch)
tree2d9ee50e925f6050276eaef875715222a6135cb7 /augment.py
parentd4d237c183b316b79a747c7e2feb748d0b0372d8 (diff)
parent2d756e6101157cce32aa53335b13d3a044952bfc (diff)
Merge branch 'master' of asdf.us:pix2pixhd
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 e330328..43ef6a3 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))
+