You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# don't skip if the logprob is high enough, despite the no_captions_prob
170
+
# don't skip if the logprob is high enough, despite the no_speech_prob
171
171
should_skip=False
172
172
173
173
ifshould_skip:
@@ -249,7 +249,7 @@ def cli():
249
249
parser.add_argument("--temperature_increment_on_fallback", type=optional_float, default=0.2, help="temperature to increase when falling back when the decoding fails to meet either of the thresholds below")
250
250
parser.add_argument("--compression_ratio_threshold", type=optional_float, default=2.4, help="if the gzip compression ratio is higher than this value, treat the decoding as failed")
251
251
parser.add_argument("--logprob_threshold", type=optional_float, default=-1.0, help="if the average log probability is lower than this value, treat the decoding as failed")
252
-
parser.add_argument("--no_caption_threshold", type=optional_float, default=0.6, help="if the probability of the <|nocaptions|> token is higher than this value AND the decoding has failed due to `logprob_threshold`, consider the segment as silence")
252
+
parser.add_argument("--no_speech_threshold", type=optional_float, default=0.6, help="if the probability of the <|nospeech|> token is higher than this value AND the decoding has failed due to `logprob_threshold`, consider the segment as silence")
253
253
254
254
args=parser.parse_args().__dict__
255
255
model_name: str=args.pop("model")
@@ -261,12 +261,8 @@ def cli():
261
261
warnings.warn(f"{model_name} is an English-only model but receipted '{args['language']}'; using English instead.")
0 commit comments