From a0a0026b09f48215f2e30a1c5467ceda9027bf43 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 23 Aug 2019 16:40:09 +0200 Subject: parens --- app/relay/modules/samplernn.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/relay/modules/samplernn.js') 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 -- cgit v1.2.3-70-g09d2