summaryrefslogtreecommitdiff
path: root/app/client/modules/biggan/biggan.tasks.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/modules/biggan/biggan.tasks.js')
-rw-r--r--app/client/modules/biggan/biggan.tasks.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/app/client/modules/biggan/biggan.tasks.js b/app/client/modules/biggan/biggan.tasks.js
index 827add5..2aed088 100644
--- a/app/client/modules/biggan/biggan.tasks.js
+++ b/app/client/modules/biggan/biggan.tasks.js
@@ -7,6 +7,25 @@ import actions from '../../actions'
import module from './biggan.module'
+export const invert_task = (dataset, folder_id, epochs=1) => dispatch => {
+ dataset = dataset.name || dataset
+ if (dataset === 'PLACEHOLDER') return
+ const task = {
+ module: module.name,
+ activity: 'invert',
+ dataset,
+ opt: {
+ folder_id: folder_id,
+ }
+ }
+ if (!task.dataset) {
+ console.error("invert task: no dataset specified")
+ return
+ }
+ console.log(task)
+ return actions.queue.add_task(task)
+}
+
export const live_task = (opt) => dispatch => {
const task = {
module: module.name,
@@ -14,7 +33,6 @@ export const live_task = (opt) => dispatch => {
dataset: 'biggan',
opt
}
- console.log(task)
console.log('add live task')
return actions.queue.add_task(task)
}