当前位置:网站首页>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
参考博客:资源获取
添加后再次运行程序,结果正确!
边栏推荐
- (more than 2022 cattle school four) A - Task Computing + dynamic programming (sort)
- II. Binary tree to Offer 68 - recent common ancestor
- SL-12/2过流继电器
- 请问shake数据库中想把源的db0的数据同步到目的db5,参数怎么设置呢?
- 数据比对功能调研总结
- typescript20-接口
- The Flow Of Percona Toolkit pt-table-checksum
- LeetCode 1189. “气球” 的最大数量
- Li Chi's work and life summary in July 2022
- 文件的异步读写
猜你喜欢

风险策略调优中重要的三步分析法

typescript23-元组

56:第五章:开发admin管理服务:9:开发【文件上传到,MongoDB的GridFS中,接口】;(把文件上传到GridFS的SOP)

y83.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十四)

Risk strategy important steps of tuning method
![[MySQL] 多表查询](/img/f0/c158750a5a84155ee82729daba2bb3.png)
[MySQL] 多表查询

基于Arduino制作非接触式测温仪

Progressive Reconstruction of Visual Structure for Image Inpainting 论文笔记

pytroch、tensorflow对比学习—搭建模型范式(低阶、中阶、高阶API示例)

typescript24 - type inference
随机推荐
可持久化线段树
万字逐行解析与实现Transformer,并进行德译英实战(一)
关于给Qt做一个软件初始化的进度条
Selenium:鼠标、键盘事件
The Flow Of Percona Toolkit pt-table-checksum
云服务器下载安装mongo数据库并远程连接详细图文版本(全)
2022年超全的Android面经(附含面试题|进阶资料)
II. Binary tree to Offer 68 - recent common ancestor
MySQL-DML语言-数据库操作语言-insert-update-delete-truncate
Code Interview Guide for Programmers CD15 Generating an Array of Windowed Maximums
LeetCode 27. 移除元素
Swastika line-by-line parsing and realization of the Transformer, and German translation practice (2)
typescript27-枚举类型呢
TIM登陆时提示00001(TIM00001)
律师解读 | 枪炮还是玫瑰?从大厂之争谈元宇宙互操作性
博客系统(完整版)
(2022牛客多校四)H-Wall Builder II(思维)
Lawyer Interpretation | Guns or Roses?Talking about Metaverse Interoperability from the Battle of Big Manufacturers
PMP 相关方管理必背总结
Error: AttributeError: module 'matplotlib' has no attribute 'figure'