当前位置:网站首页>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!
边栏推荐
猜你喜欢

UE4 制作遇到的问题

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

2022年超全的Android面经(附含面试题|进阶资料)

【目标检测】YOLOv7理论简介+实践测试

2022年湖南工学院ACM集训第六次周测题解

Typescript20 - interface

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

Robot_Framework:关键字

USB3.0:VL817Q7-C0的LAYOUT指南(三)

Lawyer Interpretation | Guns or Roses?Talking about Metaverse Interoperability from the Battle of Big Manufacturers
随机推荐
PAT serie b write the number 1002
typescript20-接口
WPF项目-初步了解数据绑定 binding
图片更新之后Glide加载依旧是原来的图片问题
Selenium:元素等待
Selenium: mouse, keyboard events
25. Have you been asked these three common interview questions?
LeetCode 231. 2 的幂
Optional parameters typescript19 - object
Use controls as brushes to get bitmap code records
在沈自所的半年总结
Seleniu:元素常用操作
MySQL Practice Summary -
Challenge 52 days to memorize Peppa Pig (Day 01)
typescript23-元组
typescript26 - literal types
SL-12/2过流继电器
WPF入门项目必知必会-初步了解数据绑定 binding
挑战52天背完小猪佩奇(第01天)
(2022牛客多校四)D-Jobs (Easy Version)(三维前缀或)