summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/relay/modules/samplernn.js10
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
}
}