diff options
Diffstat (limited to 'app/client/modules/pix2pixhd/pix2pixhd.actions.js')
| -rw-r--r-- | app/client/modules/pix2pixhd/pix2pixhd.actions.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/client/modules/pix2pixhd/pix2pixhd.actions.js b/app/client/modules/pix2pixhd/pix2pixhd.actions.js index 1ee4886..1b22616 100644 --- a/app/client/modules/pix2pixhd/pix2pixhd.actions.js +++ b/app/client/modules/pix2pixhd/pix2pixhd.actions.js @@ -135,3 +135,26 @@ export const load_directories = (id) => (dispatch) => { console.error(e) }) } + +export const load_results = (id) => (dispatch) => { + console.log('hi') + const module = pix2pixhdModule.name + util.allProgress([ + actions.file.index({ module, generated: true }), + actions.socket.list_sequences({ module, dir: 'results' }), + actions.socket.list_directory({ module, dir: 'renders' }), + ], (percent, i, n) => { + console.log('pix2pixhd load progress', i, n) + dispatch({ type: types.app.load_progress, progress: { i, n }}) + }).then(res => { + const [files, results, renders] = res //, datasets, results, output, datasetUsage, lossReport] = res + console.log(files, results, renders) + dispatch({ + type: types.pix2pixhd.load_results, + results: { + results, + renders, + } + }) + }) +}
\ No newline at end of file |
