PaddlePaddle / PaddlePaddle/FastDeploy

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

Open
#2,424 0 comments 0 reactions 1 assignee View on GitHub

@rainyfly is already working on this.

Since Apr 7, 2024.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.