语音识别阶段出错[Huggingface_ASR(内置)] Could not load model D:/win-pyvideotrans-v4.11/models/models--kotoba-tech--kotoba-whisper-v2.0 with any of the following classes: (, , ). See the original errors:
while loading with AutoModelForCTC, an error is thrown:
Traceback (most recent call last):
File "D:\win-pyvideotrans-v4.11\_internal\transformers\pipelines\base.py", line 232, in load_model
model = model_class.from_pretrained(model, **kwargs)File "D:\win-pyvideotrans-v4.11\_internal\transformers\models\auto\auto_factory.py", line 397, in from_pretrained
raise ValueError(ValueError: Unrecognized configuration class for this kind of AutoModel: AutoModelForCTC.
Model type should be one of Data2VecAudioConfig, HubertConfig, LasrCTCConfig, ParakeetCTCConfig, SEWConfig, SEWDConfig, UniSpeechConfig, UniSpeechSatConfig, Wav2Vec2Config, Wav2Vec2BertConfig, Wav2Vec2ConformerConfig, WavLMConfig.
During handling of the above exception, another exception occurred:
Traceback (mos
......
loading with WhisperForConditionalGeneration, an error is thrown:
Traceback (most recent call last):
File "D:\win-pyvideotrans-v4.11\_internal\transformers\pipelines\base.py", line 232, in load_model
model = model_class.from_pretrained(model, **kwargs)File "D:\win-pyvideotrans-v4.11\_internal\transformers\modeling_utils.py", line 4118, in from_pretrained
checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(File "D:\win-pyvideotrans-v4.11\_internal\transformers\modeling_utils.py", line 613, in _get_resolved_checkpoint_files
raise OSError(OSError: Error no file named model.safetensors, or pytorch_model.bin, found in directory D:/win-pyvideotrans-v4.11/models/models--kotoba-tech--kotoba-whisper-v2.0.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\win-pyvideotrans-v4.11\_internal\transformers\pipelines\base.py", line 248, in load_model
model = model_class.from_pretrained(model, **fp32_kwargs)File "D:\win-pyvideotrans-v4.11\_internal\transformers\modeling_utils.py", line 4118, in from_pretrained
checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(File "D:\win-pyvideotrans-v4.11\_internal\transformers\modeling_utils.py", line 613, in _get_resolved_checkpoint_files
raise OSError(OSError: Error no file named model.safetensors, or pytorch_model.bin, found in directory D:/win-pyvideotrans-v4.11/models/models--kotoba-tech--kotoba-whisper-v2.0.
[SpeechToText]语音转录: self.out_format='srt',self.copysrt_rawvideo=True,self.spk_insert=False
[TaskCfgSTT]
原始输入文件名: C:/Users/1/Desktop/BOBB-442J.mp4,
输出结果保存到文件夹: D:/win-pyvideotrans-v4.11/output/recogn,
临时文件夹: D:/win-pyvideotrans-v4.11/tmp/1028/2adbc3d2c8
未启用CUDA加速
未选 降噪
语音识别:Huggingface_ASR(内置), kotoba-tech/kotoba-whisper-v2.0 断句方式:默认断句
发音语言:ja
未选 降噪
=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.11