From a133571dc7d073290b927877b54ca4cad06b0ad9 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 30 Sep 2021 12:15:47 +0800 Subject: [PATCH] Add more comments. --- .../ASR/conformer_ctc/run-multi-node-multi-gpu.sh | 7 ++++++- egs/librispeech/ASR/conformer_ctc/train.py | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/egs/librispeech/ASR/conformer_ctc/run-multi-node-multi-gpu.sh b/egs/librispeech/ASR/conformer_ctc/run-multi-node-multi-gpu.sh index d7a17c490..e1fb6f428 100755 --- a/egs/librispeech/ASR/conformer_ctc/run-multi-node-multi-gpu.sh +++ b/egs/librispeech/ASR/conformer_ctc/run-multi-node-multi-gpu.sh @@ -1,9 +1,11 @@ #!/usr/bin/env bash # +# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) +# # This script is the entry point to start model training # with multi-node multi-GPU. # -# Read the usage instructions for how to run this script. +# Read the usage instructions below for how to run this script. set -e @@ -20,6 +22,9 @@ master_port=1234 # # Use ./conformer_ctc/train.py --help to see more # +# If you add more parameters here, remember to append them to the +# end of this file. +# max_duration=200 bucketing_sampler=1 full_libri=1 diff --git a/egs/librispeech/ASR/conformer_ctc/train.py b/egs/librispeech/ASR/conformer_ctc/train.py index f7ac47076..81d6d4a10 100755 --- a/egs/librispeech/ASR/conformer_ctc/train.py +++ b/egs/librispeech/ASR/conformer_ctc/train.py @@ -64,7 +64,11 @@ def get_parser(): "--use-multi-node", type=str2bool, default=False, - help="True if using multi-node multi-GPU.", + help="""True if using multi-node multi-GPU. + You are not supposed to set it directly. + See ./conformer_ctc/run-multi-node-multi-gpu.sh + for details. + """, ) parser.add_argument(