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
870 stars 113 forks source link

[ISSUE] No module named 'tools.file' #186

Open ahkimkoo opened 3 weeks ago

ahkimkoo commented 3 weeks ago

确认清单

你的issues

Traceback (most recent call last): File "/root/autodl-tmp/ChatTTS-Forge/webui.py", line 27, in from modules.api.api_setup import process_api_args, setup_api_args File "/root/autodl-tmp/ChatTTS-Forge/modules/api/api_setup.py", line 9, in from modules.api.impl import ( File "/root/autodl-tmp/ChatTTS-Forge/modules/api/impl/google_api.py", line 16, in from modules.core.handler.SSMLHandler import SSMLHandler File "/root/autodl-tmp/ChatTTS-Forge/modules/core/handler/SSMLHandler.py", line 7, in from modules.core.pipeline.factory import PipelineFactory File "/root/autodl-tmp/ChatTTS-Forge/modules/core/pipeline/factory.py", line 4, in from modules.core.models.zoo.ModelZoo import model_zoo File "/root/autodl-tmp/ChatTTS-Forge/modules/core/models/zoo/init.py", line 2, in from .ModelZoo import model_zoo File "/root/autodl-tmp/ChatTTS-Forge/modules/core/models/zoo/ModelZoo.py", line 17, in from modules.core.models.tts.FishSpeechModel import FishSpeechModel File "/root/autodl-tmp/ChatTTS-Forge/modules/core/models/tts/FishSpeechModel.py", line 27, in from modules.repos_static.fish_speech.tools.vqgan.inference import ( File "/root/autodl-tmp/ChatTTS-Forge/modules/repos_static/fish_speech/tools/vqgan/inference.py", line 13, in from tools.file import AUDIO_EXTENSIONS ModuleNotFoundError: No module named 'tools.file'

ahkimkoo commented 3 weeks ago

少了一个文件导致的

modules/repos_static/fish_speech/tools/__init__.py
zhzLuke96 commented 3 weeks ago

能提供一下其他的环境信息吗,比如 python 版本号 系统环境

因为这个问题,在 colab 和 我本地都没复现,虽然修复应该不麻烦 但是主要是涉及到的这部分代码是 repos_static 下面的模块,这部分代码都来自外部,都是第三方,我们是不太想去修改的,跟踪和合并都不方便

提供更多信息能帮助我们更完整的解决这个问题