当前位置:网站首页>理解 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非极大值抑制,在这里面的作用我的理解是,在类别相同时,任何可以框选出
多个实例。
参考:
边栏推荐
- 今日直播 | “人玑协同 未来已来”2022弘玑生态伙伴大会蓄势待发
- Unbalance balance (dynamic programming, DP)
- Leetcode 30. 串联所有单词的子串
- ModuleNotFoundError: No module named ‘PIL‘解决方法
- 保证接口数据安全的10种方案
- It's super detailed in history. It's too late for you to read this information if you want to find a job
- Xingnuochi technology's IPO was terminated: it was planned to raise 350million yuan, with an annual revenue of 367million yuan
- Leetcode topic [array] - 119 Yang Hui triangle II
- Looting iii[post sequence traversal and backtracking + dynamic planning]
- 学习探索-无缝轮播图
猜你喜欢

MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!

JDBC details

【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)

Xingnuochi technology's IPO was terminated: it was planned to raise 350million yuan, with an annual revenue of 367million yuan

How to type multiple spaces when editing CSDN articles

史上超级详细,想找工作的你还不看这份资料就晚了

A popular explanation will help you get started

Druid database connection pool details

Graffiti intelligence is listed on the dual main board in Hong Kong: market value of 11.2 billion Hong Kong, with an annual revenue of 300 million US dollars

三面蚂蚁金服成功拿到offer,Android开发社招面试经验
随机推荐
Using clip path to draw irregular graphics
数学知识——高斯消元(初等行变换解方程组)代码实现
关于图像的读取及处理等
主从搭建报错:The slave I/O thread stops because master and slave have equal MySQL serv
CPU负载很低,loadavg很高处理方法
A full set of teaching materials, real questions of Android interview of 7 major manufacturers including Alibaba Kwai pinduoduo
黑馬--Redis篇
Test technology stack arrangement -- self cultivation of test development engineers
ModuleNotFoundError: No module named ‘PIL‘解决方法
时钟轮在 RPC 中的应用
Mathematical knowledge -- code implementation of Gaussian elimination (elementary line transformation to solve equations)
中缀表达式转后缀表达式详细思路及代码实现
【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
[pytorch] yolov5 train your own data set
R language ggplot2 visualization: use ggviolin function of ggpubr package to visualize violin diagram
[translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
Analysis of frequent chain breaks in applications using Druid connection pools
如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
安装Mysql报错:Could not create or access the registry key needed for the...