# TypeError: Wav2Vec2FeatureExtractor.\_\_call\_\_() missing 1 required positional argument: 'raw\_speech'

**URL:** <https://discuss.huggingface.co/t/typeerror-wav2vec2featureextractor-call-missing-1-required-positional-argument-raw-speech/21058>\
**Category:** Beginners\
**Created:** [July 31, 2022, 7:47am UTC](https://discuss.huggingface.co/t/typeerror-wav2vec2featureextractor-call-missing-1-required-positional-argument-raw-speech/21058 "2022-07-31T07:47:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavle-tsotskolauri](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pavle-tsotskolauri](https://discuss.huggingface.co/u/pavle-tsotskolauri)\
**Post date:** [July 31, 2022, 7:47am UTC](https://discuss.huggingface.co/t/typeerror-wav2vec2featureextractor-call-missing-1-required-positional-argument-raw-speech/21058/1 "2022-07-31T07:47:12Z")

</div>

Hello  
I am followinh tutorial “[Fine-Tuning week of XLSR-Wav2Vec2 on 60 languages](https://github.com/huggingface/transformers/blob/main/examples/research_projects/wav2vec2/FINE_TUNE_XLSR_WAV2VEC2.md)”  
I am just copy pasting the code. I am trying to run “run\_common\_voices.py” script with following parameters:  
python run\_common\_voice.py   
–model\_name\_or\_path=“facebook/wav2vec2-large-xlsr-53”   
–dataset\_config\_name=“ka”   
–output\_dir=./wav2vec2-large-xlsr-georgian-demo   
–overwrite\_output\_dir   
–num\_train\_epochs=“5”   
–per\_device\_train\_batch\_size=“16”   
–learning\_rate=“3e-4”   
–warmup\_steps=“500”   
–evaluation\_strategy=“steps”   
–save\_steps=“400”   
–eval\_steps=“400”   
–logging\_steps=“400”   
–save\_total\_limit=“3”   
–freeze\_feature\_extractor   
–feat\_proj\_dropout=“0.0”   
–layerdrop=“0.1”   
–gradient\_checkpointing   
–fp16   
–group\_by\_length   
–do\_train --do\_eval

but I am getting the following error:

loading weights file [https://huggingface.co/facebook/wav2vec2-large-xlsr-53/resolve/main/pytorch\_model.bin](https://huggingface.co/facebook/wav2vec2-large-xlsr-53/resolve/main/pytorch_model.bin) from cache at /home/pavle/.cache/huggingface/transformers/5d2a20b45a1689a376ec4a6282b9d9be42f931cdf8daf07c3668ba1070a059d9.622b46163a38532eae8ac5423b0481dfc0b9ea401af488b5141772bdff889079  
Some weights of the model checkpoint at facebook/wav2vec2-large-xlsr-53 were not used when initializing Wav2Vec2ForCTC: [‘project\_hid.bias’, ‘quantizer.weight\_proj.bias’, ‘project\_q.weight’, ‘project\_hid.weight’, ‘project\_q.bias’, ‘quantizer.codevectors’, ‘quantizer.weight\_proj.weight’]

- This IS expected if you are initializing Wav2Vec2ForCTC from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing Wav2Vec2ForCTC from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).  
Some weights of Wav2Vec2ForCTC were not initialized from the model checkpoint at facebook/wav2vec2-large-xlsr-53 and are newly initialized: [‘lm\_head.weight’, ‘lm\_head.bias’]  
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.  
100%|████████████████████████████████████████████████████████████████████████████| 1585/1585 [00:17\<00:00, 92.73ex/s]  
100%|██████████████████████████████████████████████████████████████████████████████| 656/656 [00:07\<00:00, 87.72ex/s]  
0%| | 0/100 [00:00\<?, ?ba/s]  
Traceback (most recent call last):  
File “/home/pavle/Dev/ai/Georgian/transformers/examples/research\_projects/wav2vec2/run\_common\_voice.py”, line 513, in   
main()  
File “/home/pavle/Dev/ai/Georgian/transformers/examples/research\_projects/wav2vec2/run\_common\_voice.py”, line 423, in main  
train\_dataset = train\_dataset.map(  
File “/home/pavle/.local/lib/python3.10/site-packages/datasets/arrow\_dataset.py”, line 2387, in map  
return self.\_map\_single(  
File “/home/pavle/.local/lib/python3.10/site-packages/datasets/arrow\_dataset.py”, line 557, in wrapper  
out: Union[“Dataset”, “DatasetDict”] = func(self, \*args, \*\*kwargs)  
File “/home/pavle/.local/lib/python3.10/site-packages/datasets/arrow\_dataset.py”, line 524, in wrapper  
out: Union[“Dataset”, “DatasetDict”] = func(self, \*args, \*\*kwargs)  
File “/home/pavle/.local/lib/python3.10/site-packages/datasets/fingerprint.py”, line 480, in wrapper  
out = func(self, \*args, \*\*kwargs)  
File “/home/pavle/.local/lib/python3.10/site-packages/datasets/arrow\_dataset.py”, line 2775, in \_map\_single  
batch = apply\_function\_on\_filtered\_inputs(  
File “/home/pavle/.local/lib/python3.10/site-packages/datasets/arrow\_dataset.py”, line 2655, in apply\_function\_on\_filtered\_inputs  
processed\_inputs = function(\*fn\_args, \*additional\_args, \*\*fn\_kwargs)  
File “/home/pavle/.local/lib/python3.10/site-packages/datasets/arrow\_dataset.py”, line 2347, in decorated  
result = f(decorated\_item, \*args, \*\*kwargs)  
File “/home/pavle/Dev/ai/Georgian/transformers/examples/research\_projects/wav2vec2/run\_common\_voice.py”, line 417, in prepare\_dataset  
processed\_batch = processor(  
File “/home/pavle/.local/lib/python3.10/site-packages/transformers/models/wav2vec2/processing\_wav2vec2.py”, line 73, in **call**  
return self.current\_processor(\*args, \*\*kwargs)  
TypeError: Wav2Vec2FeatureExtractor. **call** () missing 1 required positional argument: ‘raw\_speech’

I looked everywhere but I am unable to find anything about this
