From 410afb65bc350242d5ba248fb6a082db4d14e23b Mon Sep 17 00:00:00 2001 From: "jules@lens" Date: Fri, 15 Jun 2018 22:33:10 +0200 Subject: pass thru epoch --- latest.pl | 3 ++- mix.sh | 6 ++++-- output/.gitkeep | 0 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 output/.gitkeep diff --git a/latest.pl b/latest.pl index 35f59d7..3eef1a2 100755 --- a/latest.pl +++ b/latest.pl @@ -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; } diff --git a/mix.sh b/mix.sh index 1d9dba1..48e499b 100755 --- a/mix.sh +++ b/mix.sh @@ -1,13 +1,14 @@ #!/bin/bash -if [ "$#" -ne 3 ]; then - echo "Usage: $0 render_name endpoint" +if [ "$#" -ne 4 ]; then + echo "Usage: $0 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 -- cgit v1.2.3-70-g09d2