当前位置:网站首页>PaddleX部署推理模型和GUI界面测试结果不一致的解决方法
PaddleX部署推理模型和GUI界面测试结果不一致的解决方法
2022-08-01 05:01:00 【我本逍遥Kurt】
问题描述:
近期在用PaddleX做目标检测,用到FasterRCNN的时候,导出的inference_model部署到windows本地计算出的结果有误。
以下是模型部署的代码
model = pdx.deploy.Predictor('F:\panyutong\PaddleX\model\model5\inference_model
\inference_model')
image_name = 'F:\panyutong\LG\\test\\test\IMAGES\\1404.jpg'
predicts = model.predict(image_name)predicts测试和输出结果有误:
1.坐标为负
2.置信度大于1
3.预测的类别超出了自己的label个数
解决方法:
使用GPU预测结果是正确的,修改代码为
model = pdx.deploy.Predictor('F:\panyutong\PaddleX\model\model5\inference_model
\inference_model',use_gpu=True)
image_name = 'F:\panyutong\LG\\test\\test\IMAGES\\1404.jpg'
predicts = model.predict(image_name)新的问题:
使用GPU后报错:进程已结束,退出代码-1073740791 (0xC0000409)
解决方法:
我用的是pycharm,选择编辑配置,勾选模拟输出控制台(这里引用了其他博客的截图)


这样就可以把错误信息输出:
Could not locate zlibwapi.dll. Please make sure it is in your library path
原来是缺少一些资源
链接:https://pan.baidu.com/s/1JE4D5NQ0MfRkZdAEVQZHVQ
提取码:t4uv
lib文件放到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\lib
dll文件放到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin
参考博客:资源获取
添加后再次运行程序,结果正确!
边栏推荐
- typescript23-元组
- state compressed dp
- PAT乙级 1002 写出这个数
- y83.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十四)
- pytroch、tensorflow对比学习—功能组件(数据管道、回调函数、特征列处理)
- ModuleNotFoundError: No module named ‘tensorflow.keras‘报错信息的解决方法
- 产品经理访谈 | 第五代验证码的创新与背景
- typescript21 - Comparison of Interfaces and Type Aliases
- The Flow Of Percona Toolkit pt-table-checksum
- PMP 80个输入输出总结
猜你喜欢

typescript25-类型断言

Visual Studio提供的 Command Prompt 到底有啥用

PAT乙级 1002 写出这个数

typescript28 - value of enumeration type and data enumeration

Swastika line-by-line parsing and realization of the Transformer, and German translation practice (a)

The method of solving stored procedure table name passing through variable in mysql

7月编程排行榜来啦!这次有何新变化?

程序员代码面试指南 CD15 生成窗口最大值数组

typescript28-枚举类型的值以及数据枚举

(2022 Niu Ke Duo School IV) K-NIO's Sword (Thinking)
随机推荐
Optional parameters typescript19 - object
Mysql基础篇(Mysql数据类型)
Mysql中的数据类型和运算符
RSA主要攻击方法
移动应用恶意攻击激增500% 三六零天御为APP免费构建安全屏障
typescript23-元组
In the shake database, I want to synchronize the data of the source db0 to the destination db5, how to set the parameters?
mysql中解决存储过程表名通过变量传递的方法
数组问题之《下一个排列》、《旋转图像》以及二分查找之《搜索二维矩阵》
UE4 rays flashed from mouse position detection
Lawyer Interpretation | Guns or Roses?Talking about Metaverse Interoperability from the Battle of Big Manufacturers
UE4 制作遇到的问题
初识shell脚本
Selenium:鼠标、键盘事件
(2022牛客多校四)A-Task Computing (排序+动态规划)
typescript22-接口继承
Swastika line-by-line parsing and realization of the Transformer, and German translation practice (a)
可持久化线段树
Selenium:上传、下载文件
高数 | 【重积分】线面积分880例题