summaryrefslogtreecommitdiff
path: root/app/client/modules/pix2pixhd/pix2pixhd.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-04 13:53:30 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-04 13:53:30 +0200
commit25815ab4916dc8c9e3256cbfe53bea0535930f30 (patch)
tree4d87860e82ede57780497c6016e54bf1af68ca91 /app/client/modules/pix2pixhd/pix2pixhd.actions.js
parent56619248e5032b644ec7a8e215bd59aecad86c73 (diff)
fix loading bars
Diffstat (limited to 'app/client/modules/pix2pixhd/pix2pixhd.actions.js')
-rw-r--r--app/client/modules/pix2pixhd/pix2pixhd.actions.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/client/modules/pix2pixhd/pix2pixhd.actions.js b/app/client/modules/pix2pixhd/pix2pixhd.actions.js
index 8e481d3..6459794 100644
--- a/app/client/modules/pix2pixhd/pix2pixhd.actions.js
+++ b/app/client/modules/pix2pixhd/pix2pixhd.actions.js
@@ -21,7 +21,11 @@ export const load_directories = (id) => (dispatch) => {
// actions.socket.disk_usage({ module, dir: 'datasets' }),
], (percent, i, n) => {
console.log('pix2pixhd load progress', i, n)
- dispatch({ type: types.app.load_progress, progress: { i, n }})
+ dispatch({
+ type: types.app.load_progress,
+ progress: { i, n },
+ data: { module: 'pix2pixhd' },
+ })
}).then(res => {
const [datasetApiReport, sequences, datasets, checkpoints] = res //, datasets, results, output, datasetUsage, lossReport] = res
const {
@@ -157,7 +161,11 @@ export const load_results = (id) => (dispatch) => {
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 }})
+ dispatch({
+ type: types.app.load_progress,
+ progress: { i, n },
+ data: { module: 'pix2pixhd' },
+ })
}).then(res => {
const [folders, files, results, renders] = res //, datasets, results, output, datasetUsage, lossReport] = res
console.log(files, results, renders)