语音识别阶段出错[openai-whisper(内置)] Expected parameter logits (Tensor of shape (1, 51866)) of distribution Categorical(logits: torch.Size([1, 51866])) to satisfy the constraint IndependentConstraint(Real(), 1), but found invalid values:
tensor([[nan, nan, nan, ..., nan, nan, nan]], device='cuda:0'):Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 104, in openai_whisper
File "whisper\transcribe.py", line 295, in transcribe
File "whisper\transcribe.py", line 201, in decode_with_fallback
File "D:\win-pyvideotrans-v4.10\_internal\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)File "whisper\decoding.py", line 824, in decode
File "D:\win-pyvideotrans-v4.10\_internal\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)File "whisper\decoding.py", line 737, in run
File "whisper\decoding.py", line 703, in _main_loop
File "whisper\decoding.py", line 283, in
......
of shape (1, 51866)) of distribution Categorical(logits: torch.Size([1, 51866])) to satisfy the constraint IndependentConstraint(Real(), 1), but found invalid values:
tensor([[nan, nan, nan, ..., nan, nan, nan]], device='cuda:0'):Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 104, in openai_whisper
File "whisper\transcribe.py", line 295, in transcribe
File "whisper\transcribe.py", line 201, in decode_with_fallback
File "D:\win-pyvideotrans-v4.10\_internal\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)File "whisper\decoding.py", line 824, in decode
File "D:\win-pyvideotrans-v4.10\_internal\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)File "whisper\decoding.py", line 737, in run
File "whisper\decoding.py", line 703, in _main_loop
File "whisper\decoding.py", line 283, in update
File "D:\win-pyvideotrans-v4.10\_internal\torch\distributions\categorical.py", line 73, in init
super().__init__(batch_shape, validate_args=validate_args)File "D:\win-pyvideotrans-v4.10\_internal\torch\distributions\distribution.py", line 72, in init
raise ValueError(ValueError: Expected parameter logits (Tensor of shape (1, 51866)) of distribution Categorical(logits: torch.Size([1, 51866])) to satisfy the constraint IndependentConstraint(Real(), 1), but found invalid values:
tensor([[nan, nan, nan, ..., nan, nan, nan]], device='cuda:0')
[SpeechToText]语音转录: self.out_format='srt',self.copysrt_rawvideo=True,self.spk_insert=True
[TaskCfgSTT]
原始输入文件名: E:/DownLoad/DCL/5tHt9pEx6.mp4,
输出结果保存到文件夹: D:/win-pyvideotrans-v4.10/output/recogn,
临时文件夹: D:/win-pyvideotrans-v4.10/tmp/3656/bb09353d7d
已启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:openai-whisper(内置), large-v3-turbo 断句方式:默认断句
发音语言:自动检测
未选 降噪
=
system:Windows-10-10.0.26100-SP0
version:v4.10
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v4.10