From ccc9f74102e4432ac8341395174b0004b1435e32 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 16 Sep 2018 16:46:37 +0200 Subject: surface sequence/dataset count... --- app/client/modules/pix2pixhd/pix2pixhd.actions.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/client/modules/pix2pixhd/pix2pixhd.actions.js') diff --git a/app/client/modules/pix2pixhd/pix2pixhd.actions.js b/app/client/modules/pix2pixhd/pix2pixhd.actions.js index 811f913..a17eeab 100644 --- a/app/client/modules/pix2pixhd/pix2pixhd.actions.js +++ b/app/client/modules/pix2pixhd/pix2pixhd.actions.js @@ -202,7 +202,7 @@ export const list_epochs = (checkpoint_name) => (dispatch) => { }) } -export const count_sequence_dataset = (checkpoint_name) => (dispatch) => { +export const count_dataset = (checkpoint_name) => (dispatch) => { const module = pix2pixhdModule.name util.allProgress([ actions.socket.count_directory({ module, dir: 'sequences/' + checkpoint_name + '/' }), @@ -218,8 +218,9 @@ export const count_sequence_dataset = (checkpoint_name) => (dispatch) => { const [sequenceCount, datasetCount] = res //, datasets, results, output, datasetUsage, lossReport] = res console.log(sequenceCount, datasetCount) dispatch({ - type: types.pix2pixhd.load_results, - results: { + type: types.pix2pixhd.load_dataset_count, + data: { + name: checkpoint_name, sequenceCount, datasetCount, } -- cgit v1.2.3-70-g09d2