当前位置:网站首页>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!
边栏推荐
- MySQL-数据操作-分组查询-连接查询-子查询-分页查询-联合查询
- (2022牛客多校四)A-Task Computing (排序+动态规划)
- MySQL Practice Summary -
- state compressed dp
- (Codeforce 757) E. Bash Plays with Functions
- JWL-11/2-99.9A电流继电器
- typescript26-字面量类型
- ModuleNotFoundError: No module named ‘tensorflow.keras‘报错信息的解决方法
- typescript26 - literal types
- 风险策略调优中重要的三步分析法
猜你喜欢
随机推荐
Optional parameters typescript19 - object
Typescript22 - interface inheritance
MySQL-Data Definition Language-DDLdatebase define language
typescript24-类型推论
(2022牛客多校四)K-NIO‘s Sword(思维)
DL-31/6电流继电器
typescript21-接口和类型别名的对比
UE4 模型OnClick事件不生效的两种原因
typescript24 - type inference
(2022 Nioke Duo School IV) H-Wall Builder II (Thinking)
类神经网络训练不起来怎么办
Dry goods!How to Construct SRv6-TE Performance Test Environment Using Instrumentation
程序员代码面试指南 CD15 生成窗口最大值数组
文件的异步读写
HJS-DE1/2时间继电器
Selenium:下拉框操作
25. 这三道常见的面试题,你有被问过吗?
牛客多校2022第四场A,H,K,N
Selenium:元素等待
High Numbers | 【Re-integration】Line Area Score 880 Examples









