model.transcribe() passes unknown progress argument to DecodingOptions #2810
Replies: 3 comments
|
The function accepts known transcription parameters plus You can confirm both paths in the current
If you only need visible progress, use: result = model.transcribe(
r"audio.mp3",
verbose=False,
)The current behavior is:
There is no supported programmatic progress-callback parameter in upstream Whisper at the moment. For an application callback, the reliable options are to maintain a small wrapper/fork of So remove |
|
Update: I closed PR #2811 after finding several earlier progress-callback implementations, including the newer tested PR #2797. The callback API is still not part of main; tracking the existing proposal is clearer than maintaining another competing implementation. |
|
Upstream Whisper doesn't support a progress= callback in transcribe(). Unknown kwargs get forwarded to DecodingOptions, which causes this error. Use verbose=False for the built-in progress bar; a callback currently needs a small wrapper/fork. |
Uh oh!
There was an error while loading. Please reload this page.
Description
I'm trying to receive transcription progress through a callback passed to model.transcribe(). However, the progress argument is not recognized and is forwarded to DecodingOptions, which raises a TypeError.
Environment
OS: Windows 10
Python: (please fill in your version)
PyTorch: (please fill in your version)
Whisper: (please fill in your installed version)
CUDA: Yes
Upgraded latest whisper.
Minimal Reproducible Example
Output
Expected Behavior
I expected the progress callback to be invoked during transcription, or at least for model.transcribe() to recognize the progress argument.
Actual Behavior
Instead, the progress argument appears to be forwarded to DecodingOptions, which does not accept it, resulting in the following exception:
TypeError: DecodingOptions.init() got an unexpected keyword argument 'progress'
Question
Is the progress callback still supported?
If it is, am I using it incorrectly?
If it is no longer supported, would it be possible to document this or provide an alternative way to receive transcription progress?
All reactions