summaryrefslogtreecommitdiff
path: root/process_fns
diff options
context:
space:
mode:
Diffstat (limited to 'process_fns')
-rwxr-xr-xprocess_fns11
1 files changed, 6 insertions, 5 deletions
diff --git a/process_fns b/process_fns
index 0cbdeee..cef738d 100755
--- a/process_fns
+++ b/process_fns
@@ -1,12 +1,13 @@
# workon samplernn
function generate () {
- exp_name=$1
+ exp_name=${1%.*}
n_samples=$2
sample_rate=$3
duration=$4
let sample_length=$3*$4
+ sleep 0.1
echo ""
echo "###################################################"
echo "###################################################"
@@ -30,14 +31,14 @@ function generate () {
--n_samples $n_samples \
--epoch_limit 1 \
--resume True
- sleep 1
}
function gen_len () {
- exp_name=$1
+ exp_name=${1%.*}
n_samples=$2
sample_rate=$3
sample_length=$4
+ sleep 0.1
echo ""
echo "###################################################"
echo "###################################################"
@@ -63,13 +64,14 @@ function gen_len () {
--resume True
}
function run () {
- exp_name=$1
+ exp_name=${1%.*}
epoch_limit=$2
n_samples=$3
sample_rate=$4
duration=$5
let sample_length=$4*$5
+ sleep 0.1
echo ""
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
@@ -93,7 +95,6 @@ function run () {
--keep_old_checkpoints False \
--epoch_limit $epoch_limit \
--resume True
- sleep 1
}
function standard () {
dataset=$1