diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-08-22 21:14:19 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-08-22 21:14:19 +0200 |
| commit | 14560688f4b2872ac4970a39970905f21fd57272 (patch) | |
| tree | e92d44603cb5d83cff2475afb1516bbc828a5e3f /app/relay | |
| parent | aeead87ed8b0b262d1ae09ea7908b244126d387d (diff) | |
args order
Diffstat (limited to 'app/relay')
| -rw-r--r-- | app/relay/modules/samplernn.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/relay/modules/samplernn.js b/app/relay/modules/samplernn.js index 36abaad..eae35da 100644 --- a/app/relay/modules/samplernn.js +++ b/app/relay/modules/samplernn.js @@ -71,17 +71,19 @@ const publish = { script: 'latest.pl', params: (task) => { const params = [ + '-l', '-e', process.env.API_REMOTE + '/api/folder/' + task.folder_id + '/upload/', - '-l', task.dataset, ] if (task.activity === 'generate') { - params.push('-n') // tag the generated ones - params.push([ + const tag = [ task.id, Math.round((task.opt.sample_length || 44100 * 5) / 44100) + 's', task.opt.n_samples + 'x', - ].join('_')) + ].join('_') + params.push('-n') // tag the generated ones + params.push(tag) } + params.push(task.dataset) return params } } |
