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

Jetson部署库编译安装后运行错误 #2424

Open
lvrh2018 opened this issue Apr 7, 2024 · 0 comments
Open

Jetson部署库编译安装后运行错误 #2424

lvrh2018 opened this issue Apr 7, 2024 · 0 comments
Assignees

Comments

@lvrh2018
Copy link

lvrh2018 commented Apr 7, 2024

wheel包安装成功。

测试代码:
import cv2
import fastdeploy.vision as vision

model = vision.detection.PPYOLOE("ppyoloe_crn_l_300e_coco/model.pdmodel",
"ppyoloe_crn_l_300e_coco/model.pdiparams",
"ppyoloe_crn_l_300e_coco/infer_cfg.yml")

im = cv2.imread("ppocr_img/imgs/14.jpg")
result = model.predict(im)
print(result)

错误提示:
Traceback (most recent call last):
File "/home/nvidia/miniconda3/envs/camera/lib/python3.8/site-packages/fastdeploy/c_lib_wrap.py", line 164, in
from .libs.fastdeploy_main import *
ModuleNotFoundError: No module named 'fastdeploy.libs.fastdeploy_main'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/nvidia/PycharmProjects/untitled/fastdeploy_demo.py", line 2, in
import fastdeploy.vision as vision
File "/home/nvidia/miniconda3/envs/camera/lib/python3.8/site-packages/fastdeploy/init.py", line 122, in
from .c_lib_wrap import (
File "/home/nvidia/miniconda3/envs/camera/lib/python3.8/site-packages/fastdeploy/c_lib_wrap.py", line 166, in
raise RuntimeError(f"FastDeploy initalized failed! Error: {e}")
RuntimeError: FastDeploy initalized failed! Error: No module named 'fastdeploy.libs.fastdeploy_main'

Process finished with exit code 1

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