#8460 Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in d

104.28**7 Posted at: 2 hours ago

Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory D:/翻译软件/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base\speech_tokenizer.,Traceback (most recent call last):
File "videotrans\process\qwen_tts.py", line 63, in qwen3tts_fun
File "qwen_tts\inference\qwen3_tts_model.py", line 112, in from_pretrained

model = AutoModel.from_pretrained(pretrained_model_name_or_path, **kwargs)

File "D:\翻译软件\win-pyvideotrans-v4.16\_internal\transformers4576\models\auto\auto_factory.py", line 604, in from_pretrained

return model_class.from_pretrained(

File "qwen_tts\core\models\modeling_qwen3_tts.py", line 1915, in from_pretrained

speech_tokenizer = Qwen3TTSTokenizer.from_pretrained(

File "qwen_tts\inference\qwen3_tts_tokenizer.py", line 88, in from_pretrained

inst.model = AutoModel.from_pretrained(pretrained_model_name_or_path, **kwargs)

File "D:\翻译软件\win-pyvideotrans-v4.16\
......
qwen3_tts_tokenizer.py", line 88, in from_pretrained

inst.model = AutoModel.from_pretrained(pretrained_model_name_or_path, **kwargs)

File "D:\翻译软件\win-pyvideotrans-v4.16\_internal\transformers4576\models\auto\auto_factory.py", line 604, in from_pretrained

return model_class.from_pretrained(

File "D:\翻译软件\win-pyvideotrans-v4.16\_internal\transformers4576\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

File "D:\翻译软件\win-pyvideotrans-v4.16\_internal\transformers4576\modeling_utils.py", line 4896, in from_pretrained

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(

File "D:\翻译软件\win-pyvideotrans-v4.16\_internal\transformers4576\modeling_utils.py", line 989, in _get_resolved_checkpoint_files

raise OSError(

OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory D:/翻译软件/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base\speech_tokenizer.

trk=[TransCreate]: uuid='cca3d5b262', proxy_str='http://127.0.0.1:10808', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: G:/视频下载/YouTube/99999.mp4,
输出结果保存到文件夹: G:/视频下载/YouTube/_video_out/99999-mp4,
临时文件夹: D:/翻译软件/win-pyvideotrans-v4.16/tmp/8556/cca3d5b262
已选 清理已存在
未启用CUDA加速
已选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:faster-whisper(内置), large-v3, 发音语言: 英语, LLM纠错
翻译渠道:本地大模型(兼容OpenAI),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Qwen3-TTS(内置), 角色:clone, 配音语言:简体中文, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:10808, precent=18, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=True, do_diarize=True
video_duration_ms=489366


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/翻译软件/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因

这是 Qwen3-TTS 模型下载不完整导致的。报错明确指出 models--Qwen--Qwen3-TTS-12Hz-0.6B-Base\speech_tokenizer 目录内缺少模型权重文件(model.safetensors / pytorch_model.bin 等)。Qwen3-TTS 仓库中 speech_tokenizer 是一个独立的子模型目录,需完整下载其权重,国内网络环境下自动下载大文件经常失败或只下载到 config 等小文件。

解决方案

  1. 删除不完整的模型目录:删除 D:/翻译软件/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base(整目录,含残缺的 speech_tokenizer),然后重新运行任务让软件自动完整下载。
  2. 若自动下载仍失败,手动下载覆盖:

    • 打开 https://huggingface.co/Qwen/Qwen3-TTS-12Hz-0.6B-Base/tree/main
    • 点击进入 speech_tokenizer 子目录,下载其中所有文件(尤其 model.safetensors 等权重文件)
    • 将下载文件放入 软件目录/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base/speech_tokenizer/,注意同名文件必须改回原名(浏览器可能自动加 (1))
    • 同样下载主目录下所有文件放入 models--Qwen--Qwen3-TTS-12Hz-0.6B-Base/ 根下
  3. 你使用了 clone 角色,Qwen3-TTS 渠道还需要 CustomVoice 模型。请确认 软件目录/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice 同样完整下载,地址:https://huggingface.co/Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice/tree/main
  4. 检查代理:你已填写代理 http://127.0.0.1:10808,请确认代理稳定,长时间大文件下载对代理稳定性要求高;如代理不稳,可取消代理使用国内镜像站(软件会自动切换 hf-mirror.com),但镜像站大文件仍可能限流失败。
  5. fallback:若暂时无法下载完整模型,可将配音渠道临时改为开箱即用的 Edge-TTS(免费) 先完成视频翻译。
另注意:clone 角色要求高级选项中 最短语音持续毫秒 ≥ 3000,避免参考音频片段过短导致克隆失败。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource