summaryrefslogtreecommitdiff
path: root/train.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-14 19:20:31 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-14 19:20:31 +0200
commit88eecd62b75cc032752aa10121d376cc7bca418b (patch)
tree9c1a5dfb99c0d88d0523e6c96380257a0d474939 /train.py
parent60fb2b7c87b7e6aa179c6a973a8d6e39cbe7c594 (diff)
flag to prime the generator
Diffstat (limited to 'train.py')
-rw-r--r--train.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/train.py b/train.py
index 1f4ab3b..a40e5f6 100644
--- a/train.py
+++ b/train.py
@@ -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)