Unlock instant, AI-driven research and patent intelligence for your innovation.

A Face Detection Method Based on Master Sample Attention Mechanism

A technology of face detection and attention, which is applied in the field of face detection to achieve the effect of improving accuracy and performance

Active Publication Date: 2021-04-20
成都东方天呈智能科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] To sum up, there are two problems in the existing face detection methods: 1) Separate classification and positioning; 2) Treat all samples equally and independently, ignoring the influence relationship between samples

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Face Detection Method Based on Master Sample Attention Mechanism
  • A Face Detection Method Based on Master Sample Attention Mechanism
  • A Face Detection Method Based on Master Sample Attention Mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] A face detection method of a main sample attention mechanism, comprising the following steps:

[0064] Step S100: collecting image data containing human faces in natural scenes to form a training set;

[0065] Step S200: Use the network model to extract the feature map information of the training image, and then use the anchor frame screening module to generate a predicted anchor frame set using the predicted coordinate value offset on each feature point of the feature map, and classify the predicted anchor frames into candidate Positive samples and candidate negative samples, respectively sorting candidate positive samples and candidate negative samples;

[0066] Step S300: Finally, use the loss function to calculate the loss value. The loss function is divided into category classification loss function and position regression loss function, and according to the ranking results of candidate positive samples and candidate negative samples, the weights of loss values ​​w...

Embodiment 2

[0079] This embodiment is optimized on the basis of Embodiment 1. The category classification loss function uses a binary cross-entropy loss function, and the weight of the loss value is set according to the order of the samples in the set, which is different importance The loss weight corresponding to the sample distribution, the calculation formula is as follows:

[0080]

[0081] in:

[0082] is the sorting after normalization,

[0083] is the maximum value ranked in the set;

[0084] To predict the ranking of the anchor box in the set to which it belongs;

[0085] is the weight value converted into the ranking of the set;

[0086] β and γ are the parameters for setting the adjustment weight value respectively;

[0087] Will normalized into ,

[0088] is the ground truth class label,

[0089] To predict the probability value of a certain class,

[0090] in formula (4) i is a positive sample, j is a negative sample,

[0091] If the distance inter...

Embodiment 3

[0094] This embodiment is optimized on the basis of Embodiment 1 or 2. The position regression loss function adopts the classification-aware regression loss function, which forms a positive correlation between classification and position regression, optimizes the classification and position regression branches at the same time, and calculates the predicted anchor frame The loss value between the coordinate offset and the real coordinate offset, the calculation formula is as follows:

[0095]

[0096] in:

[0097] is a general smooth L1 loss function,

[0098] is the category probability value after calculation with the adjustment factor,

[0099] n is the class probability value The total number of samples,

[0100] is the regression loss weight value obtained after normalization according to the category probability value,

[0101] is the real coordinate offset,

[0102] is the predicted coordinate offset;

[0103] is the category probability value of t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a face detection method based on a main sample attention mechanism, which uses a network model to extract feature map information of a training image, and then uses the predicted coordinate value offset on each feature point of the feature map by an anchor box screening module Generate a set of prediction anchor boxes, and divide the prediction anchor boxes into candidate positive samples and candidate negative samples, sort the candidate positive samples and candidate negative samples respectively; use the loss function to calculate the loss value, and the loss function is divided into category classification loss functions And the position regression loss function, and according to the ranking results of candidate positive samples and candidate negative samples, the weight of the loss value with different importance is assigned, and the weight is biased towards the main sample by using the main sample attention mechanism. The present invention emphasizes the importance of main samples in the model training process and suppresses the influence of unimportant samples on model learning, thereby improving the performance of the model and having good practicability.

Description

technical field [0001] The invention belongs to the technical field of face detection, and in particular relates to a face detection method with a main sample attention mechanism. Background technique [0002] Face detection technology is one of the important researches in the field of target detection, and it is the basis for applications such as face verification, expression recognition, age recognition, and intelligent monitoring. The face detection technology is divided into a single-stage algorithm and a two-stage algorithm. The main idea of ​​the former is to pre-set a fixed-size anchor frame to generate a candidate area, and then classify the candidate area and return the position. Similar to the sliding window mechanism, the model training is more stable. The positioning accuracy is higher, and the representative algorithms include R-CNN and Faster R-CNN, while the latter removes the calculation of the candidate area, and directly returns the position of the target o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06K9/00G06K9/62G06N3/04
CPCG06V40/161G06V40/172G06N3/045G06F18/23213G06F18/214
Inventor 闫超黄俊洁韩强
Owner 成都东方天呈智能科技有限公司