mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 10:16:14 +00:00
Minor fixes.
This commit is contained in:
parent
4ab52eeea4
commit
f7ae6e9ebc
2
.github/workflows/run-pretrained.yml
vendored
2
.github/workflows/run-pretrained.yml
vendored
@ -85,6 +85,7 @@ jobs:
|
||||
export PYTHONPATH=$PWD:PYTHONPATH
|
||||
cd egs/librispeech/ASR
|
||||
./conformer_ctc/pretrained.py \
|
||||
--num-classes 500 \
|
||||
--checkpoint ./tmp/icefall-asr-conformer-ctc-bpe-500/exp/pretrained.pt \
|
||||
--lang-dir ./tmp/icefall-asr-conformer-ctc-bpe-500/data/lang_bpe_500 \
|
||||
--method ctc-decoding \
|
||||
@ -98,6 +99,7 @@ jobs:
|
||||
export PYTHONPATH=$PWD:$PYTHONPATH
|
||||
cd egs/librispeech/ASR
|
||||
./conformer_ctc/pretrained.py \
|
||||
--num-classes 500 \
|
||||
--checkpoint ./tmp/icefall-asr-conformer-ctc-bpe-500/exp/pretrained.pt \
|
||||
--lang-dir ./tmp/icefall-asr-conformer-ctc-bpe-500/data/lang_bpe_500 \
|
||||
./tmp/icefall-asr-conformer-ctc-bpe-500/test_wavs/1089-134686-0001.flac \
|
||||
|
@ -150,6 +150,15 @@ def get_parser():
|
||||
""",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--num-classes",
|
||||
type=int,
|
||||
default=5000,
|
||||
help="""
|
||||
Vocab size in the BPE model.
|
||||
""",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--eos-id",
|
||||
type=int,
|
||||
@ -183,7 +192,6 @@ def get_params() -> AttributeDict:
|
||||
"use_feat_batchnorm": True,
|
||||
"feature_dim": 80,
|
||||
"nhead": 8,
|
||||
"num_classes": 5000,
|
||||
"attention_dim": 512,
|
||||
"num_decoder_layers": 6,
|
||||
# parameters for decoding
|
||||
|
Loading…
x
Reference in New Issue
Block a user