From 04dcc4e9598448f4d317e55a15836dffb227f8f9 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 17 Jun 2018 21:55:04 +0200 Subject: runner --- app/relay/modules/pix2pixhd.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/relay/modules/pix2pixhd.js') diff --git a/app/relay/modules/pix2pixhd.js b/app/relay/modules/pix2pixhd.js index c5f9be5..194d9ef 100644 --- a/app/relay/modules/pix2pixhd.js +++ b/app/relay/modules/pix2pixhd.js @@ -9,7 +9,7 @@ const fetch = { script: 'get.pl', params: (task) => { console.log(task) - return [ task.module, task.opt.url ] + return [ task.opt.url ] }, listen: (task, res, i) => { // relay the new dataset name from youtube-dl or w/e @@ -78,10 +78,10 @@ const generate = { script: 'test.py', params: (task) => { return [ - '--dataroot', '/sequences/' + task.module + '/' + task.dataset, + '--dataroot', '/sequences/' + task.dataset, '--module_name', task.module, '--name', task.dataset, - '--start_img', '/sequences/' + task.module + '/' + task.dataset + '/frame_00001.png', + '--start_img', '/sequences/' + task.dataset + '/frame_00001.png', '--how_many', 1000, '--model', 'test', '--aspect_ratio', 1.777777, @@ -101,8 +101,8 @@ const live = { console.log(task) const opt = task.opt || {} return [ - '--dataroot', path.join(cwd, 'sequences', task.module, task.dataset), - '--start_img', path.join(cwd, 'sequences', task.module, task.dataset, 'frame_00001.png'), + '--dataroot', path.join(cwd, 'sequences', task.dataset), + '--start_img', path.join(cwd, 'sequences', task.dataset, 'frame_00001.png'), '--checkpoint-name', task.checkpoint, '--experiment', task.checkpoint, '--name', task.checkpoint, -- cgit v1.2.3-70-g09d2