From a450fa75edb927b7568b8a3198f9209c6a4c7f79 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 3 Jun 2018 14:46:18 +0200 Subject: adjusting the form, calling samplernn tasks --- app/client/modules/samplernn/samplernn.actions.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'app/client/modules/samplernn/samplernn.actions.js') diff --git a/app/client/modules/samplernn/samplernn.actions.js b/app/client/modules/samplernn/samplernn.actions.js index e8f8251..25c9699 100644 --- a/app/client/modules/samplernn/samplernn.actions.js +++ b/app/client/modules/samplernn/samplernn.actions.js @@ -179,3 +179,18 @@ export const fetch_url = (url) => (dispatch) => { opt: { url } }, { preempt: true, watch: true }) } + +export const train_task_now = (dataset) => (dispatch) => { + const task = { + module: 'samplernn', + activity: 'train', + dataset: dataset, + epochs: 6, + opt: { + sample_length: 44100 * 5, + n_samples: 6, + keep_old_checkpoints: false, + } + } + return actions.queue.start_task(task) +} \ No newline at end of file -- cgit v1.2.3-70-g09d2