From 57f041f7e9e08180c9539a172197e110aa486cd5 Mon Sep 17 00:00:00 2001 From: "jules@lens" Date: Fri, 23 Nov 2018 18:18:25 +0100 Subject: upload check --- augment.py | 6 ++++-- cleanup.sh | 1 + dir-to-movie.pl | 2 ++ splice.pl | 3 ++- 4 files changed, 9 insertions(+), 3 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)) + diff --git a/cleanup.sh b/cleanup.sh index ee5f5ad..9d16216 100755 --- a/cleanup.sh +++ b/cleanup.sh @@ -14,6 +14,7 @@ rm checkpoints/*/4_*.pth rm checkpoints/*/5_*.pth rm checkpoints/*/6_*.pth rm checkpoints/*/7_*.pth +rm checkpoints/*/8_*.pth echo "Cleaning up recursive frames..." diff --git a/dir-to-movie.pl b/dir-to-movie.pl index 332c491..ea8992e 100755 --- a/dir-to-movie.pl +++ b/dir-to-movie.pl @@ -87,6 +87,8 @@ for my $line (@ffmpeg_lines) { print $line . "\n"; } +#print("upload disabled for now\n"); +#if (2 == 1 && defined $endpoint) { if (defined $endpoint) { print("upload to $endpoint\n"); system("curl", diff --git a/splice.pl b/splice.pl index 50fc170..29bfa3b 100644 --- a/splice.pl +++ b/splice.pl @@ -76,7 +76,8 @@ print $pwd . "\n"; my $sequence_i = 0; my $dataset_i = scalar @$dataset_files; my $last_fn = undef; -for my $filename (sort @$sequence_files) { +for my $fn (sort @$sequence_files) { + my $filename = "sequences/$sequence/$fn"; if ($start_frame <= $sequence_i and $sequence_i <= $end_frame) { chomp $filename; # print($pwd . $filename. "\n"); -- cgit v1.2.3-70-g09d2