diff options
| author | jules@lens <julescarbon@gmail.com> | 2018-09-13 19:03:26 +0200 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2018-09-13 19:03:26 +0200 |
| commit | c584d7c61ff68bc87a4ee7837727c9e24f99bf33 (patch) | |
| tree | ea8d97ce26450298bed7d11c5e240a9a8d23ed9a /augment.py | |
| parent | b1d5d82fb88fd4157d3c47a9de86583d8770877f (diff) | |
| parent | f987d163754044f6dc032325766f4c6c7e1dc401 (diff) | |
Merge branch 'master' of asdf.us:pix2pixhd
Diffstat (limited to 'augment.py')
| -rwxr-xr-x | augment.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -157,6 +157,9 @@ for m in range(data_opt.augment_take): image_pil.save(tmp_path) os.rename(tmp_path, next_path) + if data_opt.no_symlink: + continue + frame_A = os.path.join("./datasets/", data_opt.sequence_name, "train_A", "recur_{}_{:05d}_{:05d}.png".format(epoch_id, m, index+1)) frame_B = os.path.join("./datasets/", data_opt.sequence_name, "train_B", "recur_{}_{:05d}_{:05d}.png".format(epoch_id, m, index+1)) if os.path.exists(frame_A): @@ -165,5 +168,3 @@ for m in range(data_opt.augment_take): 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)) - - |
