summaryrefslogtreecommitdiff
path: root/app/relay
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-17 21:55:04 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-17 21:55:04 +0200
commit04dcc4e9598448f4d317e55a15836dffb227f8f9 (patch)
tree29082569b4a65089c8a643bbba0f2a5ed5ce8e51 /app/relay
parent3fcb003ea189c5f88f56ec2c2bf9f08e0a84128c (diff)
runner
Diffstat (limited to 'app/relay')
-rw-r--r--app/relay/modules/pix2pixhd.js10
1 files changed, 5 insertions, 5 deletions
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,