Weak supervision character search method and device based on multi-granularity graph convolution and medium

By adopting a weakly supervised method of multi-granularity graph convolution in person search, and using unsupervised training and multi-granularity alignment to update network parameters, the problem of high annotation requirements in the existing technology is solved, the processing efficiency and search effect are improved, and the Efficient person search in different scenarios.

CN118537890AActive Publication Date: 2024-08-23XIDIAN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410535381.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23
Estimated Expiration
2044-04-30

AI Technical Summary

Technical Problem

Existing person search methods require a lot of manpower and material resources for bounding box and identity annotation, and the processing efficiency is low, especially when annotating a large number of different identities in different scenarios.

Method used

A weakly supervised person search method based on multi-granularity graph convolution is used to conduct unsupervised training through a pre-trained search network. The instance task branch and the search task branch are used for network training at the same time, and the network parameters are updated based on the multi-granularity alignment results to avoid Annotation requirements for bounding boxes and identities improve processing efficiency and search results.

Benefits of technology

It improves the processing efficiency of person search, reduces the need for bounding boxes and identity annotations, enhances the search effect, and achieves efficient person search in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537890A
    Figure CN118537890A
Patent Text Reader

Abstract

The invention provides a weak supervision character search method and device based on multi-granularity graph convolution and a medium. The method comprises the steps of obtaining a to-be-recognized scene image and a query character; inputting the query character into a pre-trained search network to obtain query features; inputting the to-be-recognized scene image into a pre-training search network, performing character search on the to-be-recognized scene image according to the query features, and obtaining corresponding character position information in the to-be-recognized scene image according to a character search result; the pre-training search network is obtained by performing unsupervised training based on the instance task branch and the search task branch; the network parameters of the pre-training search network are iteratively updated based on the multi-granularity alignment result of the first feature and the second feature; the first feature is obtained based on the instance task branch, and the second feature is obtained based on the search task branch. According to the method and the device, the network is trained through the instance task branch and the search task branch at the same time, so that the search efficiency and effect of the pre-trained search network are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of artificial intelligence and scene image processing, and in particular relates to a weakly supervised person search method, device and medium based on multi-granularity graph convolution. Background Art

[0002] Person search aims to locate a given query person in an unconstrained scene image library, which is a joint task of person detection and person re-identification. It makes the traditional person re-identification problem more practical and efficient in real-world applications such as video surveillance, retail analytics, smart cities, etc. However, person search is more challenging due to the undefined original detection, huge scale and camera view changes. Most existing person search methods adopt a fully supervised setting, called supervised person search (SPS). Although the above SPS method can achieve high search performance, the method requires annotation of bounding boxes and identities, and annotating all bounding boxes and identities not only consumes a lot of manpower and material resources, but also consumes a lot of time, especially for annotations of a large number of different identities in different scenarios.

[0003] Therefore, the existing person search method has the problem of low processing efficiency. Summary of the invention

[0004] In order to solve the above problems existing in the prior art, the present invention provides a weakly supervised person search method, device and medium based on multi-granularity graph convolution.

[0005] The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0006] In a first aspect, the present invention provides a weakly supervised person search method based on multi-granularity graph convolution, comprising:

[0007] Obtain the scene image to be identified and the query person;

[0008] Inputting the query character into a pre-trained search network to obtain query features;

[0009] The scene image to be identified is input into the pre-trained search network, a person search is performed on the scene image to be identified according to the query feature, and corresponding person position information is obtained in the scene image to be identified according to the result of the person search; the pre-trained search network is obtained by unsupervised training based on an instance task branch and a search task branch; the network parameters of the pre-trained search network are iteratively updated based on the multi-granularity alignment result of the first feature and the second feature; the first feature is obtained based on the instance task branch, and the second feature is obtained based on the search task branch.

[0010] Optionally, the pre-trained search network includes: a pre-trained backbone network, a pre-trained region proposal network RPN and a pre-trained RoI-Align layer;

[0011] The pre-trained backbone network is used to extract features from the scene image to be identified and the query person, respectively, to obtain a feature map to be identified and the query feature;

[0012] The RPN performs sliding window and classification regression processing based on the feature map to be identified to obtain a target detection result;

[0013] The pre-trained RoI-Align layer performs pedestrian re-identification (ReID) processing according to the target detection result and the query feature to obtain the person position information.

[0014] Optionally, the pre-trained RoI-Align layer performs person re-identification (ReID) processing according to the target detection result and the query feature to obtain the person position information, including:

[0015] Obtaining the feature graph to be identified that is closest to the query feature through cosine similarity as a feature identification result;

[0016] The target detection result corresponding to the recognition feature result is used as the person position information.

[0017] Optionally, the training process of the pre-trained search network includes:

[0018] S201, obtaining instance training samples and searching for training samples.

[0019] It should be noted that, in this embodiment, the search training sample is a complete scene image acquired for a specific scene, and the instance training sample is an image after cropping and frame offset enhancement for a person in the search training sample.

[0020] S202, inputting the instance training sample and the search training sample into an initial search network respectively to obtain instance features and search features;

[0021] S203, performing feature alignment processing on the instance feature and the search feature using a first preset loss function, to obtain an instance alignment feature and a search alignment feature respectively;

[0022] S204, using the instance alignment feature and the search alignment feature to form a dense similarity matrix;

[0023] S205, obtaining first neighborhood data of each feature in the dense similarity matrix, and generating a sparse similarity matrix using the first neighborhood data and a sparse graph construction strategy;

[0024] S206, performing feature enhancement processing on the instance alignment feature and the search alignment feature through the sparse similarity matrix to obtain enhanced training features, and performing DBSCAN processing on the enhanced training features based on the Jaccard distance to obtain pseudo labels; the enhanced training features include: enhanced instance features and enhanced search features;

[0025] S207, updating parameters of the initial search network according to the pseudo-label and the back propagation algorithm;

[0026] S208, repeatedly executing S202-S207 until a preset stop condition is reached, and using the initial search network that reaches the preset stop condition as the pre-trained search network.

[0027] Optionally, before executing S203, the weakly supervised person search method based on multi-granularity graph convolution further includes:

[0028] Box drift invariance learning is performed on the instance features and the search features using a box drift invariance loss, and initial parameters of the initial search network are updated based on the result of the box drift invariance learning.

[0029] Optionally, the first preset loss function includes: instance branch loss and search branch loss, and S203 specifically includes:

[0030] Performing feature alignment processing on the instance features using the instance branch loss to obtain instance alignment features;

[0031] The search features are subjected to feature alignment processing using the search branch loss to obtain search alignment features.

[0032] Optionally, the S204 includes:

[0033] Calculating the similarity value between the instance alignment feature and the search alignment feature through cosine similarity correspondence to obtain a similarity feature;

[0034] The similarity features, the instance alignment features and the search alignment features are combined to form the dense similarity matrix according to a preset arrangement rule.

[0035] Optionally, the S205 includes:

[0036] Obtaining neighborhood data of each feature in the dense similarity matrix by using a K-nearest neighbor algorithm to obtain first neighborhood data;

[0037] Performing feature fusion on the first neighborhood data and the dense similarity matrix to obtain a fused similarity matrix;

[0038] The sparse similarity matrix is ​​sparsely processed based on a sparse graph construction strategy to obtain the sparse similarity matrix.

[0039] In a second aspect, the present invention provides a weakly supervised person search device based on multi-granularity graph convolution, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the weakly supervised person search device based on multi-granularity graph convolution is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the method described in the first aspect above.

[0040] In a third aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, executes the steps of the method described in the first aspect.

[0041] The present invention provides a weakly supervised person search method, device and medium based on multi-granularity graph convolution. Among them, a weakly supervised person search method based on multi-granularity graph convolution includes: obtaining a scene image to be identified and a query person; inputting the query person into a pre-trained search network to obtain query features; inputting the scene image to be identified into the pre-trained search network, searching for a person in the scene image to be identified according to the query features, and obtaining corresponding person position information in the scene image to be identified according to the result of the person search; the pre-trained search network is obtained by unsupervised training based on an instance task branch and a search task branch; the network parameters of the pre-trained search network are iteratively updated based on the multi-granularity alignment results of the first feature and the second feature; the first feature is obtained based on the instance task branch, and the second feature is obtained based on the search task branch. In the present invention, by adopting unsupervised learning to train the pre-trained search network, the problem of consuming a lot of manpower and material resources for annotating the bounding box and identity is avoided, and the processing efficiency of the person search is improved; secondly, the network is trained simultaneously through the instance task branch and the search task branch, and the network parameters are updated according to the multi-granularity alignment results of the two task branches, so as to improve the person search effect of the pre-trained search network.

[0042] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of a process flow of a weakly supervised person search method based on multi-granularity graph convolution provided by an embodiment of the present invention;

[0044] Figure 2 A model framework diagram of a weakly supervised person search method based on multi-granularity graph convolution provided by an embodiment of the present invention;

[0045] Figure 3 A schematic diagram of a weakly supervised person search device based on multi-granularity graph convolution provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0047] In order to improve the processing efficiency and search effect of person search, an embodiment of the present invention provides a weakly supervised person search method based on multi-granularity graph convolution. Figure 1 A flowchart of a weakly supervised person search method based on multi-granularity graph convolution provided by an embodiment of the present invention. Figure 1 As shown, including:

[0048] S101, obtaining a scene image to be identified and a query person.

[0049] S102: Input the query character into the pre-trained search network to obtain query features.

[0050] S103, inputting the scene image to be identified into a pre-trained search network, performing a person search on the scene image to be identified according to the query features, and obtaining corresponding person position information in the scene image to be identified according to the result of the person search.

[0051] The pre-trained search network is obtained through unsupervised training based on the instance task branch and the search task branch; the network parameters of the pre-trained search network are iteratively updated based on the multi-granularity alignment results of the first feature and the second feature; the first feature is obtained based on the instance task branch, and the second feature is obtained based on the search task branch.

[0052] The embodiment of the present invention provides a weakly supervised person search method based on multi-granularity graph convolution, including: obtaining a scene image to be identified and a query person; inputting the query person into a pre-trained search network to obtain query features; inputting the scene image to be identified into the pre-trained search network, searching for people in the scene image to be identified according to the query features, and obtaining corresponding person position information in the scene image to be identified according to the results of the person search; the pre-trained search network is obtained by unsupervised training based on an instance task branch and a search task branch; the network parameters of the pre-trained search network are iteratively updated based on the multi-granularity alignment results of the first feature and the second feature; the first feature is obtained based on the instance task branch, and the second feature is obtained based on the search task branch. In the embodiment of the present invention, by adopting unsupervised learning to train the pre-trained search network, the problem of consuming a lot of manpower and material resources for annotating the bounding box and identity is avoided, and the processing efficiency of the person search is improved; secondly, the network is trained simultaneously through the instance task branch and the search task branch, and the network parameters are updated according to the multi-granularity alignment results of the two task branches, so as to improve the search effect of the pre-trained search network.

[0053] Optionally, the pre-trained search network includes: a pre-trained backbone network, a pre-trained region proposal network RPN and a pre-trained RoI-Align layer;

[0054] The pre-trained backbone network is used to extract features from the scene image to be identified and the query person, respectively, and obtains the feature map to be identified and the query feature.

[0055] RPN performs sliding window and classification regression processing based on the feature map to be identified to obtain the target detection result;

[0056] The pre-trained RoI-Align layer performs person re-identification (ReID) processing based on the target detection results and query features to obtain the person's location information.

[0057] Optionally, the pre-trained RoI-Align layer performs person re-identification (ReID) processing based on the target detection results and query features to obtain person location information, including:

[0058] The feature graph to be identified that is closest to the query feature is obtained through cosine similarity as the identification feature result;

[0059] The target detection result corresponding to the recognition feature result is used as the person's position information.

[0060] Optionally, the training process of the pre-trained search network includes:

[0061] S201, obtaining instance training samples and searching for training samples.

[0062] S202: Input the instance training samples and the search training samples into the initial search network respectively to obtain instance features and search features.

[0063] It should be noted that, in order to store features, two memory banks may be maintained in the memory for storing instance features and search features respectively.

[0064] S203: Perform feature alignment processing on the instance feature and the search feature using a first preset loss function to obtain instance alignment features and search alignment features accordingly.

[0065] Optionally, the first preset loss function includes: instance branch loss and search branch loss, and S203 specifically includes:

[0066] Instance features are aligned using instance branch loss to obtain instance alignment features.

[0067] The search branch loss is used to perform feature alignment on the search features to obtain the search alignment features.

[0068] It should be noted that the instance branch loss and search branch loss can be expressed as:

[0069]

[0070]

[0071] L interS represents the search branch loss, L interI represents the instance branch loss, P S represents the number of ground-truth annotation boxes in the search branch, P I represents the number of true annotation boxes in the instance branch, i represents the i-th sample, k represents the k-th pseudo-label, K represents the total number of pseudo-labels, exp(.) represents the logarithmic function, <·,·> represents the cosine similarity calculation, and f i S represents the features obtained by the search branch S for sample i, represents the positive class maintained for the category corresponding to the i-th sample of instance branch I, τ1 represents the temperature hyperparameter, represents the class center of the jth class for all class centers of instance branch I, f i I represents the features obtained by instance branch I for sample i, represents the positive class maintained for the category corresponding to the i-th sample of the search branch S, represents the class center of the kth class for all class centers of the search branch S.

[0072] S204: construct a dense similarity matrix using the instance alignment features and the search alignment features.

[0073] Optionally, S204 includes:

[0074] The similarity value between the instance alignment feature and the search alignment feature is calculated by cosine similarity correspondence to obtain a similarity feature;

[0075] According to the preset arrangement rules, the similarity features, instance alignment features and search alignment features are combined to form a dense similarity matrix.

[0076] It should be noted that, in this embodiment, the preset arrangement may exemplarily include: setting the instance alignment feature at the upper left corner of the matrix, setting the search alignment feature at the lower right corner of the matrix, filling the upper right corner and the lower left corner with similarity features twice respectively, to obtain a dense similarity matrix A.

[0077] However, due to the low efficiency and high computational cost of the dense similarity matrix A, in order to alleviate the problems caused by the dense similarity matrix A, a neighbor-guided sparse graph construction (NGSGC) strategy is introduced in this embodiment. This strategy dynamically searches for neighbors for each example, aiming to create a sparse affinity matrix from a dense matrix. In order to select valuable neighbors, a multi-granularity neighbor consistency hypothesis is introduced, which assumes that reliable neighbors should be close to two granular features in the same person image at the same time.

[0078] The first discriminative power of the sparse similarity matrix is ​​expressed as Second Neighborhood Data Indicates different value to limit the number of neighbors with different Corresponding to different discrimination abilities. represents the reliable neighbors for further information propagation based on the hypothesis, and β represents the relaxation coefficient.

[0079] Furthermore, offline graph convolution can be used to enhance pedestrian representation for pseudo label estimation.

[0080] S205 , obtaining first neighborhood data of each feature in the dense similarity matrix, and generating a sparse similarity matrix using the first neighborhood data and a sparse graph construction strategy.

[0081] Optionally, S205 includes:

[0082] Obtain the neighborhood data of each feature in the dense similarity matrix through the K-nearest neighbor algorithm to obtain the first neighborhood data;

[0083] Perform feature fusion on the first neighborhood data and the dense similarity matrix to obtain a fused similarity matrix;

[0084] Based on the sparse graph construction strategy, the fused similarity matrix is ​​sparsely processed to obtain a sparse similarity matrix.

[0085] S206, performing feature enhancement processing on the instance alignment features and the search alignment features through a sparse similarity matrix to obtain enhanced training features, and performing DBSCAN processing on the enhanced training features based on the Jaccard distance to obtain pseudo labels; the enhanced training features include: enhanced instance features and enhanced search features.

[0086] It should be noted that, in the present embodiment, the second neighborhood data contained in the sparse similarity matrix is ​​specifically used to perform feature enhancement processing on the instance alignment feature and the search alignment feature to obtain the enhanced training feature. The acquisition of the second neighborhood data includes: the fusion similarity matrix itself is represented by a matrix, and each value in the matrix represents the similarity relationship between samples (between features), and the size of the value represents the strength of the relationship, the larger the value, the stronger the relationship, and the smaller the value, the weaker the relationship. When it is 0, it means that there is no relationship between the samples. And sparsely sparse the fusion similarity matrix, in fact, it is to set the similarity relationship between the current sample and the inaccurate sample containing noise to 0 in the matrix, and only retain the similarity relationship value of the reliable sample. Finally, as long as the value in the sparse similarity matrix is ​​not zero, it means that there is a neighborhood relationship between the two samples.

[0087] It can be understood that, in this embodiment, by performing sparse processing on the fused similarity matrix, the cardinality of data processing can be reduced, thereby reducing the resource consumption of hardware.

[0088] S207: Update the parameters of the initial search network according to the pseudo-labels and the back propagation algorithm.

[0089] S208, repeatedly executing S202-S207 until a preset stop condition is reached, and using the initial search network that reaches the preset stop condition as a pre-trained search network.

[0090] Optionally, before executing S203, a weakly supervised person search method based on multi-granularity graph convolution further includes:

[0091] The box drift invariance loss is used to learn the box drift invariance of instance features and search features, and the initial parameters of the initial search network are updated based on the results of the box drift invariance learning.

[0092] It should be noted that the box drift invariance loss can be expressed as:

[0093]

[0094] L box represents the box drift invariance loss, P Srepresents the number of true annotation boxes in the search branch, i represents the i-th sample, and f represents the value corresponding to min or max. represents the positive examples with the same pseudo label as the i-th sample image, represents the negative examples with the same pseudo label as the i-th sample image, f i S represents the features obtained by the search branch S for sample i, f Io represents the instance feature corresponding to the i-th sample, f i S represents the features obtained by the search branch S for sample i, d(f i S ,f Io ) represents the calculation of f i S and f Io The cosine similarity between i S ,f) indicates the calculation of f i S The cosine similarity between and f, δ represents the boundary parameter, [·] + represents the Euclidean distance.

[0095] It should be noted that by setting the box drift invariance loss to perform box drift invariance learning on instance features and search features, the problems of low-quality suggestions and insufficient fine-grained information in search features can be solved, making the model parameters of the final pre-trained search network more accurate.

[0096] in addition, Figure 2 A model framework diagram of a weakly supervised person search method based on multi-granularity graph convolution provided by an embodiment of the present invention. Figure 2 It can be seen that the implementation of the method of the present invention is based on two modules, a pseudo-label estimation module based on a multi-granularity graph and a multi-granularity alignment module. In the multi-granularity alignment module, the network parameters are trained based on the instance branch and the search branch (the instance branch and the search branch act on one network together). In the pseudo-label estimation module, the features generated by the multi-granularity alignment module are processed, and pseudo-labels are estimated based on the features, and finally the parameters of the search model are updated based on the pseudo-label back propagation.

[0097] In order to illustrate the effectiveness of the method of the present invention, simulation verification is also carried out.

[0098] The dataset uses CUHK-SYSU, which is a large public dataset for person search, consisting of 12,490 street images taken by cameras and 5,694 movie snapshots. It contains a total of 18,184 images, 8,432 annotated identities, and 96,143 annotated bounding boxes. The training set has 11,206 images and 5,532 unique identities, while the test set consists of 6,978 images and 2,900 query persons. In the test set, there is a set of evaluation protocols for different query persons, with gallery sizes ranging from 50 to 4,000. The gallery size is set to 100 by default.

[0099] The PRW dataset is recorded by six separate cameras placed around the university. It consists of 11,816 images, 932 annotated identities, and 43,110 annotated bounding boxes. The training set has 5,704 images, 18,048 pedestrian bounding boxes, and 482 unique individual identities. The test set consists of 6,112 images, 25,062 pedestrian bounding boxes, and 450 individual identities.

[0100] Evaluation criteria: According to the widely used evaluation settings in PS (Person search), the present invention uses cumulative matching features (CMC) and mean average precision (mAP) to evaluate the performance of the method of the present invention.

[0101] The methods compared in the experiment are as follows:

[0102]

[0103]

[0104] It can be seen from the above table that after the method of the present invention is used on the two data sets, both mAP and Top-1 reach a relatively high level, proving the effectiveness of the method of the present invention.

[0105] The method provided in the embodiment of the present invention can be applied to electronic devices. Specifically, the electronic device can be: a desktop computer, a portable computer, an intelligent mobile terminal, a server, etc. This is not limited here, and any electronic device that can implement the present invention belongs to the protection scope of the present invention.

[0106] Based on the same inventive concept, an embodiment of the present invention also provides a weakly supervised person search device based on multi-granularity graph convolution. Figure 3A schematic diagram of a weakly supervised person search device based on multi-granularity graph convolution provided in an embodiment of the present invention includes: a processor 310, a storage medium 320 and a bus 330, wherein the storage medium 320 stores machine-readable instructions executable by the processor 310, and when the weakly supervised person search device based on multi-granularity graph convolution is running, the processor 310 communicates with the storage medium 320 via the bus 330, and the processor 310 executes the machine-readable instructions to execute the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0107] The storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the storage medium may also be at least one storage device located away from the aforementioned processor.

[0108] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0109] The present invention also provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any of the above-mentioned weakly supervised person search methods based on multi-granularity graph convolution are implemented.

[0110] It should be noted that the terms "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure.

[0111] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification.

[0112] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art can understand and implement other changes to the disclosed embodiments by viewing the drawings and the disclosed content. In the description of the present invention, the term "comprising" does not exclude other components or steps, "one" or "an" does not exclude multiple situations, and "multiple" means two or more, unless otherwise clearly and specifically limited. In addition, certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good results.

[0113] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A weakly supervised person search method based on multi-granularity graph convolution, characterized in that: include: Obtain the scene image to be identified and the query person; Inputting the query character into a pre-trained search network to obtain query features; Inputting the scene image to be identified into the pre-trained search network, performing a person search on the scene image to be identified according to the query feature, and obtaining corresponding person position information in the scene image to be identified according to the result of the person search; the pre-trained search network is obtained by unsupervised training based on the instance task branch and the search task branch; The network parameters of the pre-trained search network are iteratively updated based on the multi-granularity alignment results of the first feature and the second feature; the first feature is obtained based on the instance task branch, and the second feature is obtained based on the search task branch.

2. According to claim 1, a weakly supervised person search method based on multi-granularity graph convolution is characterized in that: The pre-trained search network includes: a pre-trained backbone network, a pre-trained region proposal network RPN and a pre-trained RoI-Align layer; The pre-trained backbone network is used to extract features from the scene image to be identified and the query person, respectively, to obtain a feature map to be identified and the query feature; The RPN performs sliding window and classification regression processing based on the feature map to be identified to obtain a target detection result; The pre-trained RoI-Align layer performs pedestrian re-identification (ReID) processing according to the target detection result and the query feature to obtain the person position information.

3. According to claim 2, a weakly supervised person search method based on multi-granularity graph convolution is characterized in that: The pre-trained RoI-Align layer performs pedestrian re-identification ReID processing according to the target detection result and the query feature to obtain the person position information, including: Obtaining the feature graph to be identified that is closest to the query feature through cosine similarity as a feature identification result; The target detection result corresponding to the recognition feature result is used as the person position information.

4. According to claim 1, a weakly supervised person search method based on multi-granularity graph convolution is characterized in that: The training process of the pre-trained search network includes: S201, obtaining instance training samples and searching for training samples; S202, inputting the instance training sample and the search training sample into an initial search network respectively to obtain instance features and search features; S203, performing feature alignment processing on the instance feature and the search feature using a first preset loss function, to obtain an instance alignment feature and a search alignment feature respectively; S204, using the instance alignment feature and the search alignment feature to form a dense similarity matrix; S205, obtaining first neighborhood data of each feature in the dense similarity matrix, and generating a sparse similarity matrix using the first neighborhood data and a sparse graph construction strategy; S206, performing feature enhancement processing on the instance alignment feature and the search alignment feature through the sparse similarity matrix to obtain enhanced training features, and performing DBSCAN processing on the enhanced training features based on the Jaccard distance to obtain pseudo labels; the enhanced training features include: enhanced instance features and enhanced search features; S207, updating parameters of the initial search network according to the pseudo-label and the back propagation algorithm; S208, repeatedly executing S202-S207 until a preset stop condition is reached, and using the initial search network that reaches the preset stop condition as the pre-trained search network.

5. According to claim 4, a weakly supervised person search method based on multi-granularity graph convolution is characterized in that: Before executing S203, the weakly supervised person search method based on multi-granularity graph convolution further includes: Box drift invariance learning is performed on the instance features and the search features using a box drift invariance loss, and initial parameters of the initial search network are updated based on the result of the box drift invariance learning.

6. According to claim 4, a weakly supervised person search method based on multi-granularity graph convolution is characterized in that: The first preset loss function includes: instance branch loss and search branch loss, and S203 specifically includes: Performing feature alignment processing on the instance features using the instance branch loss to obtain instance alignment features; The search features are subjected to feature alignment processing using the search branch loss to obtain search alignment features.

7. The weakly supervised person search method based on multi-granularity graph convolution according to claim 4 is characterized in that: The S204 includes: Calculating the similarity value between the instance alignment feature and the search alignment feature through cosine similarity correspondence to obtain a similarity feature; The similarity features, the instance alignment features and the search alignment features are combined to form the dense similarity matrix according to a preset arrangement rule.

8. According to claim 4, a weakly supervised person search method based on multi-granularity graph convolution is characterized in that: The S205 includes: Obtaining neighborhood data of each feature in the dense similarity matrix by using a K-nearest neighbor algorithm to obtain first neighborhood data; Performing feature fusion on the first neighborhood data and the dense similarity matrix to obtain a fused similarity matrix; The sparse similarity matrix is ​​sparsely processed based on a sparse graph construction strategy to obtain the sparse similarity matrix.

9. A weakly supervised person search device based on multi-granularity graph convolution, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the weakly supervised person search device based on multi-granularity graph convolution is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the method as described in any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are executed.

Citation Information

Patent Citations

  • Weak supervision target detection method based on graph convolutional neural network

    CN111612051A

  • Target search method and device based on weak supervision scene

    CN113743251A

  • Person search method based on person re-identification driven localization refinement

    US20210365743A1