m-bain / whisperX

WhisperX: Automatic Speech Recognition with Word-level Timestamps (& Diarization)
BSD 2-Clause "Simplified" License
11.76k stars 1.24k forks source link

"missing 3 required positional arguments" #486

Open sfingali opened 1 year ago

sfingali commented 1 year ago

I ran Git Pull on the repo yesterday to update and whisperX now won't run. I get the following errors:

"TypeError: TranscriptionOptions.new() missing 3 required positional arguments: 'repetition_penalty', 'no_repeat_ngram_size', and 'prompt_reset_on_temperature'"

I've create a clean environment and the problem still comes up.

Afiyetolsun commented 1 year ago

Same!) Will post the solution if found

Afiyetolsun commented 1 year ago

@sfingali Install it like that, pip install from git not working well for now

If wishing to modify this package, clone and install in editable mode:

$ git clone https://github.com/m-bain/whisperX.git $ cd whisperX $ pip install -e .

remic33 commented 1 year ago

Update your installation should work

GrahLnn commented 1 year ago

I got same issue, you can add the argument to default_asr_options in asr.py for temporary fix.

"repetition_penalty": 1, 
"prompt_reset_on_temperature": 0.5,
"no_repeat_ngram_size": 2,
Luminarcy commented 1 year ago

Having this issue too

remic33 commented 1 year ago

This issue has been corrected some time ago. This was because fast_whisper was ahead of whisperX on the default_asr_options. You have to update whisperX install to the current version.

Chunyfong commented 11 months ago

have the same problem, i tried to follow @GrahLnn solution and edit the asr.py,

add this into the default_asr_options "repetition_penalty": 1, "prompt_reset_on_temperature": 0.5, "no_repeat_ngram_size": 2,

then run pip install git+https://github.com/m-bain/whisperx.git --upgrade Somehow it fixed the problem

zos474 commented 11 months ago

@sfingali Install it like that, pip install from git not working well for now

If wishing to modify this package, clone and install in editable mode:

$ git clone https://github.com/m-bain/whisperX.git $ cd whisperX $ pip install -e .

I just had the same issue - I followed all the recommended steps on the WhisperX main page, then installed using

pip install git+https://github.com/m-bain/whisperx.git

but then got the same missing positional arguments error. So I tried Afiyetolsun's method and that fixed it! Strange.

git clone https://github.com/m-bain/whisperX.git cd whisperX pip install -e .