summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/relay/modules/samplernn.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/relay/modules/samplernn.js b/app/relay/modules/samplernn.js
index eae35da..141f8f9 100644
--- a/app/relay/modules/samplernn.js
+++ b/app/relay/modules/samplernn.js
@@ -32,7 +32,7 @@ const train = {
'--frame_sizes', '8', '2',
'--n_rnn', '2',
'--epoch_limit', task.epochs || 4,
- '--sample_length', task.opt.sample_length || 44100 * 5,
+ '--sample_length', task.opt.sample_length || (44100 * 5),
'--n_samples', task.opt.n_samples || 6,
'--keep_old_checkpoints', task.opt.keep_old_checkpoints ? 'True' : 'False',
]
@@ -60,7 +60,7 @@ const generate = {
'--dataset', task.dataset,
'--frame_sizes', '8', '2',
'--n_rnn', '2',
- '--sample_length', task.opt.sample_length || 44100 * 5,
+ '--sample_length', task.opt.sample_length || (44100 * 5),
'--n_samples', task.opt.n_samples || 6,
]
},
@@ -77,7 +77,7 @@ const publish = {
if (task.activity === 'generate') {
const tag = [
task.id,
- Math.round((task.opt.sample_length || 44100 * 5) / 44100) + 's',
+ Math.round((task.opt.sample_length || (44100 * 5)) / 44100) + 's',
task.opt.n_samples + 'x',
].join('_')
params.push('-n') // tag the generated ones