diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-14 19:20:31 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-14 19:20:31 +0200 |
| commit | 88eecd62b75cc032752aa10121d376cc7bca418b (patch) | |
| tree | 9c1a5dfb99c0d88d0523e6c96380257a0d474939 /train.py | |
| parent | 60fb2b7c87b7e6aa179c6a973a8d6e39cbe7c594 (diff) | |
flag to prime the generator
Diffstat (limited to 'train.py')
| -rw-r--r-- | train.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -218,7 +218,8 @@ def main(exp, frame_sizes, dataset, **params): )) trainer.register_plugin(GeneratorPlugin( os.path.join(results_path, 'samples'), params['n_samples'], - params['sample_length'], params['sample_rate'] + params['sample_length'], params['sample_rate'], + params['primer'] )) trainer.register_plugin( Logger([ @@ -355,6 +356,9 @@ if __name__ == '__main__': parser.add_argument( '--comet_key', help='comet.ml API key' ) + parser.add_argument( + '--primer', help='prime the generator...' + ) parser.set_defaults(**default_params) |
