numpy version

#1
by jordimas - opened

Hello

When installing the package, it gives me the following error:

File "/home/jordi/sc/matcha/Matcha-TTS/matcha_vocos_inference.py", line 18, in
from matcha.models.matcha_tts import MatchaTTS
File "/home/jordi/sc/matcha/Matcha-TTS/matcha/models/matcha_tts.py", line 12, in
import matcha.utils.monotonic_align as monotonic_align
File "/home/jordi/sc/matcha/Matcha-TTS/matcha/utils/monotonic_align/init.py", line 4, in
from matcha.utils.monotonic_align.core import maximum_path_c
File "matcha/utils/monotonic_align/core.pyx", line 1, in init matcha.utils.monotonic_align.core
import numpy as np
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

This is because the package only works with numpy version 1 and since the specific version is not specified in requirments.txt, the latest version 2.x is installed that is not compatible.

In my case, this fixed the issue:

diff --git a/requirements.txt b/requirements.txt
index a4f9b8d..f3ecb8b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -26,7 +26,7 @@ phonemizer # phonemization of text
tensorboard
librosa
Cython
-numpy
+numpy==1.*
einops
inflect
Unidecode

You may want to consider fixing this in the project repo.

Best Regards

Jordi,

Projecte Aina org

Thanks Jordi. I updated the github repo.

Baybars changed discussion status to closed

Sign up or log in to comment