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
879 stars 114 forks source link

[ISSUE] ImportError: cannot import name 'AudioNormalizer' from partially initialized module 'modules.core.pipeline.factory' (most likely due to a circular import) (/data/chattts-forge/modules/core/pipeline/factory.py) #137

Closed shawnwu2022 closed 3 months ago

shawnwu2022 commented 3 months ago

确认清单

你的issues

Aug 13 13:50:14 ai sh[3665897]: Traceback (most recent call last): Aug 13 13:50:14 ai sh[3665897]: File "/data/chattts-forge/webui.py", line 27, in Aug 13 13:50:14 ai sh[3665897]: from modules.api.api_setup import process_api_args, setup_api_args Aug 13 13:50:14 ai sh[3665897]: File "/data/chattts-forge/modules/api/api_setup.py", line 9, in Aug 13 13:50:14 ai sh[3665897]: from modules.api.impl import ( Aug 13 13:50:14 ai sh[3665897]: File "/data/chattts-forge/modules/api/impl/google_api.py", line 15, in Aug 13 13:50:14 ai sh[3665897]: from modules.core.handler.SSMLHandler import SSMLHandler Aug 13 13:50:14 ai sh[3665897]: File "/data/chattts-forge/modules/core/handler/SSMLHandler.py", line 7, in Aug 13 13:50:14 ai sh[3665897]: from modules.core.pipeline.factory import PipelineFactory Aug 13 13:50:14 ai sh[3665897]: File "/data/chattts-forge/modules/core/pipeline/factory.py", line 5, in Aug 13 13:50:14 ai sh[3665897]: from modules.core.models.zoo.ModelZoo import model_zoo Aug 13 13:50:14 ai sh[3665897]: File "/data/chattts-forge/modules/core/models/zoo/init.py", line 2, in Aug 13 13:50:14 ai sh[3665897]: from .ModelZoo import model_zoo Aug 13 13:50:14 ai sh[3665897]: File "/data/chattts-forge/modules/core/models/zoo/ModelZoo.py", line 7, in Aug 13 13:50:14 ai sh[3665897]: from modules.core.models.tts.CosyVoiceModel import CosyVoiceTTSModel Aug 13 13:50:14 ai sh[3665897]: File "/data/chattts-forge/modules/core/models/tts/CosyVoiceModel.py", line 21, in Aug 13 13:50:14 ai sh[3665897]: from modules.core.pipeline.factory import AudioNormalizer Aug 13 13:50:14 ai sh[3665897]: ImportError: cannot import name 'AudioNormalizer' from partially initialized module 'modules.core.pipeline.factory' (most likely due to a circular import) (/data/chattts-forge/modules/core/pipeline/factory.py)

zhzLuke96 commented 3 months ago

fixed https://github.com/lenML/ChatTTS-Forge/commit/0a7735afa301c9be6caae6f8a2e7442b02f610f0