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

MOFA-Video-Traj graio demo出错 #33

Open
ray-7922 opened this issue Jul 2, 2024 · 1 comment
Open

MOFA-Video-Traj graio demo出错 #33

ray-7922 opened this issue Jul 2, 2024 · 1 comment

Comments

@ray-7922
Copy link

ray-7922 commented Jul 2, 2024

使用MOFA-Video-Traj graio demo想询问该如何解决

模组都有按照位置放好

Microsoft Windows [Version 10.0.19045.4529]
(c) Microsoft Corporation. All rights reserved.

C:\MOFA\MOFA-Video-Traj>conda activate traj

(traj) C:\MOFA\MOFA-Video-Traj>python run_gradio.py
Traceback (most recent call last):
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy_init_.py", line 18, in
from cupy import core # NOQA
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy_core_init
.py", line 1, in
from cupy._core import core # NOQA
File "cupy_core\core.pyx", line 1, in init cupy.core.core
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy\cuda_init
.py", line 8, in
from cupy.cuda import compiler # NOQA
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy\cuda\compiler.py", line 13, in
from cupy.cuda import device
File "cupy\cuda\device.pyx", line 1, in init cupy.cuda.device
ImportError: DLL load failed while importing runtime: 找不到指定的模組。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\MOFA\MOFA-Video-Traj\run_gradio.py", line 655, in
DragNUWA_net = Drag("cuda:0", target_size, target_size, 25)
File "C:\MOFA\MOFA-Video-Traj\run_gradio.py", line 225, in init
self.pipeline, self.cmp = init_models(
File "C:\MOFA\MOFA-Video-Traj\run_gradio.py", line 93, in init_models
from pipeline.pipeline import FlowControlNetPipeline
File "C:\MOFA\MOFA-Video-Traj\pipeline\pipeline.py", line 9, in
from models.svdxt_featureflow_forward_controlnet_s2d_fixcmp_norefine import FlowControlNet
File "C:\MOFA\MOFA-Video-Traj\models\svdxt_featureflow_forward_controlnet_s2d_fixcmp_norefine.py", line 12, in
from models.softsplat import softsplat
File "C:\MOFA\MOFA-Video-Traj\models\softsplat.py", line 4, in
import cupy
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy_init_.py", line 20, in
raise ImportError(f'''
ImportError:

Failed to import CuPy.

If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.

On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
On Windows, try setting CUDA_PATH environment variable.

Check the Installation Guide for details:
https://docs.cupy.dev/en/latest/install.html

Original error:
ImportError: DLL load failed while importing runtime: 找不到指定的模組。

IMPORTANT: You are using gradio version 4.5.0, however version 4.29.0 is available, please upgrade.

(traj) C:\MOFA\MOFA-Video-Traj>conda uninstall cupy-cuda12x

PackagesNotFoundError: The following packages are missing from the target environment:

  • cupy-cuda12x

(traj) C:\MOFA\MOFA-Video-Traj>pip list
Package Version


accelerate 0.30.1
aiofiles 23.2.1
altair 5.3.0
annotated-types 0.7.0
ansicon 1.89.0
anyio 4.4.0
attrs 23.2.0
av 12.2.0
blessed 1.20.0
certifi 2024.6.2
charset-normalizer 3.3.2
click 8.1.7
colorama 0.4.6
colorlog 6.8.2
contourpy 1.2.1
cupy-cuda117 10.6.0
cycler 0.12.1
diffusers 0.24.0
dnspython 2.6.1
einops 0.8.0
email_validator 2.2.0
exceptiongroup 1.2.1
fastapi 0.111.0
fastapi-cli 0.0.4
fastrlock 0.8.2
ffmpy 0.3.2
filelock 3.15.4
fonttools 4.53.0
fsspec 2024.6.1
gpustat 1.1.1
gradio 4.5.0
gradio_client 0.7.0
h11 0.14.0
httpcore 1.0.5
httptools 0.6.1
httpx 0.27.0
huggingface-hub 0.23.4
idna 3.7
imageio 2.34.2
importlib_metadata 8.0.0
importlib_resources 6.4.0
Jinja2 3.1.4
jinxed 1.2.1
jsonschema 4.22.0
jsonschema-specifications 2023.12.1
kiwisolver 1.4.5
lazy_loader 0.4
markdown-it-py 3.0.0
MarkupSafe 2.1.5
matplotlib 3.9.0
mdurl 0.1.2
mpmath 1.3.0
networkx 3.3
numpy 1.24.4
nvidia-ml-py 12.555.43
opencv-python 4.10.0.84
opencv-python-headless 4.10.0.84
orjson 3.10.5
packaging 24.1
pandas 2.2.2
pillow 10.4.0
pip 24.0
psutil 6.0.0
pydantic 2.8.0
pydantic_core 2.20.0
pydub 0.25.1
Pygments 2.18.0
pyparsing 3.1.2
python-dateutil 2.9.0.post0
python-dotenv 1.0.1
python-multipart 0.0.9
pytz 2024.1
PyYAML 6.0.1
referencing 0.35.1
regex 2024.5.15
requests 2.32.3
rich 13.7.1
rpds-py 0.18.1
safetensors 0.4.3
scikit-image 0.24.0
scipy 1.14.0
semantic-version 2.10.0
setuptools 69.5.1
shellingham 1.5.4
six 1.16.0
sniffio 1.3.1
starlette 0.37.2
sympy 1.12.1
tifffile 2024.6.18
tokenizers 0.19.1
tomlkit 0.12.0
toolz 0.12.1
torch 2.0.1
torchvision 0.15.2
tqdm 4.66.4
transformers 4.41.1
typer 0.12.3
typing_extensions 4.12.2
tzdata 2024.1
ujson 5.10.0
urllib3 2.2.2
uvicorn 0.30.1
watchfiles 0.22.0
wcwidth 0.2.13
websockets 11.0.3
wheel 0.43.0
zipp 3.19.2

(traj) C:\MOFA\MOFA-Video-Traj>where nvcc
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc.exe

(traj) C:\MOFA\MOFA-Video-Traj>pip install --upgrade cupy-cuda117
Requirement already satisfied: cupy-cuda117 in c:\users\bomchoho\appdata\local\anaconda3\envs\traj\lib\site-packages (10.6.0)
Requirement already satisfied: numpy<1.25,>=1.18 in c:\users\bomchoho\appdata\local\anaconda3\envs\traj\lib\site-packages (from cupy-cuda117) (1.24.4)
Requirement already satisfied: fastrlock>=0.5 in c:\users\bomchoho\appdata\local\anaconda3\envs\traj\lib\site-packages (from cupy-cuda117) (0.8.2)

(traj) C:\MOFA\MOFA-Video-Traj>python run_gradio.py
Traceback (most recent call last):
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy_init_.py", line 18, in
from cupy import core # NOQA
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy_core_init
.py", line 1, in
from cupy._core import core # NOQA
File "cupy_core\core.pyx", line 1, in init cupy.core.core
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy\cuda_init
.py", line 8, in
from cupy.cuda import compiler # NOQA
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy\cuda\compiler.py", line 13, in
from cupy.cuda import device
File "cupy\cuda\device.pyx", line 1, in init cupy.cuda.device
ImportError: DLL load failed while importing runtime: 找不到指定的模組。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\MOFA\MOFA-Video-Traj\run_gradio.py", line 655, in
DragNUWA_net = Drag("cuda:0", target_size, target_size, 25)
File "C:\MOFA\MOFA-Video-Traj\run_gradio.py", line 225, in init
self.pipeline, self.cmp = init_models(
File "C:\MOFA\MOFA-Video-Traj\run_gradio.py", line 93, in init_models
from pipeline.pipeline import FlowControlNetPipeline
File "C:\MOFA\MOFA-Video-Traj\pipeline\pipeline.py", line 9, in
from models.svdxt_featureflow_forward_controlnet_s2d_fixcmp_norefine import FlowControlNet
File "C:\MOFA\MOFA-Video-Traj\models\svdxt_featureflow_forward_controlnet_s2d_fixcmp_norefine.py", line 12, in
from models.softsplat import softsplat
File "C:\MOFA\MOFA-Video-Traj\models\softsplat.py", line 4, in
import cupy
File "C:\Users\bomchoho\AppData\Local\anaconda3\envs\traj\lib\site-packages\cupy_init_.py", line 20, in
raise ImportError(f'''
ImportError:

Failed to import CuPy.

If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.

On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
On Windows, try setting CUDA_PATH environment variable.

Check the Installation Guide for details:
https://docs.cupy.dev/en/latest/install.html

Original error:
ImportError: DLL load failed while importing runtime: 找不到指定的模組。

IMPORTANT: You are using gradio version 4.5.0, however version 4.29.0 is available, please upgrade.

(traj) C:\MOFA\MOFA-Video-Traj>

@MyNiuuu
Copy link
Owner

MyNiuuu commented Jul 2, 2024

If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.

你的CUDA版本是多少呢?根据这里的报错输出,可能的原因是你的CUDA版本不是11.7而是12.x

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

2 participants