#8059 配音阶段出错 [Qwen3-TTS(本地内置)] Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax

96.62**5 Posted at: 1 hour ago

配音阶段出错 [Qwen3-TTS(本地内置)] Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory D://models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base.,Traceback (most recent call last):
File "videotrans\process\qwen_tts.py", line 56, 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:\_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 1876, in from_pretrained

model = super().from_pretrained(

File "D:\_internal\transformers4576\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

File "D:\_internal\transformers4576\modeling_utils.py", line 4896, in from_pretrained

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_fil

......
pt.index or flax_model.msgpack found in directory D://models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base.,Traceback (most recent call last):
File "videotrans\process\qwen_tts.py", line 56, 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:\_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 1876, in from_pretrained

model = super().from_pretrained(

File "D:\_internal\transformers4576\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

File "D:\_internal\transformers4576\modeling_utils.py", line 4896, in from_pretrained

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(

File "D:\_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://models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base.
cfg=TaskCfgTTS(uuid='1570039965', name='D:/output/recogn/0923 (1).srt', dirname='D:/output/recogn', noextname='0923 (1)', basename='0923 (1).srt', ext='srt', target_dir='D:/output/tts', cache_folder='D://tmp/22968/1570039965', is_cuda=True, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code='en', target_sub='D:/output/recogn/0923 (1).srt', target_wav='D:/output/tts/0923 (1).wav', target_wav_output=None, tts_type=1, volume='+80%', pitch='+10Hz', voice_rate='+1%', voice_role='zh_female_cn.wav', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.19045-SP0
version:v4.07
frozen:True
language:zh
root_dir:D:/

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Qwen3-TTS 本地模型文件未下载完整或下载失败导致的。错误日志明确显示在 D:\models\models--Qwen--Qwen3-TTS-12Hz-0.6B-Base 目录中找不到 model.safetensors、pytorch_model.bin 等模型权重文件,因此模型无法加载。

解决方法

  1. 删除不完整的模型目录
    关闭软件后,删除整个文件夹:
    D:\models\models--Qwen--Qwen3-TTS-12Hz-0.6B-Base
  2. 重新自动下载模型
    重新执行配音任务,让软件自动重新下载该模型。下载时请保持网络稳定,不要中断。
  3. 若自动下载仍然失败,手动下载模型

    • 打开模型下载页面:https://huggingface.co/Qwen/Qwen3-TTS-12Hz-0.6B-Base/tree/main
    • 下载其中的全部文件(尤其是 model.safetensors 及其他配置文件)
    • 将所有文件直接放入 D:\models\models--Qwen--Qwen3-TTS-12Hz-0.6B-Base 文件夹内
    • 注意:文件不能改名,也不能出现 model(2).safetensors 这种浏览器自动重命名的情况
  4. 建议升级软件版本
    你当前使用的是 v4.07,目前最新版本为 v4.16。旧版本可能同时存在其他已修复的已知问题,建议下载最新补丁包或完整包覆盖升级后再试。

请查阅相关文档:

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