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

[BUG] 使用源代码运行gpu版本时无法运行 #120

Closed
Master-Tan opened this issue Sep 23, 2024 · 2 comments
Closed

[BUG] 使用源代码运行gpu版本时无法运行 #120

Master-Tan opened this issue Sep 23, 2024 · 2 comments

Comments

@Master-Tan
Copy link

Master-Tan commented Sep 23, 2024

请先挨个检查:
常见问题

搜索现有ISSUE:
https://github.com/ok-oldking/ok-wuthering-waves/issues?q=

描述错误:
使用源代码运行gpu版本时无法运行

复现步骤 按照以下步骤复现行为:

git clone https://github.com/ok-oldking/ok-wuthering-waves
(python版本为3.11.9)
pip install -r requirements.txt
python main_gpu.py

报错
2024-09-23 13:41:52,472 ERROR MainThread OK:init error Traceback (most recent call last):
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\ok\OK.py", line 62, in init
self.do_init()
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\ok\OK.py", line 138, in do_init
from paddleocr import PaddleOCR
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\paddleocr_init_.py", line 14, in
from .paddleocr import *
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\paddleocr\paddleocr.py", line 21, in
import paddle
ModuleNotFoundError: No module named 'paddle'

截图 :

是否必现:

录屏:

脚本软件版本:
[如]1.1.1

windows操作系统:
Windows 10

上传日志:

2024-09-23 13:41:52,349 INFO TaskExecutor TaskExecutor:start execute
2024-09-23 13:41:52,349 INFO MainThread OK:use paddleocr as ocr lib
2024-09-23 13:41:52,349 INFO TaskExecutor TaskExecutor:executor is paused sleep
Traceback (most recent call last):
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\ok\OK.py", line 62, in init
self.do_init()
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\ok\OK.py", line 138, in do_init
from paddleocr import PaddleOCR
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\paddleocr_init_.py", line 14, in
from .paddleocr import *
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\paddleocr\paddleocr.py", line 21, in
import paddle
ModuleNotFoundError: No module named 'paddle'
2024-09-23 13:41:52,472 ERROR MainThread OK:init error Traceback (most recent call last):
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\ok\OK.py", line 62, in init
self.do_init()
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\ok\OK.py", line 138, in do_init
from paddleocr import PaddleOCR
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\paddleocr_init_.py", line 14, in
from .paddleocr import *
File "D:\PycharmProjects\ok-wuthering-waves\venv\Lib\site-packages\paddleocr\paddleocr.py", line 21, in
import paddle
ModuleNotFoundError: No module named 'paddle'

@YCR160
Copy link

YCR160 commented Sep 23, 2024

先运行 python launcher.py 安装相关依赖,或者手动安装:

"install_dependencies": [
"paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu123/",
"PySide6-Fluent-Widgets>=1.5.5 --no-deps",
"paddleocr==2.8.1 ok-script pycaw psutil setuptools WMI>=1.5.1 typing-extensions>=4.11.0 numpy==1.26.4 opencv-contrib-python>=4.10.0.84"
],

@ok-oldking
Copy link
Owner

按照requirements-gpu.txt里安装依赖

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

3 participants