summaryrefslogtreecommitdiff
path: root/mix.sh
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 /mix.sh
parent1208f28342ad8770a4b45a1164227afef14f7f30 (diff)
pass thru epoch
Diffstat (limited to 'mix.sh')
-rwxr-xr-xmix.sh6
1 files changed, 4 insertions, 2 deletions
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