Face recognition method and apparatus, electronic device, and storage medium
AssigneeShenzhen Sensetime Technology Co., Ltd.
InventorsZhenghao Chen, Jing Xu, Rui Zhao
Life of this patent
Estimating the term…
Abstract
A face recognition method and apparatus, and a storage medium are provided. The method includes: performing attribute feature extraction on an image to be processed including a target object to obtain N attribute features of the target object, N being an integer greater than 1; performing attention feature extraction on the image to be processed based on an attention mechanism to obtain N attention features of the target object; clustering the N attention features to obtain M clustered attention features, M being a positive integer and M<N; and determining the face recognition result of the target object according to the N attribute features and the M clustered attention features.
Claims20
A face recognition method, comprising:
- performing attribute feature extraction on an image to be processed comprising a target object to obtain N attribute features of the target object, N being an integer greater than 1;
- performing attention feature extraction on the image to be processed based on an attention mechanism to obtain N attention features of the target object, wherein the attention features are features that are specified to be required to be extracted from the image to be processed, and the attention features are one or more of the attribute features;
- clustering the N attention features to obtain M clustered attention features, M being a positive integer and M<N;
- and
- determining a face recognition result of the target object according to the N attribute features and the M clustered attention features.
An electronic device, comprising:
- a processor;
- and
- a memory, configured to store processor-executable instructions;
- wherein the processor is configured to:
- perform attribute feature extraction on an image to be processed comprising a target object to obtain N attribute features of the target object, N being an integer greater than 1;
- perform attention feature extraction on the image to be processed based on an attention mechanism to obtain N attention features of the target object, wherein the attention features are features that are specified to be required to be extracted from the image to be processed, and the attention features are one or more of the attribute features;
- cluster the N attention features to obtain M clustered attention features, M being a positive integer and M<N;
- and
- determine a face recognition result of the target object according to the N attribute features and the M clustered attention features.
A non-transitory computer-readable storage medium, having computer program instructions stored thereon, wherein the computer program instructions, when being executed by a processor, enable the processor to implement a face recognition method, the face recognition method comprising:
- performing attribute feature extraction on an image to be processed comprising a target object to obtain N attribute features of the target object, N being an integer greater than 1;
- performing attention feature extraction on the image to be processed based on an attention mechanism to obtain N attention features of the target object, wherein the attention features are features that are specified to be required to be extracted from the image to be processed, and the attention features are one or more of the attribute features;
- clustering the N attention features to obtain M clustered attention features, M being a positive integer and M<N;
- and
- determining a face recognition result of the target object according to the N attribute features and the M clustered attention features.
Dependencies are inferred from the claim text.