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
711 stars 87 forks source link

NUMPY 2.0.0 的无效问题 #50

Closed WangLaoShi closed 3 months ago

WangLaoShi commented 3 months ago

阅读 README.md 和 dependencies.md

检索 issue 和 discussion

检查 Forge 版本

你的issues

Numpy 2.0.0 下出现诡异的问题:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

不知道是不是我自己的问题。

requirements.txt 修改如下:

numpy==1.26.4
scipy
lxml
pydub
fastapi
soundfile
pyrubberband
omegaconf
pypinyin
vocos
pandas
vector_quantize_pytorch
einops
transformers~=4.41.1
omegaconf~=2.3.0
tqdm
# torch
# torchvision
# torchaudio
gradio
emojiswitch
python-dotenv
zhon
mistune==3.0.2
cn2an
# audio_denoiser
python-box
modelscope

可以解决上述的问题

easybrad commented 3 months ago

有同样的问题

zhzLuke96 commented 3 months ago

fixed e4fea4f80b31d962f02cd1146ce8c73bf75b6a39