summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2018-06-15 22:33:10 +0200
committerjules@lens <julescarbon@gmail.com>2018-06-15 22:33:10 +0200
commit410afb65bc350242d5ba248fb6a082db4d14e23b (patch)
tree54c81f57c2df520bf5ac18af6f049b8bf1b63e19
parent1208f28342ad8770a4b45a1164227afef14f7f30 (diff)
pass thru epoch
-rwxr-xr-xlatest.pl3
-rwxr-xr-xmix.sh6
-rw-r--r--output/.gitkeep0
3 files changed, 6 insertions, 3 deletions
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 <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