lenML / Speech-AI-Forge

🍦 Speech-AI-Forge is a project developed around TTS generation model, implementing an API Server and a Gradio-based WebUI.
https://huggingface.co/spaces/lenML/ChatTTS-Forge
GNU Affero General Public License v3.0
710 stars 87 forks source link

[BUG:FT] AttributeError: 'Chat' object has no attribute 'gpt' #142

Closed cpken closed 1 month ago

cpken commented 1 month ago

确认清单

Forge Commit 或者 Tag

Python 版本

PyTorch 版本

操作系统信息

BUG 描述

ChatTTS-Forge | version: | branch: | python: 3.10.14 | torch: 2.4.0+cu121 | ffmpeg: 4.2.7-0ubuntu0.1 | api

运行 python webui.py 报错。

2024-08-28 17:24:53,136 - modules.core.models.zoo.ChatTTS - INFO - Loading ChatTTS models
2024-08-28 17:24:53,144 - modules.repos_static.ChatTTS.ChatTTS.core - INFO - try to load from local: ./models/ChatTTS
2024-08-28 17:24:53,144 - modules.repos_static.ChatTTS.ChatTTS.core - INFO - checking assets...
2024-08-28 17:24:53,601 - modules.repos_static.ChatTTS.ChatTTS.core - INFO - models/ChatTTS/asset/tokenizer/special_tokens_map.json not exist.
2024-08-28 17:24:53,601 - modules.repos_static.ChatTTS.ChatTTS.core - ERROR - check models in custom path ./models/ChatTTS failed.

File "/ChatTTS-Forge/modules/core/models/zoo/ChatTTS.py", line 38, in do_load_chat_tts
    chat_tts.gpt,
AttributeError: 'Chat' object has no attribute 'gpt'

Hugging Face 上没有 models/ChatTTS/asset/tokenizer/special_tokens_map.json 文件。

复现步骤

期望结果

实际结果

错误信息

No response

zhzLuke96 commented 1 month ago

重新执行模型下载脚本,更新模型即可

这个是 chattts 更新了代码,增加了新的依赖,我们这里也同步了所以也需要更新