yuchen005 commited on
Commit
527fc0c
1 Parent(s): 02bf225

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -32,6 +32,9 @@ You need to specify the raw speech path from utterance id in the script.
32
  Here are the available speech data: [CHiME-4](https://entuedu-my.sharepoint.com/:f:/g/personal/yuchen005_e_ntu_edu_sg/EuLgMQbjrIJHk7dKPkjcDMIB4SYgXKKP8VBxyiZk3qgdgA),
33
  [VB-DEMAND](https://datashare.ed.ac.uk/handle/10283/2791), [LS-FreeSound](https://github.com/archiki/Robust-E2E-ASR), [NOIZEUS](https://ecs.utdallas.edu/loizou/speech/noizeus/).
34
 
 
 
 
35
  UPDATE (Apr-29-2024): To support customization, We release the script `generate_robust_hp.py` for users to generate train/test data from their own ASR datasets.
36
  We also release two necessary packages for generation, one is the `jiwer` package that is locally imported in `generate_robust_hp.py`, another one is the whisper decoding script `decoding.py` that should be put under locally installed whisper directory `<your-path>/whisper/whisper`.
37
 
 
32
  Here are the available speech data: [CHiME-4](https://entuedu-my.sharepoint.com/:f:/g/personal/yuchen005_e_ntu_edu_sg/EuLgMQbjrIJHk7dKPkjcDMIB4SYgXKKP8VBxyiZk3qgdgA),
33
  [VB-DEMAND](https://datashare.ed.ac.uk/handle/10283/2791), [LS-FreeSound](https://github.com/archiki/Robust-E2E-ASR), [NOIZEUS](https://ecs.utdallas.edu/loizou/speech/noizeus/).
34
 
35
+ IMPORTANT: The vast speech feature size mentioned above is because Whisper requires a fix input length of 30s. Please do the follwing step before running data generation:
36
+ - Modified the [model code](https://github.com/openai/whisper/blob/main/whisper/model.py#L167) `x = (x + self.positional_embedding).to(x.dtype)` to be `x = (x + self.positional_embedding[:x.shape[1], :]).to(x.dtype)`
37
+
38
  UPDATE (Apr-29-2024): To support customization, We release the script `generate_robust_hp.py` for users to generate train/test data from their own ASR datasets.
39
  We also release two necessary packages for generation, one is the `jiwer` package that is locally imported in `generate_robust_hp.py`, another one is the whisper decoding script `decoding.py` that should be put under locally installed whisper directory `<your-path>/whisper/whisper`.
40