diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-29 20:30:13 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-29 20:30:13 +0100 |
| commit | bd0fd9bdde8effd7b965cfe8f4808d8675e64e00 (patch) | |
| tree | 2d9ee50e925f6050276eaef875715222a6135cb7 /augment.py | |
| parent | d4d237c183b316b79a747c7e2feb748d0b0372d8 (diff) | |
| parent | 2d756e6101157cce32aa53335b13d3a044952bfc (diff) | |
Merge branch 'master' of asdf.us:pix2pixhd
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)) + |
