Skip to content
Snippets Groups Projects
Commit 43e0c5df authored by Linke, Julian's avatar Linke, Julian
Browse files

Update file README.md

parent f1338272
Branches
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ conda activate speechcodebookanalysis ...@@ -71,7 +71,7 @@ conda activate speechcodebookanalysis
The file ```conda.sh``` is sourced at the beginning of ```run.sh```. The file ```conda.sh``` is sourced at the beginning of ```run.sh```.
### Fairseq Repository ### Fairseq Repository (as of 27th July, 2023)
You need to clone the fairseq repository to another directory (e.g., ```../fairseq```). You need to clone the fairseq repository to another directory (e.g., ```../fairseq```).
``` ```
...@@ -80,7 +80,7 @@ git clone https://github.com/facebookresearch/fairseq.git ...@@ -80,7 +80,7 @@ git clone https://github.com/facebookresearch/fairseq.git
Make sure to modify the file ```path.sh``` in order to export the necessary environment variables. The file ```path.sh``` is also sourced at the beginning of ```run.sh```. Make sure to modify the file ```path.sh``` in order to export the necessary environment variables. The file ```path.sh``` is also sourced at the beginning of ```run.sh```.
### Model File ### Model File (as of 27th July, 2023)
**You need to download and store a model file**. In the main script (```run.sh```) you can specify the ```model_path```. This study is based on the large pretrained model **XLSR-53** which can be downloaded here: [wav2vec2](https://github.com/facebookresearch/fairseq/blob/main/examples/wav2vec) **You need to download and store a model file**. In the main script (```run.sh```) you can specify the ```model_path```. This study is based on the large pretrained model **XLSR-53** which can be downloaded here: [wav2vec2](https://github.com/facebookresearch/fairseq/blob/main/examples/wav2vec)
**Unfortunately loading/initializing the model with version ```fairseq 0.12.2``` lead to errors because of mismatches with respect to dictionary keys. Anyway, we provide a script (```local/create_xlsr_new.py```) which removes some dictionary keys and stores a new version of the model preventing those errors** (see also [ISSUE](https://github.com/facebookresearch/fairseq/issues/3741)). **Unfortunately loading/initializing the model with version ```fairseq 0.12.2``` lead to errors because of mismatches with respect to dictionary keys. Anyway, we provide a script (```local/create_xlsr_new.py```) which removes some dictionary keys and stores a new version of the model preventing those errors** (see also [ISSUE](https://github.com/facebookresearch/fairseq/issues/3741)).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment