|
28 | 28 | "In this tutorial, we will learn the different ways of inferring on a trained model. Please understand that this is not related to loading pretrained models for further training or transfer learning. If interested in these topics, refer to the corresponding [tutorial](https://colab.research.google.com/drive/1LN7R3U3xneDgDRK2gC5MzGkLysCWxuC3?usp=sharing).\n", |
29 | 29 | "\n", |
30 | 30 | "## Prerequisites\n", |
31 | | - "- [SpeechBrain Introduction](https://colab.research.google.com/drive/12bg3aUdr9mTfOGqcB5pSMABoIKPgiwcM?usp=sharing)\n", |
32 | | - "- [YAML tutorial](https://colab.research.google.com/drive/1Pg9by4b6-8QD2iC0U7Ic3Vxq4GEwEdDz?usp=sharing)\n", |
33 | | - "- [Brain Class tutorial](https://colab.research.google.com/drive/1fdqTk4CTXNcrcSVFvaOKzRfLmj4fJfwa?usp=sharing)\n", |
34 | | - "- [Pretraining tutorial](https://colab.research.google.com/drive/1LN7R3U3xneDgDRK2gC5MzGkLysCWxuC3?usp=sharing)\n", |
| 31 | + "- [SpeechBrain Introduction](https://speechbrain.readthedocs.io/en/latest/tutorials/basics/introduction-to-speechbrain.html)\n", |
| 32 | + "- [YAML tutorial](https://speechbrain.readthedocs.io/en/latest/tutorials/basics/hyperpyyaml.html)\n", |
| 33 | + "- [Brain Class tutorial](https://speechbrain.readthedocs.io/en/latest/tutorials/basics/brain-class.html)\n", |
| 34 | + "- [Pretraining tutorial](https://speechbrain.readthedocs.io/en/latest/tutorials/advanced/pre-trained-models-and-fine-tuning-with-huggingface.html\n", |
| 35 | + ")\n", |
35 | 36 | "\n", |
36 | 37 | "## Context\n", |
37 | 38 | "\n", |
38 | | - "In this example, we will consider a user that would like to use a custom pretrained speech recognizer **that has been trained by him** to transcribe some audio files. If you are interested in using online-available pretrained models, please refer to the [Pretraining tutorial](https://colab.research.google.com/drive/1LN7R3U3xneDgDRK2gC5MzGkLysCWxuC3?usp=sharing). The following can be extended to any SpeechBrain supported task as we provide an homogeneous way of dealing with all of them.\n", |
| 39 | + "In this example, we will consider a user that would like to use a custom pretrained speech recognizer **that has been trained by him** to transcribe some audio files. If you are interested in using online-available pretrained models, please refer to the [Pretraining tutorial](https://speechbrain.readthedocs.io/en/latest/tutorials/advanced/pre-trained-models-and-fine-tuning-with-huggingface.html\n", |
| 40 | + "). The following can be extended to any SpeechBrain supported task as we provide an homogeneous way of dealing with all of them.\n", |
39 | 41 | "\n", |
40 | 42 | "## Different options available\n", |
41 | 43 | "\n", |
42 | 44 | "At this point, three options are available to you:\n", |
43 | 45 | "1. Define a custom python function in your ASR class (extended from Brain). This introduces strong coupling between the training recipe and your transcripts. It is pretty convenient for prototyping and obtaining simple transcripts on your datasets. However, it is not recommended for deployment.\n", |
44 | | - "2. Use already available Interfaces (such as `EncoderDecoderASR`, introduction in the [pretraining tutorial](https://colab.research.google.com/drive/1LN7R3U3xneDgDRK2gC5MzGkLysCWxuC3?usp=sharing)). This is probably the most elegant and convenient way. However, your model should be compliant with some constraints to fit the proposed interface.\n", |
| 46 | + "2. Use already available Interfaces (such as `EncoderDecoderASR`, introduction in the [pretraining tutorial](https://speechbrain.readthedocs.io/en/latest/tutorials/advanced/pre-trained-models-and-fine-tuning-with-huggingface.html\n", |
| 47 | + ")). This is probably the most elegant and convenient way. However, your model should be compliant with some constraints to fit the proposed interface.\n", |
45 | 48 | "3. Build your own Interface perfectly fitting to your custom ASR model.\n", |
46 | 49 | "\n", |
47 | 50 | "**Important: All these solutions also apply to other tasks (speaker recognition, source separation ...)**\n", |
|
0 commit comments