当前位置:网站首页>Pytorch 32 onnx model will change the solution every time the output results
Pytorch 32 onnx model will change the solution every time the output results
2022-07-22 07:51:00 【Ten thousand miles and a bright future arrived in an instant】
Normally onnx The output of the model will change every time , This is an extraordinary , Difficult topics . because , Once the model parameters are exported , In theory, it will not change . and ,paddle、pytorch、tensorflow When the framework exports the model , It is also the default setting model mode The value is eval, That is, set parameters without updating . If not personally experienced , See with your own eyes , Bloggers will not believe that there is such a fantastic thing . It can only be said , I know everything I've met . Normal use standard ai Framework export deployment model , Such a thing can never happen .
The reason why bloggers encounter this kind of thing , Because the early operation show is too 6. Reach out MMSegmentation in , Train in your own way mmseg In the model , then And the magic changes the network to deploy .【 Because bloggers use the magic change network , You can only use it yourself pytorch Built in torch Model transfer onnx, After export onnx The model output becomes unstable . Generally speaking ,mmseg、mmdet All models of the series should use mmdeploy Export 】. stay libtorch Deploy , The output of the model is normal every time 【 Any test , Input unchanged , Output unchanged 】. And more recently , Convert the model to onnx After deployment , Whether it's c++ Next or python Next , For the same input data ,onnxruntime The result of each output is different every time .
1、 State description
The blogger's model is saved as pth(libtorch Format ) when , The output of each load is fixed . And in the conversion to onnx After deployment , For the same input data , There is a slight deviation in the results of each output .
边栏推荐
- Dynamics crm: deeply analyze the impact of sandbox and asynchronous services on plug-in and workflow in on premise server
- MLX90640 红外热成像仪测温模块开发笔记(三)
- Introduction to single chip microcomputer: LED light flashes
- Completion report of communication software development and Application
- Dynamics 365: how to create users in azure AD and add them to dynamics 365 Online
- 单片机入门:LED灯循环右移点亮
- Definition of feeling
- 无偿分享 简单易用 贝茨训练法 调解睫状肌 近视恢复训练
- C语言实型数据的存在形式以及合法性(浮点数)
- Dynamics CRM: 使用setFilterXml来过滤需要在表单的Subgrid控件中进行展示的记录
猜你喜欢
微信一面:一致性哈希是什么,使用场景,解决了什么问题?
Dynamics CRM: 关系Relationships(1) - 1:N, N:1
Dynamics crm: role of non event dependencies in form
Dynamics CRM: 在Form的导航中添加Process Sessions以便于查看workflow的运行历史
Dynamics crm: how to use query string parameters
Web3, encrypted VC new air outlet
并发编程之多线程基础
Dynamics CRM: 深度解析本地部署(On-premise)服务器中Sandbox, Asynchronous服务对插件Plug-in和工作流Workflow的影响
Dynamics crm: how to monitor and manage workflow processes and view their running history
Application between azure service bus and dynamics 365 service endpoint
随机推荐
Tianzheng T20 v8.0 complete software installation package download and installation tutorial
单片机入门:LED灯闪烁
Azure Key Vault(3):Key和Secret的区别
Application between azure service bus and dynamics 365 service endpoint
Dynamics CRM: among the locally deployed servers, sandbox, unzip, VSS, asynchronous, and monitor services are also available
华泰证券开户安全么,不知道怎么操作
Dynamics crm: use setfilterxml to filter the records that need to be displayed in the subgrid control of the form
Embedded development: seven skills of using RTOS
Multithreading foundation of concurrent programming
Dynamics 365: 如何解除实体只能创建2个Access Team Templates的限制
Dynamics 365: find which records are shared to a user by access team
Common questions of testers during interview
Comment ouvrir plusieurs wechat sur l'ordinateur
带你认识8个软件设计中的谬误
ROS机械臂 Movelt 学习笔记1 | 基础准备
知觉的定义
Dynamics CRM: 查询字符串参数(Query String Parameters)的使用方法
Dynamics CRM: 在Form的导航中添加Process Sessions以便于查看workflow的运行历史
Dynamics CRM: 深度解析本地部署(On-premise)服务器中Sandbox, Asynchronous服务对插件Plug-in和工作流Workflow的影响
How to open multiple wechat on the computer