diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-08 00:34:05 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-08 00:34:05 +0200 |
| commit | fec93601f163d22760978c9db61c4a78ce5281da (patch) | |
| tree | d9bfe66d6e144f478997a7bda9610fc73f3c440a /app/relay/modules/samplernn.js | |
| parent | 8850e41b3c51a5d90ca6c1667d6c1b1cebae6ad0 (diff) | |
samplernn tasks
Diffstat (limited to 'app/relay/modules/samplernn.js')
| -rw-r--r-- | app/relay/modules/samplernn.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/relay/modules/samplernn.js b/app/relay/modules/samplernn.js index 4ce4f23..668ab24 100644 --- a/app/relay/modules/samplernn.js +++ b/app/relay/modules/samplernn.js @@ -37,6 +37,18 @@ const train = { '--keep_old_checkpoints', task.opt.keep_old_checkpoints ? 'True' : 'False', ] }, + listen: (task, line, i) => { + // ################################################################################ + // Epoch summary: + // training_loss: 1.4509 validation_loss: 1.4260 test_loss: 1.4316 + // ################################################################################ + // + if ( line.match(/Epoch summary/) ) { + task.epoch += 1 + return { type: 'progress', action: 'epoch', task, } + } + return null + } after: publish, } const generate = { |
