diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-29 04:35:27 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-29 04:35:27 +0200 |
| commit | aad2b0ccc7678b056c3b0ea317085633e56b0e90 (patch) | |
| tree | 8c41fe8625c2733d6cab15bb6f8e6677cb06f25d /app/relay/modules/samplernn.js | |
| parent | 1393e9effaa70947723e1da3f28d0cc4c36a67dd (diff) | |
whoa... running the command
Diffstat (limited to 'app/relay/modules/samplernn.js')
| -rw-r--r-- | app/relay/modules/samplernn.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/relay/modules/samplernn.js b/app/relay/modules/samplernn.js index 01a3b82..601acbb 100644 --- a/app/relay/modules/samplernn.js +++ b/app/relay/modules/samplernn.js @@ -6,7 +6,7 @@ const cwd = process.env.SAMPLERNN_CWD || path.join(process.env.HOME, 'code/' + n const fetch = { type: 'perl', script: 'get.pl', - params: (task) => { + build_params: (task) => { console.log(task) return [ task.opt.url ] } @@ -14,7 +14,7 @@ const fetch = { const train = { type: 'pytorch', script: 'train.py', - params: (task) => { + build_params: (task) => { }, onComplete: publish, // python train.py \ @@ -28,7 +28,7 @@ const train = { const generate = { type: 'pytorch', script: 'generate.py', - params: (task) => { + build_params: (task) => { }, onComplete: publish, // python generate.py \ @@ -42,7 +42,7 @@ const generate = { const publish = { type: 'perl', script: 'latest.pl', - params: (task) => { + build_params: (task) => { } } // after train and generate, run perl latest.pl -l $checkpoint_name |
