From aad2b0ccc7678b056c3b0ea317085633e56b0e90 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 May 2018 04:35:27 +0200 Subject: whoa... running the command --- app/relay/modules/samplernn.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/relay') 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 -- cgit v1.2.3-70-g09d2