Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumPy 1.x Error When Try to Launch #9

Open
fcabanski opened this issue Jan 13, 2025 · 2 comments
Open

NumPy 1.x Error When Try to Launch #9

fcabanski opened this issue Jan 13, 2025 · 2 comments

Comments

@fcabanski
Copy link

The launch_webui.bat errors:

D:\Real Time Voice Clone\beatrice_trainer_webui>launch_webut.bat

D:\Real Time Voice Clone\beatrice_trainer_webui>call venv\Scripts\activate

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 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.

Traceback (most recent call last): File "D:\Real Time Voice Clone\beatrice_trainer_webui[webui.py](javascript:void(0);)", line 273, in
import whisperx
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\whisperx_init_.py", line 1, in
from .transcribe import load_model
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\whisperx[transcribe.py](javascript:void(0);)", line 9, in
from .alignment import align, load_align_model
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\whisperx[alignment.py](javascript:void(0);)", line 11, in
import torchaudio
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\torchaudio_init_.py", line 13, in
from . import ( # noqa: F401
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\torchaudio\compliance_init_.py", line 1, in
from . import kaldi
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\torchaudio\compliance[kaldi.py](javascript:void(0);)", line 22, in
EPSILON = torch.tensor(torch.finfo(torch.float).eps)
D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\torchaudio\compliance[kaldi.py:22](javascript:void(0);): UserWarning: Failed to initialize NumPy: ARRAY_API not found (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.)
EPSILON = torch.tensor(torch.finfo(torch.float).eps)
D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\pyannote\audio\core[io.py:43](javascript:void(0);): UserWarning: torchaudio.backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call.
torchaudio.set_audio_backend("soundfile")
Traceback (most recent call last):
File "D:\Real Time Voice Clone\beatrice_trainer_webui[webui.py](javascript:void(0);)", line 273, in
import whisperx
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\whisperx_init
.py", line 1, in
from .transcribe import load_model
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\whisperx[transcribe.py](javascript:void(0);)", line 10, in
from .asr import load_model
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\whisperx[asr.py](javascript:void(0);)", line 13, in
from .vad import load_vad_model, merge_chunks
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\whisperx[vad.py](javascript:void(0);)", line 9, in
from pyannote.audio import Model
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\pyannote\audio_init
.py", line 29, in
from .core.inference import Inference
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\pyannote\audio\core[inference.py](javascript:void(0);)", line 49, in
class Inference(BaseInference):
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\pyannote\audio\core[inference.py](javascript:void(0);)", line 533, in Inference
missing: float = np.NaN,
^^^^^^
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\numpy_init__.py", line 411, in _getattr
raise AttributeError(
AttributeError: np.NaN was removed in the NumPy 2.0 release. Use np.nan instead.. Did you mean: 'nan'?

(venv) D:\Real Time Voice Clone\beatrice_trainer_webui>

@fcabanski
Copy link
Author

Tried downgrading numpy to a 1.xx version, but the issue persists.

@fcabanski
Copy link
Author

Downgraded to numpy 1.xx in venv. Now it runs, but will it actually work or will the numpy version 1.xx cause problems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant