Skip to content

Commit

Permalink
updated example usage
Browse files Browse the repository at this point in the history
Signed-off-by: ericharper <[email protected]>
  • Loading branch information
ericharper committed Jul 22, 2020
1 parent db1eaeb commit fbf849d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions examples/asr/speech_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
model.train_ds.manifest_filepath="/Users/okuchaiev/Data/an4_dataset/an4_train.json" \
model.validation_ds.manifest_filepath="/Users/okuchaiev/Data/an4_dataset/an4_val.json" \
hydra.run.dir="." \
pl.trainer.gpus=0 \
pl.trainer.max_epochs=50
trainer.gpus=0 \
trainer.max_epochs=50
Add PyTorch Lightning Trainer arguments from CLI:
python speech_to_text.py \
... \
+pl.trainer.fast_dev_run=true
+trainer.fast_dev_run=true
Hydra logs will be found in "$(./outputs/$(date +"%y-%m-%d")/$(date +"%H-%M-%S")/.hydra)"
PTL logs will be found in "$(./outputs/$(date +"%y-%m-%d")/$(date +"%H-%M-%S")/lightning_logs)"
Expand All @@ -42,8 +42,8 @@
model.train_ds.manifest_filepath="./an4/train_manifest.json" \
model.validation_ds.manifest_filepath="./an4/test_manifest.json" \
hydra.run.dir="." \
pl.trainer.gpus=2 \
pl.trainer.max_epochs=2 \
trainer.gpus=2 \
trainer.max_epochs=2 \
model.optim.args.params.betas=[0.8,0.5] \
model.optim.args.params.weight_decay=0.0001
Expand All @@ -52,8 +52,8 @@
model.train_ds.manifest_filepath="./an4/train_manifest.json" \
model.validation_ds.manifest_filepath="./an4/test_manifest.json" \
hydra.run.dir="." \
pl.trainer.gpus=2 \
pl.trainer.max_epochs=2 \
trainer.gpus=2 \
trainer.max_epochs=2 \
model.optim.name=adamw \
model.optim.lr=0.001 \
~model.optim.args \
Expand Down
6 changes: 3 additions & 3 deletions examples/asr/speech_to_text_bpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
model.train_ds.manifest_filepath="./an4/train_manifest.json" \
model.validation_ds.manifest_filepath="./an4/test_manifest.json" \
model.tokenizer.path="./an4/tokenizer/LibriSpeechTokenizer/librispeech_tokenizer_bpe_v1024/" \
pl.trainer.gpus=2 \
pl.trainer.distributed_backend="ddp" \
pl.trainer.max_epochs=100 \
trainer.gpus=2 \
trainer.distributed_backend="ddp" \
trainer.max_epochs=100 \
model.optim.name="adamw" \
model.optim.lr=0.1 \
model.optim.args.params.betas=[0.9,0.999] \
Expand Down
6 changes: 3 additions & 3 deletions examples/speaker_recognition/speaker_reco.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
model.train_ds.manifest_filepath="<train_manifest_file>" \
model.validation_ds.manifest_filepath="<validation_manifest_file>" \
hydra.run.dir="." \
pl.trainer.gpus=0 \
pl.trainer.max_epochs=50
trainer.gpus=0 \
trainer.max_epochs=50
Add PyTorch Lightning Trainer arguments from CLI:
python speaker_reco.py \
... \
+pl.trainer.fast_dev_run=true
+trainer.fast_dev_run=true
Hydra logs will be found in "$(./outputs/$(date +"%y-%m-%d")/$(date +"%H-%M-%S")/.hydra)"
PTL logs will be found in "$(./outputs/$(date +"%y-%m-%d")/$(date +"%H-%M-%S")/lightning_logs)"
Expand Down

0 comments on commit fbf849d

Please sign in to comment.