diff options
| author | jules@lens <julescarbon@gmail.com> | 2018-06-15 22:33:10 +0200 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2018-06-15 22:33:10 +0200 |
| commit | 410afb65bc350242d5ba248fb6a082db4d14e23b (patch) | |
| tree | 54c81f57c2df520bf5ac18af6f049b8bf1b63e19 | |
| parent | 1208f28342ad8770a4b45a1164227afef14f7f30 (diff) | |
pass thru epoch
| -rwxr-xr-x | latest.pl | 3 | ||||
| -rwxr-xr-x | mix.sh | 6 | ||||
| -rw-r--r-- | output/.gitkeep | 0 |
3 files changed, 6 insertions, 3 deletions
@@ -75,6 +75,7 @@ sub process($){ } $epoch[0] =~ /(\d+)/; + my $epoch_num = $1; #if ($1 < 4) { # return 0; #} @@ -95,7 +96,7 @@ sub process($){ print "\n"; print $name . ", $c samples\n"; print "\n"; - system('/bin/bash', 'mix.sh', $path, $name, $opt_e); + system('/bin/bash', 'mix.sh', $path, $name, $opt_e, $epoch_num); return 0; } @@ -1,13 +1,14 @@ #!/bin/bash -if [ "$#" -ne 3 ]; then - echo "Usage: $0 <results/exp\:experiment> render_name endpoint" +if [ "$#" -ne 4 ]; then + echo "Usage: $0 <results/exp\:experiment> render_name endpoint epoch" exit fi dir=$1 name=$2 endpoint=$3 +epoch=$4 now=`date +'%Y%m%d'` echo "rendering $name" @@ -32,6 +33,7 @@ else -F "module=samplernn" \ -F "activity=train" \ -F "generated=true" \ + -F "epoch=$epoch" \ -F "file=@./output/$name.mp3" \ $endpoint fi diff --git a/output/.gitkeep b/output/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/output/.gitkeep |
