summaryrefslogtreecommitdiff
path: root/app/client/modules/pix2pixhd/pix2pixhd.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-24 00:36:21 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-24 00:36:21 +0200
commit0717df361a510e0ce02a4e8cb00796a4b897f02f (patch)
treee76296313540a9d389b1960d1613ecc79fe60d2f /app/client/modules/pix2pixhd/pix2pixhd.actions.js
parentd0b5aee1fbd50d58c418952cd649c6ed28260e23 (diff)
check if dataset is generated
Diffstat (limited to 'app/client/modules/pix2pixhd/pix2pixhd.actions.js')
-rw-r--r--app/client/modules/pix2pixhd/pix2pixhd.actions.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/client/modules/pix2pixhd/pix2pixhd.actions.js b/app/client/modules/pix2pixhd/pix2pixhd.actions.js
index 44a42c4..d067017 100644
--- a/app/client/modules/pix2pixhd/pix2pixhd.actions.js
+++ b/app/client/modules/pix2pixhd/pix2pixhd.actions.js
@@ -202,11 +202,11 @@ export const list_epochs = (checkpoint_name) => (dispatch) => {
})
}
-export const count_dataset = (checkpoint_name) => (dispatch) => {
+export const count_dataset = (dataset) => (dispatch) => {
const module = pix2pixhdModule.name
util.allProgress([
- actions.socket.list_directory({ module, dir: 'sequences/' + checkpoint_name + '/' }),
- actions.socket.count_directory({ module, dir: 'datasets/' + checkpoint_name + '/train_A/' }),
+ actions.socket.list_directory({ module, dir: 'sequences/' + dataset + '/' }),
+ actions.socket.count_directory({ module, dir: 'datasets/' + dataset + '/train_A/' }),
], (percent, i, n) => {
console.log('pix2pixhd load progress', i, n)
// dispatch({
@@ -221,7 +221,7 @@ export const count_dataset = (checkpoint_name) => (dispatch) => {
dispatch({
type: types.pix2pixhd.load_dataset_count,
data: {
- name: checkpoint_name,
+ name: dataset,
sequence,
sequenceCount,
datasetCount,