From c4bbd2afff59d89cacc5879834fa3bf710e26b1c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 13 Sep 2018 19:42:31 +0200 Subject: argz --- app/relay/modules/pix2pixhd.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/relay/modules') diff --git a/app/relay/modules/pix2pixhd.js b/app/relay/modules/pix2pixhd.js index e05f427..b4a206a 100644 --- a/app/relay/modules/pix2pixhd.js +++ b/app/relay/modules/pix2pixhd.js @@ -210,7 +210,7 @@ const render_recursive = { console.log('will not render mov') return 'CANCEL' } - const tag = task.checkpoint + '/' + task.dataset + '_' + pad(task.augment_take, 5) + '_' + pad(task.augment_make, 5) + const tag = task.dataset + '/' + pad(task.opt.epoch || 'latest', 2) + '_' + pad(task.opt.augment_take, 5) + '_' + pad(task.opt.augment_make, 5) console.log('rendering recursve path:', tag) return [ '--path', 'recursive', @@ -222,6 +222,7 @@ const render_recursive = { } function pad(num, size) { + if (isNaN(parseInt(num))) return num; var s = num + ""; while (s.length < size) s = "0" + s; return s; -- cgit v1.2.3-70-g09d2