summaryrefslogtreecommitdiff
path: root/train_test_generate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'train_test_generate.sh')
-rw-r--r--train_test_generate.sh93
1 files changed, 93 insertions, 0 deletions
diff --git a/train_test_generate.sh b/train_test_generate.sh
new file mode 100644
index 0000000..af4f1c7
--- /dev/null
+++ b/train_test_generate.sh
@@ -0,0 +1,93 @@
+function generate () {
+ exp_name=$1
+ n_samples=$2
+ sample_rate=$3
+ duration=$4
+ let sample_length=$3*$4
+
+ echo ""
+ echo "###################################################"
+ echo "###################################################"
+ echo "###################################################"
+ echo ""
+ echo ">> generating $exp_name"
+ echo ""
+ echo "###################################################"
+ echo "###################################################"
+ echo "###################################################"
+ echo ""
+ python generate.py \
+ --exp $exp_name --dataset $exp_name \
+ --frame_sizes 8 2 \
+ --n_rnn 2 --dim 1024 --q_levels 256 \
+ --seq_len 1024 --batch_size 128 \
+ --val_frac 0.1 --test_frac 0.1 \
+ --sample_rate $sample_rate \
+ --sample_length $sample_length \
+ --keep_old_checkpoints False \
+ --n_samples $n_samples \
+ --epoch_limit 1 \
+ --resume True
+}
+function run () {
+ exp_name=$1
+ epoch_limit=$2
+ n_samples=$3
+ sample_rate=$4
+ duration=$5
+ let sample_length=$4*$5
+
+ echo ""
+ echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+ echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+ echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+ echo ""
+ echo ">> running $exp_name"
+ echo ""
+ echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+ echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+ echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+ echo ""
+ python train.py \
+ --exp $exp_name --dataset $exp_name \
+ --frame_sizes 8 2 \
+ --n_rnn 2 --dim 1024 --q_levels 256 \
+ --seq_len 1024 --batch_size 128 \
+ --val_frac 0.1 --test_frac 0.1 \
+ --sample_rate $sample_rate \
+ --sample_length $sample_length \
+ --n_samples $n_samples \
+ --keep_old_checkpoints False \
+ --epoch_limit $epoch_limit \
+ --resume True
+}
+function standard () {
+ dataset=$1
+ run $1 6 6 44100 5
+}
+function quick () {
+ dataset=$1
+ run $1 4 6 44100 5
+}
+function fast () {
+ dataset=$1
+ run $1 1 6 44100 10
+}
+
+standard 44k_blblbl2
+standard 44k_faty-scrub2
+standard 44k_faty-vocal2
+
+quick 44k_siren
+quick 44k_whatifvocode
+quick 44k_jlin-faty
+
+fast 44k_lipnoise
+quick 44k_jlin-faty
+quick 44k_jlin-faty
+
+run 44k_dances 8 6 44100 5
+run 44k_jlin4 4 3 44100 10
+
+run 44k_sundae 4 3 44100 10
+