#4014 ValueError: The repetition penalty must be > 0

2804:d41* Posted at: 3 hours ago 👁8

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 452, in faster_whisper
File "faster_whisper\transcribe.py", line 1851, in restore_speech_timestamps
File "faster_whisper\transcribe.py", line 1213, in generate_segments
File "faster_whisper\transcribe.py", line 1446, in generate_with_fallback
ValueError: The repetition penalty must be > 0


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:en
root_dir:C:/Users/JOHN/Documents/DUBLADOR/win-pyvideotrans-v3.98

1 Replies

This error occurs because the "repetition penalty" parameter in the faster-whisper model is set to an invalid value (likely 0 or less).

To resolve this, follow these steps:

  1. Open the software.
  2. Go to the top menu: Tools/Options -> Advanced Options.
  3. In the Speech Recognition Parameters section, locate the 重复惩罚 field (English: "Repetition Penalty").
  4. Ensure the value in this field is greater than 0. A typical valid value is 1.0.
  5. Click OK to save the settings and restart the software.
  6. Try the speech recognition task again.

If the issue persists, you can also try resetting the advanced options to their defaults or checking for any custom configurations that might have set this parameter incorrectly.

Please refer to the relevant documentation:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource