当前位置:网站首页>The solution to the inconsistency between the PaddleX deployment inference model and the GUI interface test results
The solution to the inconsistency between the PaddleX deployment inference model and the GUI interface test results
2022-08-01 05:09:00 【I had free and unfettered Kurt】
Problem description:
Recently, when PaddleX is used for target detection and FasterRCNN is used, the exported inference_model is deployed to windows and the result calculated locally is wrong.
The following is the code for model deployment
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)The predicts test and output are incorrect:
1. The coordinates are negative
2. The confidence level is greater than 1
3. The predicted category exceeds the number of labels
Workaround:
The prediction result using GPU is correct, modify the code as
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)New question:
Error after using GPU: Process has ended, exit code -1073740791 (0xC0000409)
Workaround:
I am using pycharm, select edit configuration, check the analog output console (screenshots from other blogs are quoted here)


This will output the error message:
Could not locate zlibwapi.dll. Please make sure it is in your library path
It turns out that some resources are missing
Link: https://pan.baidu.com/s/1JE4D5NQ0MfRkZdAEVQZHVQ
Extraction code: t4uv
The lib file is placed in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\lib
Put the dll file in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin
Reference blog: Resource acquisition
Run the program again after adding, the result is correct!
边栏推荐
- typescript27 - what about enumeration types
- MySQL-Data Operation-Group Query-Join Query-Subquery-Pagination Query-Joint Query
- typescript24 - type inference
- safari浏览器怎么导入书签
- HJS-DE1/2时间继电器
- pytroch、tensorflow对比学习—功能组件(数据管道、回调函数、特征列处理)
- 「以云为核,无感极速」顶象第五代验证码
- Asynchronous reading and writing of files
- pytroch、tensorflow对比学习—搭建模型范式(构建模型方法、训练模型范式)
- typescript23-元组
猜你喜欢

Pyspark机器学习:向量及其常用操作

Pyspark Machine Learning: Vectors and Common Operations
![[target detection] YOLOv7 theoretical introduction + practical test](/img/ff/a83acbf9dd5cc2f907f3538d287842.png)
[target detection] YOLOv7 theoretical introduction + practical test

MySQL-数据定义语言-DDLdatebase define language

pytorch、tensorflow对比学习—功能组件(激活函数、模型层、损失函数)

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

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

The difference between scheduleWithFixedDelay and scheduleAtFixedRate

初识shell脚本

pytroch、tensorflow对比学习—专栏介绍
随机推荐
Selenium:鼠标、键盘事件
II. Binary tree to Offer 68 - recent common ancestor
In the shake database, I want to synchronize the data of the source db0 to the destination db5, how to set the parameters?
7 行代码搞崩溃 B 站,原因令人唏嘘!
LeetCode 231. 2 的幂
请问表格储存中用sql只能查询到主键列,ots sql非主键不支持吗?
Check控件
文件的异步读写
初识shell脚本
typescript21-接口和类型别名的对比
pytorch、tensorflow对比学习—功能组件(优化器、评估指标、Module管理)
MySQL Practice Summary -
UE4 制作遇到的问题
typescript28-枚举类型的值以及数据枚举
typescript21 - Comparison of Interfaces and Type Aliases
USB3.0:VL817Q7-C0的LAYOUT指南(三)
数组问题之《两数之和》以及《三数之和 》
冲刺金九银十,Android开发面试(内含面试资料|面试题|源码)
可持久化线段树
(2022 Nioke Duo School IV) H-Wall Builder II (Thinking)