File tree Expand file tree Collapse file tree
recipes/fluent-speech-commands/direct Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,9 +56,7 @@ epoch_counter: !new:speechbrain.utils.epoch_loop.EpochCounter
5656 limit : !ref <number_of_epochs>
5757
5858# Models
59- asr_model : !apply:speechbrain.pretrained.EncoderDecoderASR.from_hparams
60- source : speechbrain/asr-crdnn-rnnlm-librispeech
61- run_opts : {"device":"cuda:0"}
59+ asr_model_source : speechbrain/asr-crdnn-rnnlm-librispeech
6260
6361slu_enc : !new:speechbrain.nnet.containers.Sequential
6462 input_shape : [null, null, !ref <ASR_encoder_dim>]
Original file line number Diff line number Diff line change @@ -322,6 +322,14 @@ def text_pipeline(semantics):
322322 run_on_main (hparams ["pretrainer" ].collect_files )
323323 hparams ["pretrainer" ].load_collected (device = run_opts ["device" ])
324324
325+ # Download pretrained ASR model
326+ from speechbrain .pretrained import EncoderDecoderASR
327+
328+ hparams ["asr_model" ] = EncoderDecoderASR .from_hparams (
329+ source = hparams ["asr_model_source" ],
330+ run_opts = {"device" : run_opts ["device" ]},
331+ )
332+
325333 # Brain class initialization
326334 slu_brain = SLU (
327335 modules = hparams ["modules" ],
You can’t perform that action at this time.
0 commit comments