Instructions to use espnet/xeus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ESPnet
How to use espnet/xeus with ESPnet:
import soundfile from espnet2.bin.asr_inference import Speech2Text model = Speech2Text.from_pretrained( "espnet/xeus" ) speech, rate = soundfile.read("speech.wav") text, *_ = model(speech)[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -214,11 +214,11 @@ with torch.cuda.amp.autocast(dtype=torch.bfloat16):
|
|
| 214 |
Tune the masking settings:
|
| 215 |
|
| 216 |
```python
|
| 217 |
-
|
| 218 |
xeus_model.masker.mask_prob = 0.65 # default 0.8
|
| 219 |
xeus_model.masker.mask_length = 20 # default 10
|
| 220 |
-
xeus_model.masker.mask_selection = 'static' # default uniform
|
| 221 |
xeus_model.train()
|
|
|
|
| 222 |
```
|
| 223 |
|
| 224 |
## Results
|
|
|
|
| 214 |
Tune the masking settings:
|
| 215 |
|
| 216 |
```python
|
|
|
|
| 217 |
xeus_model.masker.mask_prob = 0.65 # default 0.8
|
| 218 |
xeus_model.masker.mask_length = 20 # default 10
|
| 219 |
+
xeus_model.masker.mask_selection = 'static' # default 'uniform'
|
| 220 |
xeus_model.train()
|
| 221 |
+
feats = xeus_model.encode(wavs, wav_lengths, use_mask=True, use_final_output=False)[0][-1]
|
| 222 |
```
|
| 223 |
|
| 224 |
## Results
|