summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xaugment.py6
-rwxr-xr-xcleanup.sh1
-rwxr-xr-xdir-to-movie.pl2
-rw-r--r--splice.pl3
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");