Comments (3)
看起来是模型的输入不对,你检查一下放入模型的输入是否符合预期,看报错你输入的shape是1.765.1360.3 ?
from fastdeploy.
看起来是模型的输入不对,你检查一下放入模型的输入是否符合预期,看报错你输入的shape是1.765.1360.3 ?
std::string att_model_file = "/home/V01/uids0382/projects/CarDetDemo/vehicle_attribute_model/model.pdmodel";
std::string att_params_file = "/home/V01/uids0382/projects/CarDetDemo/vehicle_attribute_model/model.pdiparams";
std::string att_infer_cfg_file = "/home/V01/uids0382/projects/CarDetDemo/vehicle_attribute_model/infer_cfg.yml";
auto att_model = fastdeploy::vision::classification::PaddleClasModel(att_model_file, att_params_file, att_infer_cfg_file);
fastdeploy::vision::ClassifyResult result;
obj.convertTo(obj,CV_32F);//obj是Mat 图像
assert(att_model.Predict(&obj, &result));
直接用fastdeploy定义推理接口,好像不需要定义输入图像的大小吧,直接使用Predict进行推理就行了吧
from fastdeploy.
问题已已解决,使用paddleclas项目下 ./deploy/configs/inference_cls.yaml替代https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.7/deploy/pipeline/docs/tutorials/ppvehicle_attribute.md下载的车辆属性yml文件即可解决。
from fastdeploy.
Related Issues (20)
- 支持yolov9不 HOT 1
- FastDeploy有计划推通用Java平台的SDK吗 HOT 2
- FastDeploy PPYoloE Plus 模型的前置处理实现在哪里可以查看源码 HOT 1
- FastDeploy目前支持cyclegan的C++sdk部署吗 HOT 1
- hopper架构上安装后使用报错 HOT 1
- 希望增加pp-shitu部署的更多示例 HOT 2
- TensorRT后端能否生成engin文件,下次启动直接打开engin文件,不用每次生成。 HOT 2
- RK3588上部署FastDeploy,模型推理无法推理,提示"DBDetector" object has no attribute 'preprocessor'' HOT 1
- deeplabv3p的onnx模型使用GPU+FP16推理耗时增加 HOT 2
- fastdeploy的sophgo开发案例,ppyoloe正常转模型及推理,转picodet模型为bmodel正常,推理结果出错,yolov8还未开始调试 HOT 2
- Does fastdeploy have a docker image about the python version?
- Error [ERR_REQUIRE_ESM]: require() of ES Module d3-polygon from @paddle-js-models\ocr not supported
- README 文档在黑色的 Github 主题下,无法看清“推理后端及能力”的表格表头。
- 编译成功,CPU运行成功 GPU运行失败
- 在华为昇腾Atlas 300推理卡上编译安装FastDeploy,后尝试部署uie模型出现问题。[ERROR] fastdeploy/runtime/runtime_option.cc(181)::UsePaddleBackend The FastDeploy didn't compile with Paddle Inference. HOT 1
- rk3588部署飞浆ocr使用命令行代码可以运行,但是使用python脚本调用出现问题 HOT 1
- Failed to build on Ubuntu 20 HOT 1
- pp-ocr服务化部署问题 HOT 1
- FastDeploy-release-1.0.7 单个模型在70ms作用,piplin需要300-500毫秒 HOT 3
- RuntimeError: FastDeploy initalized failed! Error: DLL load failed while importing fastdeploy_main: 找不到指定的程序。 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastdeploy.