From 25815ab4916dc8c9e3256cbfe53bea0535930f30 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 4 Sep 2018 13:53:30 +0200 Subject: fix loading bars --- app/client/modules/pix2pixhd/pix2pixhd.tasks.js | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'app/client/modules/pix2pixhd/pix2pixhd.tasks.js') diff --git a/app/client/modules/pix2pixhd/pix2pixhd.tasks.js b/app/client/modules/pix2pixhd/pix2pixhd.tasks.js index f3c5342..92c0ff4 100644 --- a/app/client/modules/pix2pixhd/pix2pixhd.tasks.js +++ b/app/client/modules/pix2pixhd/pix2pixhd.tasks.js @@ -52,3 +52,35 @@ export const live_task = (sequence, checkpoint, opt) => dispatch => { console.log('add live task') return actions.queue.add_task(task) } + +export const augment_task = (opt) => dispatch => { + const task = { + module: module.name, + activity: 'augment', + dataset: sequence, + checkpoint, + opt: { + ...opt, + poll_delay: 0.01, + } + } + console.log(task) + console.log('add live task') + return actions.queue.add_task(task) +} + +export const clear_recursive_task = (opt) => dispatch => { + const task = { + module: module.name, + activity: 'clear_recursive', + dataset: sequence, + checkpoint, + opt: { + ...opt, + } + } + console.log(task) + console.log('add live task') + return actions.queue.add_task(task) +} + -- cgit v1.2.3-70-g09d2