(savePath, decoderModel)
| 126 | } |
| 127 | |
| 128 | async function saveDecoder(savePath, decoderModel) { |
| 129 | const decoderPath = path.join(savePath, 'decoder'); |
| 130 | mkdirp.sync(decoderPath); |
| 131 | const saveURL = `file://${decoderPath}`; |
| 132 | console.log(`Saving decoder to ${saveURL}`); |
| 133 | await decoderModel.save(saveURL); |
| 134 | } |
| 135 | |
| 136 | async function run(savePath, logDir) { |
| 137 | // Load the data |