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

RuntimeError: Numpy is not available Press any key to continue . . . #20

Open
javascriptdotexe opened this issue Jul 7, 2024 · 0 comments

Comments

@javascriptdotexe
Copy link

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.

Traceback (most recent call last): File "D:\AI\Lip_Wise-1.2\launch.py", line 7, in
import infer
File "D:\AI\Lip_Wise-1.2\infer.py", line 5, in
import torch
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\torch_init_.py", line 1382, in
from .functional import * # noqa: F403
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\torch\functional.py", line 7, in
import torch.nn.functional as F
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\torch\nn_init_.py", line 1, in
from .modules import * # noqa: F403
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\torch\nn\modules_init_.py", line 35, in
from .transformer import TransformerEncoder, TransformerDecoder,
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\torch\nn\modules\transformer.py", line 20, in
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\torch\nn\modules\transformer.py:20: UserWarning: Failed to initialize NumPy: ARRAY_API not found (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch.C.get_default_device()), # torch.device('cpu'),
Traceback (most recent call last):
File "D:\AI\Lip_Wise-1.2\launch.py", line 7, in
import infer
File "D:\AI\Lip_Wise-1.2\infer.py", line 16, in
from helpers import file_check
File "D:\AI\Lip_Wise-1.2\helpers\file_check.py", line 6, in
import basicsr.archs as archs
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\basicsr_init
.py", line 3, in
from .archs import *
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\basicsr\archs_init
.py", line 5, in
from basicsr.utils import get_root_logger, scandir
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\basicsr\utils_init.py", line 2, in
from .diffjpeg import DiffJPEG
File "D:\AI\Lip_Wise-1.2.lip-wise\lib\site-packages\basicsr\utils\diffjpeg.py", line 19, in
y_table = nn.Parameter(torch.from_numpy(y_table))
RuntimeError: Numpy is not available
Press any key to continue . . .

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