当前位置:网站首页>理解 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非极大值抑制,在这里面的作用我的理解是,在类别相同时,任何可以框选出
多个实例。
参考:
边栏推荐
- A popular explanation will help you get started
- swagger2报错Illegal DefaultValue null for parameter type integer
- About image reading and processing, etc
- 学习探索-使用伪元素清除浮动元素造成的高度坍塌
- 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
- 深入分析,Android面试真题解析火爆全网
- LeetCode-1279. 红绿灯路口
- R language uses rchisq function to generate random numbers that conform to Chi square distribution, and uses plot function to visualize random numbers that conform to Chi square distribution
- How to access localhost:8000 by mobile phone
- Modulenotfounderror: no module named 'PIL' solution
猜你喜欢

How word displays modification traces

A popular explanation will help you get started

零基础入门PolarDB-X:搭建高可用系统并联动数据大屏
![打家劫舍III[后序遍历与回溯+动态规划]](/img/9b/e9eeed138e46afdeed340bf2629ee1.png)
打家劫舍III[后序遍历与回溯+动态规划]

C language daily practice - day 22: Zero foundation learning dynamic planning

Low CPU load and high loadavg processing method

Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference

ACTF 2022圆满落幕,0ops战队二连冠!!

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

Pychrm Community Edition calls matplotlib pyplot. Solution of imshow() function image not popping up
随机推荐
Tensorflow2.0 self defined training method to solve function coefficients
Leetcode 30. 串联所有单词的子串
中缀表达式转后缀表达式详细思路及代码实现
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
Simple application of VBA script in Excel
R language ggplot2 visual time series histogram: visual time series histogram through two-color gradient color matching color theme
Cereals Mall - Distributed Advanced p129~p339 (end)
R language ggplot2 visualization: use the ggdotplot function of ggpubr package to visualize dot plot, set the palette parameter, and set the colors of data points and box graphs of dot plots at differ
Use of deg2rad and rad2deg functions in MATLAB
Unbalance balance (dynamic programming, DP)
Tensorflow2.0 自定义训练的方式求解函数系数
打家劫舍III[后序遍历与回溯+动态规划]
CF960G - Bandit Blues(第一类斯特林数+OGF)
接雨水问题解析
LeetCode_双指针_中等_61. 旋转链表
How to access localhost:8000 by mobile phone
Mysql Information Schema 学习(一)--通用表
在解决了 2961 个用户反馈后,我做出了这样的改变...
Characteristic colleges and universities, jointly build Netease Industrial College
How to type multiple spaces when editing CSDN articles