diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-08-23 16:40:09 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-08-23 16:40:09 +0200 |
| commit | a0a0026b09f48215f2e30a1c5467ceda9027bf43 (patch) | |
| tree | dc2d4875a16adcd0c97db62ddbccc2613abb9cf3 /app/relay/modules | |
| parent | 14560688f4b2872ac4970a39970905f21fd57272 (diff) | |
parens
Diffstat (limited to 'app/relay/modules')
| -rw-r--r-- | app/relay/modules/samplernn.js | 6 |
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 |
