PaddlePaddle / FastDeploy

⚡️An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for ☁️Cloud 📱Mobile and 📹Edge. Including Image, Video, Text and Audio 20+ main stream scenarios and 150+ SOTA models with end-to-end optimization, multi-platform and multi-framework support.
https://www.paddlepaddle.org.cn/fastdeploy
Apache License 2.0
2.83k stars 444 forks source link

FastDeploy在Jetson AGX Orin上部署时遇到的问题? #2132

Open MrMzl opened 12 months ago

MrMzl commented 12 months ago

环境 【FastDeploy版本】: 说明具体的版本,如fastdeploy-develop 【硬件】: Jetson AGX Orin 【编译语言】: C++

编译命令: cmake .. -DBUILD_ON_JETSON=ON -DENABLE_VISION=ON -DENABLE_PADDLE_BACKEND=OFF -DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy -DENABLE_FLYCV=ON -DOPENCV_DIRECTORT=/usr/lib/aarch64-linux-gnu/cmake/opencv4 -DBUILD_PADDLE2ONNX=ON make -j8 make install 以上均可正常编译。 进入example中进行ppyoloe模型推理,报下面错误 test@tegra-ubuntu:~/FastDeploy/Fastdeploy_0724/FastDeploy-develop/examples/vision/detection/paddledetection/cpp/build$ ./infer_ppyoloe_demo ./ppyoloe_crn_l_300e_coco 000000014439.jpg 0 [INFO] fastdeploy/vision/common/processors/transform.cc(45)::FuseNormalizeCast Normalize and Cast are fused to Normalize in preprocessing pipeline. [INFO] fastdeploy/vision/common/processors/transform.cc(93)::FuseNormalizeHWC2CHW Normalize and HWC2CHW are fused to NormalizeAndPermute in preprocessing pipeline. [INFO] fastdeploy/vision/common/processors/transform.cc(159)::FuseNormalizeColorConvert BGR2RGB and NormalizeAndPermute are fused to NormalizeAndPermute with swap_rb=1 [INFO] fastdeploy/runtime/runtime.cc(326)::CreateOrtBackend Runtime initialized with Backend::ORT in Device::CPU. terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.3) /home/test/opencv/opencv-4.5.3/modules/imgproc/src/resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'resize' Aborted (core dumped)

leiqing1 commented 12 months ago

在jetson 上,尽量使用tensorRT或者Paddle Inference后端