当前位置:网站首页>Anchor point and anchor frame of target detection
Anchor point and anchor frame of target detection
2022-07-24 03:36:00 【Shaoji Bay】

Reading guide : The target detection model uses the anchor box to predict the position box of the object , It is of key significance for the task of target detection . Understanding and carefully tuning the anchor frame of the model is very important to improve the detection performance , Especially when the data set has irregular objects .
Anchor frame and target detection task
object detection , Different from the image classification task . Usually there are many objects of the same or different categories in a picture , Target detection task , Need to accurately identify and locate all items .
This figure shows the result of a target being detected , Both need to be given object class The degree of confidence , You also need to give the coordinates of the location frame (x1,x2,y1,y1, Four numbers are used here to describe the location box ). The target detection model handles this task by dividing the prediction into two parts : Predict the bounding box through regression ; Predict class labels by classification .
What is an anchor frame ?
In order to predict and locate multiple targets in a picture , Most leading detection models such as EfficientDet and YOLO Take the anchor frame as a priori , And then start adjusting . Generally speaking , Use the bounding box in the following order :
- Thousands of candidate anchor boxes are formed in the image ;
- For each anchor frame , Predict some amount of this box , And as a candidate box ;
- Bounding box based on real dimension , Calculate the loss function ;
- Calculate the probability that the given offset box overlaps the real object ;
- If the probability is greater than 0.5, Incorporate this forecast into the loss function ;
- Through the gradual reward and punishment prediction box , Push the model in the right direction .
If you are only a light training model , You will see the prediction box appear everywhere . As shown in the figure below :
If you train on your own dataset YOLO, You may need to customize these anchor boxes . but YOLOv5 It can automatically learn the anchor box distribution based on the training set , Every time you train , Adaptively calculate the best anchor frame value in different training sets .
Of course , If you think the calculated anchor frame effect is not very good , You can also turn off the automatic calculation anchor box function in the code .
Described in the code as :
parser.add_argument('--noautoanchor', action='store_true', help='disable autoanchor check')
Turn off the automatic calculation anchor box function , namely train.py This line of code in , Set to False, Every time you train , Does not automatically calculate .
边栏推荐
- IO stream sorting
- SolidWorks cannot reference references
- Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
- Mobile keyboard (day 73)
- 错误代码0x80004005
- Why do some people write code so complicated?
- How to efficiently install the GPU version of mindspire
- C file operation details
- Secondary development of ArcGIS JS API -- loading national sky map
- JS Array isaarray () Type of
猜你喜欢

Emqx v4.4.5 Publishing: new exclusive subscriptions and mqtt 5.0 publishing attribute support

Redis transaction learning

C user defined type details

实现两个页面之前的通信(使用localStorage)

How will you answer the "Hello world" challenge written in C language?

Hcip day 9 notes (OSPF routing feedback, routing policy, and Configuration Guide)

Industrial controller, do you really know your five insurances and one fund?

Jump statements break and continue

C自定义类型详解

RTOS内功修炼记(十) | 深度解析RTOS内核上下文切换机制
随机推荐
Binary search
C user defined type details
93. (leaflet chapter) leaflet situation plotting - modification of attack direction
MySql的DDL和DML和DQL的基本语法
Error code 0x80004005
Gpushare.com | 如何使用TensorBoardX可视化工具?
How emqx 5.0 under the new architecture of mria + rlog realizes 100million mqtt connections
What are Caicai and qiniu doing? Is it safe to open an account?
Regular expression \b \b understand word boundary matching in simple terms
idea写web项目时报错Failed to load resource: the server responded with a status of 404 (Not Found)
[super complete sorting] Cisco and Huawei order comparison memo, take it away without thanks! Anytime, anywhere
Insist on accompanying study
Embedded system transplantation [5] - Cross compilation tool chain
Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
Skywalking distributed system application performance monitoring tool - upper
4. Hezhou air32f103_ LCD
STL set container
Batch visual target detection callout box -- Yolo format dataset
Redis transaction learning
QT custom class uses custom parametric signals and slots