mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-07 08:04:18 +00:00
Merge remote-tracking branch 'origin/modified-conformer-with-multi-datasets' into modified-conformer-with-multi-datasets
This commit is contained in:
commit
e9f0975868
@ -520,6 +520,11 @@ def main():
|
|||||||
model.eval()
|
model.eval()
|
||||||
model.device = device
|
model.device = device
|
||||||
|
|
||||||
|
# In beam_search.py, we are using model.decoder() and model.joiner(),
|
||||||
|
# so we have to switch to the branch for the GigaSpeech dataset.
|
||||||
|
model.decoder = model.decoder_giga
|
||||||
|
model.joiner = model.joiner_giga
|
||||||
|
|
||||||
if params.decoding_method == "fast_beam_search":
|
if params.decoding_method == "fast_beam_search":
|
||||||
decoding_graph = k2.trivial_graph(params.vocab_size - 1, device=device)
|
decoding_graph = k2.trivial_graph(params.vocab_size - 1, device=device)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user