diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-26 14:27:08 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-26 14:27:08 +0100 |
| commit | 4cf707e79c508db6a5e9f28faab936c7746cd9ac (patch) | |
| tree | 5d3d8aa6b14e006bcb8b5097f0d7bbe75ee7186b /app/relay | |
| parent | 17822c2f9ad3660a0ef91aaa25df200af32291a9 (diff) | |
continue train
Diffstat (limited to 'app/relay')
| -rw-r--r-- | app/relay/modules/pix2pixhd.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/relay/modules/pix2pixhd.js b/app/relay/modules/pix2pixhd.js index a01e321..db40781 100644 --- a/app/relay/modules/pix2pixhd.js +++ b/app/relay/modules/pix2pixhd.js @@ -49,8 +49,9 @@ const train = { const datasets_path = path.join(cwd, 'datasets', dataset) const checkpoints_path = path.join(cwd, 'checkpoints', dataset) const iter_txt = path.join(checkpoints_path, 'iter.txt') + const checkpoint_path = path.join(checkpoints_path, 'latest_net_G.pth') console.log(dataset, iter_txt) - if (fs.existsSync(iter_txt)) { + if (fs.existsSync(iter_txt) && fs.existsSync(checkpoint_path)) { const iter = fs.readFileSync(iter_txt).toString().split('\n'); console.log(iter) epoch = iter[0] || 0 |
