当前位置:网站首页>理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)
理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)
2022-07-06 11:36:00 【code bean】
引言
1 预测阶段,就是在模型已经训练好之后,开始进行预测的阶段
2 NMS非极大值抑制,在这里面的作用我的理解是,在类别相同时,任何可以框选出
多个实例。
交并比(iou)
那么交并比就是:
非极大值抑制(NMS)
上篇文章中《理解 YOLOV1 第一篇 预测阶段_code bean的博客-CSDN博客》我们预测出了98个候选框,那么我们现在要做的就是筛选出最为准确的那几个。
NMS第1轮
我们首先将其中一类(比如狗)的候选框按全概率进行降序排序,然后将所有的候选框和第一个比较,如果候选框的交并比大于某个阈值,就直接将此候选框对应的概率清零(相当于排除该候选框,因为交并比过大说明是重复的选择,概率有比最大的小,所以可以干掉)
如上图所示,黄色框和绿色框交并比大于0.5结果,绿框被干掉了。
NMS第2轮
经过了第一轮,和第一个框交并比过大的都被干掉了,于是开始第二轮,第二轮此时从第二大概率的候选框开始,也就是此时图中的蓝色框框,而此时蓝色的框框后面的红色框框交并比过大,所以红色框框被干掉。
后面可能还有第N轮,然后一直到结束。
不过到目前为止,黄框和蓝框是最终被保留的选择框。
NMS非极大值抑制,在这里面的作用我的理解是,在类别相同时,任何可以框选出
多个实例。
参考:
边栏推荐
- Use of deg2rad and rad2deg functions in MATLAB
- Tensorflow2.0 self defined training method to solve function coefficients
- 学习探索-函数防抖
- Actf 2022 came to a successful conclusion, and 0ops team won the second consecutive championship!!
- 中缀表达式转后缀表达式详细思路及代码实现
- 谷粒商城--分布式高级篇P129~P339(完结)
- RT-Thread 组件 FinSH 使用时遇到的问题
- In depth analysis, Android interview real problem analysis is popular all over the network
- Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
- The dplyr package of R language performs data grouping aggregation statistical transformations and calculates the grouping mean of dataframe data
猜你喜欢
三面蚂蚁金服成功拿到offer,Android开发社招面试经验
【计算情与思】扫地僧、打字员、信息恐慌与奥本海默
助力安全人才专业素养提升 | 个人能力认证考核第一阶段圆满结束!
How to access localhost:8000 by mobile phone
思維導圖+源代碼+筆記+項目,字節跳動+京東+360+網易面試題整理
In depth analysis, Android interview real problem analysis is popular all over the network
JDBC details
LeetCode_双指针_中等_61. 旋转链表
学习探索-使用伪元素清除浮动元素造成的高度坍塌
Mathematical knowledge -- code implementation of Gaussian elimination (elementary line transformation to solve equations)
随机推荐
Mysql Information Schema 学习(二)--Innodb表
Interview assault 63: how to remove duplication in MySQL?
Actf 2022 came to a successful conclusion, and 0ops team won the second consecutive championship!!
Cereals Mall - Distributed Advanced p129~p339 (end)
Zero foundation entry polardb-x: build a highly available system and link the big data screen
Detailed idea and code implementation of infix expression to suffix expression
JDBC details
史上超级详细,想找工作的你还不看这份资料就晚了
Druid 数据库连接池 详解
In 50W, what have I done right?
LeetCode_双指针_中等_61. 旋转链表
思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理
【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
zabbix 代理服务器 与 zabbix-snmp 监控
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
Problems encountered in using RT thread component fish
Interface test tool - postman
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe
如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!