diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-03 15:35:26 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-03 15:35:26 +0100 |
| commit | ee2471bb4ad8e190c1f2c1c47817046a2c4d6b30 (patch) | |
| tree | 8ca5338987e5777a598b0a0d0eebbfc3625f7272 /app/client/modules/biggan/biggan.tasks.js | |
| parent | d6bed4f04c5bba402ae2aa0b15dddfb98c5b3bf1 (diff) | |
adding biggan dataset stuff
Diffstat (limited to 'app/client/modules/biggan/biggan.tasks.js')
| -rw-r--r-- | app/client/modules/biggan/biggan.tasks.js | 20 |
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) } |
