wanchichen commited on
Commit
0a5ce0a
1 Parent(s): 1b9d89a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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