Cross-view pedestrian re-identification method based on visual language prompt learning

By employing a two-stage training strategy based on visual language cues and a perspective semantic cue template, the problem of declining pedestrian recognition performance under heterogeneous perspectives in the air and ground was solved, thereby improving the accuracy and robustness of cross-perspective recognition.

CN120976969AActive Publication Date: 2025-11-18BEIJING INFORMATION SCI & TECH UNIV

Patent Information

Application Number
CN202511046002.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-29
Publication Date
2025-11-18
Estimated Expiration
2045-07-29

AI Technical Summary

Technical Problem

In heterogeneous perspective scenarios between air and ground, existing models struggle to effectively address the decline in pedestrian recognition performance caused by perspective differences, and lack the ability to model perspective-induced semantic biases. In particular, when aerial images have a wide field of view but low resolution, and ground images have clear textures but limited field of view, cross-perspective recognition performance is poor.

Method used

We adopt a visual language cue learning approach, which introduces air-ground similarity consistency loss through a two-stage training strategy and perspective semantic cue templates. This approach constructs fine-grained alignment relationships between image and text modalities, explicitly models perspective bias, and improves cross-perspective recognition accuracy.

Benefits of technology

It significantly improves the accuracy and robustness of cross-view pedestrian recognition, adapts to differences in air and ground modalities, and achieves more stable identity discrimination and view invariance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120976969A_ABST
    Figure CN120976969A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision and cross-visual-angle pedestrian recognition, in particular to a cross-visual-angle pedestrian re-recognition method based on visual language prompt learning, and the method comprises the steps: obtaining a target image; the target image is input into a preset pedestrian recognition model, a pedestrian re-recognition result is output, the pedestrian recognition model is obtained by training a visual language pre-training model CLIP through a prompt learning mechanism and a two-stage training strategy, the prompt learning mechanism is used for modeling visual angle deviation, and the two-stage training strategy is used for training visual angle deviation. The double-stage training strategy is used for realizing cross-modal semantic alignment. According to the invention, the accuracy and robustness of cross-view identification can be significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer vision and cross-view pedestrian recognition, and particularly relates to a cross-view pedestrian re-identification method based on visual language prompt learning. BACKGROUND

[0002] Since the 21st century, deep learning, computer vision and multi-modal representation learning technology have made breakthrough progress, which has promoted the wide application of intelligent perception systems in public security, smart city and unmanned systems. As a core task in visual perception, pedestrian re-identification aims to identify the same individual across camera views, and plays an important role in cross-camera tracking, behavior analysis and security systems.

[0003] Although the traditional pedestrian re-identification task has achieved remarkable results under ground-to-ground and sky-to-sky view conditions. However, in the air-ground heterogeneous view scene, due to the huge difference in view, resolution and background, the model is difficult to generalize, and the recognition performance is greatly reduced. This task needs to accurately match the same pedestrian between the air view and the ground view, and faces the following key challenges:

[0004] Firstly, the air-ground view difference causes the pedestrian to be seriously inconsistent in appearance, pose and structural expression, limiting the effectiveness of traditional texture or local feature comparison strategies. Secondly, the air image has a wide field of view but low resolution, while the ground image has clear texture but limited field of view, and the data distribution difference between the two further exacerbates the modal shift. Thirdly, although existing CNN[9] or ViT

[10] based models can extract image features, they lack the ability to explicitly model the view-induced semantic bias.

[0005] To address the above problems, existing methods such as VDT use feature subtraction strategies to strip the view component, achieving certain results. However, this strategy may lead to a decrease in identity representation ability, and fails to achieve fine structure alignment within and across modalities. In recent years, visual-linguistic pre-training models have emerged, which exhibit excellent cross-modal semantic alignment capabilities. However, their original prompt design is mainly used for classification tasks, lacking the ability to model structural differences and view biases. Therefore, a new cross-view recognition method is needed to integrate visual-linguistic modeling capabilities, introduce a learnable view prompt mechanism, adapt to air-ground modal differences, and improve cross-view semantic consistency and identity discrimination ability. SUMMARY

[0006] The present application aims to provide a cross-view pedestrian re-identification method based on visual language prompt learning, which designs a prompt template containing view semantics and a view-free general template based on a visual-linguistic pre-training model, adopts a two-stage training strategy, introduces an air-ground similarity consistency loss, and constructs a fine-grained alignment relationship between image and text modalities, significantly improving the accuracy and robustness of cross-view recognition.

[0007] To achieve the above objectives, the present invention provides the following solution:

[0008] A cross-view pedestrian re-identification method based on visual language cue learning includes:

[0009] Acquire the target image;

[0010] The target image is input into a preset pedestrian recognition model, and the pedestrian re-recognition result is output. The pedestrian recognition model is obtained by training a visual language pre-trained model CLIP using a cue learning mechanism and a two-stage training strategy. The cue learning mechanism is used to model viewpoint bias, and the two-stage training strategy is used to achieve cross-modal semantic alignment.

[0011] Optionally, the cue learning mechanism models perspective biases including:

[0012] In the first training phase, a viewpoint-aware text template is used, which includes semantic information about character categories or identities and injected viewpoint information to guide the model to perceive the structural offset between the viewpoints of the ground.

[0013] In the second training phase, a view-aware text template is used, which contains identity semantic information to guide the model to learn a view-aware identity consistency representation.

[0014] Optionally, the first training phase models the differences in structure, attitude, and scale between aerial and ground-view images, guiding image features to align with corresponding semantic prompts in the embedding space, thereby achieving structural correspondence between modalities.

[0015] Optionally, the first training phase employs a first loss function, which includes image-text contrast loss, text-image contrast loss, and air-ground similarity consistency loss.

[0016] Optionally, the first loss function is:

[0017]

[0018]

[0019]

[0020]

[0021]

[0022]

[0023] Among them, L stage1L represents the total loss in the first training phase. AGSCL The loss is for the consistency of the similarity between the ground and the virtual space, where N represents the total number of pedestrian identities in the dataset, and <·,·> represent the inner product operation. Let the aerial image features and ground image features of the j-th sample be represented respectively. Let the aerial text features and ground text features of the j-th sample be represented respectively. Let the aerial image features and ground image features of the k-th sample be represented respectively. Let these represent the aerial text features and ground text features of the k-th sample, respectively. represents the image-text contrast loss under the sky view and the ground view, respectively; F(·) represents the image coding function. This represents the text encoding function. and Let represent the image input samples from the i-th aerial viewpoint and the ground viewpoint, respectively. and Let j be the input of the j-th image sample at the corresponding viewpoint. and This represents the prompt text input for the i-th sample from an open-air perspective. Input the prompt text for the j-th sample; log(·) represents the natural logarithm function, exp(·) represents the exponential function; parameter B represents the number of samples in the current training batch. P(y) represents the text image contrast loss from the sky view and the ground view, respectively; i ) indicates the relationship with category y i The set of matching image sample indices, |P(y i | indicates the number of samples in the set; These represent the inputs of the p-th image sample in the set from aerial and ground perspectives, respectively. and This represents the prompt text input for the p-th sample from an open-air perspective.

[0024] Optionally, the second training phase, based on the viewpoint bias modeling completed in the first training phase, further enhances the image encoder's ability to distinguish identities and improves its robustness to changes in air and ground viewpoints, ultimately learning a stable identity representation vector with viewpoint invariance.

[0025] Optionally, the second training phase employs a second loss function, which includes classification loss, triplet loss, and cross-modal alignment loss.

[0026] Optionally, the second loss function is:

[0027]

[0028]

[0029] L tri =max(d p -d n +α,0);

[0030]

[0031]

[0032] Among them, L stage2 L represents the total loss in the second training phase. id Let q represent the classification loss. k p represents the probability that category k is the true category y. k L represents the probability that a sample is predicted to be of class k. tri Denotes the triplet loss, d p d represents the features of positive samples. n The features representing negative samples, where α is the boundary value. represent the cross-modal alignment loss under the sky view and the ground view, respectively, and F(·) represents the image coding function. This represents the text encoding function. and Let represent the image input samples from the i-th aerial viewpoint and the ground viewpoint, respectively. and For category y j The corresponding representative image samples are input from the corresponding viewpoint. This represents the text input features of the i-th sample under the condition of no viewpoint cue template. Represents category y j The corresponding text input features are log(·) representing the natural logarithm function and exp(·) representing the exponential function.

[0033] The beneficial effects of this invention are as follows:

[0034] This invention proposes a cross-view pedestrian re-identification method based on visual language cue learning, applicable to individual identity matching tasks in scenarios involving drones and ground cameras. Addressing issues such as appearance changes, scale inconsistencies, and background interference caused by differences in aerial and ground perspectives, it introduces a cue word mechanism to model perspective bias and designs a two-stage training strategy to achieve cross-modal semantic alignment. In the first stage, cue text containing perspective semantics guides image-text pairing learning, enabling image features to possess clear perspective structural information. To further improve alignment, an aerial-ground similarity consistency loss function is constructed to constrain the structural similarity between image and text features at a fine-grained level, achieving stable cross-modal alignment. In the second stage, a cue-free approach is used to eliminate perspective-specific information, optimizing the identity representation learned by the image encoder and achieving more discriminative and perspective-invariant recognition results. This invention constructs fine-grained alignment relationships between image and text modalities, significantly improving the accuracy and robustness of cross-view recognition. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 This is a flowchart of a cross-view pedestrian re-identification method based on visual language cue learning according to an embodiment of the present invention;

[0037] Figure 2 This is a schematic diagram illustrating the mechanism of the air-ground similarity consistency loss function in the two-stage training process according to an embodiment of the present invention.

[0038] Figure 3 This is a schematic diagram of the two-stage training strategy process according to an embodiment of the present invention;

[0039] Figure 4 The graph shows the baseline method and the test results of this method on the CARGO test set in this embodiment of the invention.

[0040] Figure 5 This is a comparison of the attention heatmap results of the baseline method and the method described in this embodiment of the invention on the AG-ReID dataset. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0043] This embodiment provides a cross-view pedestrian re-identification method based on visual language cue learning, including:

[0044] Acquire the target image;

[0045] The target image is input into a preset pedestrian recognition model, and the pedestrian re-recognition result is output. The pedestrian recognition model is obtained by training a visual language pre-trained model CLIP using a cue learning mechanism and a two-stage training strategy. The cue learning mechanism is used to model viewpoint bias, and the two-stage training strategy is used to achieve cross-modal semantic alignment.

[0046] Specifically, this embodiment proposes a novel cue learning mechanism and a two-stage training framework based on the visual language pre-trained model CLIP. It combines learnable cue templates, a spatial-ground similarity consistency loss function, and a semantic separation training strategy to achieve fine-grained consistency alignment between image and text modalities. The overall structure is as follows: Figure 1 As shown, the model consists of an image encoder, a text encoder, a cueing module, and a cross-modal alignment module, and learns view perception and view suppression features step by step through two stages.

[0047] Furthermore, the perspective bias in the modeling of the cue learning mechanism includes:

[0048] In the first training phase, a viewpoint-aware text template is used, which includes semantic information about character categories or identities and injected viewpoint information to guide the model to perceive the structural offset between the viewpoints of the ground.

[0049] In the second training phase, a view-aware text template is used, which contains identity semantic information to guide the model to learn a view-aware identity consistency representation.

[0050] Specifically, perspective modeling mechanisms based on cue-based learning include:

[0051] This embodiment constructs viewpoint-aware, learnable cue templates to guide image features to adaptively align semantic differences between empty spaces and ground. Two types of text cue templates are constructed during the training phase:

[0052] Perspective-aware text template: The structure is "a [Y1]...[Y]". m [X1][X2]...[X] perspective n The text prompt "[X1][X2]...[X]" indicates a photo of a person. n [] is used to indicate a person's category or identity semantics, [Y1]...[Y m The [] template is used to inject viewpoint information. This type of template explicitly contains viewpoint-related vocabulary to guide the model to perceive structural offsets between air and ground viewpoints in the early stages of training.

[0053] No-viewpoint text template: Uses the structure "a [X1][X2]...[X]" n The text prompt for "a person's photo" contains only identity semantic information and no viewpoint description words. It aims to extract viewpoint features and guide the model to learn identity consistency representations that are independent of viewpoint. It is suitable for the later stage of model training and can effectively guide image features to explicitly model viewpoint bias. In this way, the viewpoint information that is originally implicit in the image representation is clearly expressed and aligned in the semantic space through text prompts.

[0054] Furthermore, in the first training phase, the differences in structure, attitude, and scale between aerial and ground-view images are modeled, guiding image features to align with corresponding semantic prompts in the embedding space, thereby achieving structural correspondence between modalities.

[0055] The first training phase employs a first loss function, which includes image-text contrast loss, text-image contrast loss, and air-ground similarity consistency loss.

[0056] Furthermore, based on the viewpoint bias modeling completed in the first training phase, the second training phase further enhances the image encoder's ability to distinguish identities and improves its robustness to changes in aerial and ground viewpoints, ultimately learning a stable identity representation vector with viewpoint invariance.

[0057] The second training phase employs a second loss function, which includes classification loss, triplet loss, and cross-modal alignment loss.

[0058] Specifically, Figure 2 This demonstrates the role of the Air-to-Ground Similarity Consistency (AGSC) loss function in the two-stage training process, divided into left and right sub-modules corresponding to the two training stages respectively. The Air-to-Ground Similarity Consistency (AGSC) loss function is as follows:

[0059]

[0060] Where N represents the total number of pedestrian identities in the dataset, and <·,·> denote the inner product operation, which measures the similarity between two features. Let the aerial image features and ground image features of the j-th sample be represented respectively. Let the aerial text features and ground text features of the j-th sample be represented respectively. Let the aerial image features and ground image features of the k-th sample be represented respectively. Let represent the aerial text features and ground text features of the k-th sample, respectively.

[0061] In Phase One ( Figure 2 On the left), the image encoder and text encoder extract image and text features from different perspectives and project them into the same semantic space. By applying the air-ground similarity consistency (AGSCloss), the consistency between the intramodal structure and the cross-modal similarity matrix is ​​constrained.

[0062] In Phase Two ( Figure 2 (On the right), the model uses text cues that do not contain viewpoint information (i.e., unbiased cues) T. N This guides image features to converge towards a unified identity space. During this stage, the text encoder weights are frozen, and only the image encoder is optimized to improve its viewpoint invariance and discriminative ability.

[0063] To improve training stability and feature generalization ability, a two-stage optimization strategy is proposed to gradually realize the identity representation transfer from "perceiving perspective differences" to "suppressing perspective differences." The process is as follows: Figure 3 As shown:

[0064] Phase 1: Bias Transfer

[0065] The primary objective of this stage is to explicitly model the differences between aerial and ground-based viewpoints in terms of structure, pose, and scale. This guides image features to align with corresponding semantic cues in the embedding space, achieving structural correspondence between modalities. The system receives pedestrian image samples from aerial and ground-based cameras and constructs two types of text cues templates (viewpoint-aware templates and viewpoint-free templates) for each pair. Each image-text pair is input into the image encoder and text encoder, respectively, to extract the corresponding image and text feature vectors. These vectors are then projected into a shared semantic space, allowing the image features to be supervised and guided by viewpoint semantics, thereby injecting distinguishable viewpoint structural bias information.

[0066] By introducing image-text alignment loss, intramodal consistency loss, and air-to-ground similarity consistency (AGSC) loss, this stage performs structural adjustment on image features at the semantic level, enabling aerial and ground images to establish fine-grained correspondences under a unified semantic framework. AGSC loss is used to enhance fine-grained alignment between images and text, preventing the model from relying solely on coarse-grained features and ignoring deep structural differences.

[0067] After this training phase, the image encoder possesses a certain viewpoint discrimination capability, capable of characterizing the shift trends between different viewpoints in the semantic space, thus laying the foundation for viewpoint suppression and identity abstraction modeling in the next phase. The loss function designed in this phase consists of three main parts: image-text (i2t) contrast loss, text-image (t2i) contrast loss, and spatial-ground similarity consistency (AGSC) loss.

[0068]

[0069]

[0070] The image-text contrast loss is shown in the formula above, where represents the image-text contrast loss under the sky view and the ground view, respectively; F(·) represents the image encoding function, which is used to encode the input image sample into a visual feature vector; This represents a text encoding function used to encode viewpoint cues into corresponding language feature vectors. and Let represent the image input samples from the i-th aerial viewpoint and the ground viewpoint, respectively. and Let j be the input of the j-th image sample at the corresponding viewpoint. and This represents the prompt text input for the i-th sample from an open-air perspective. Input the prompt text for the j-th sample; log(·) represents the natural logarithm function, exp(·) represents the exponential function; the symbols <·,·> represent the inner product similarity function between image and text features; parameter B represents the number of samples in the current training batch.

[0071]

[0072]

[0073] The text-image contrast loss is shown in the formula above, where P(y) represents the text image contrast loss from the sky view and the ground view, respectively; i ) indicates the relationship with category y i The set of matching image sample indices, |P(y i| indicates the number of samples in the set; and Let j be the input of the j-th image sample at the corresponding viewpoint. and This represents the prompt text input for the i-th sample from an open-air perspective. Input the prompt text for the j-th sample; These represent the inputs of the p-th image sample in the set from aerial and ground perspectives, respectively. and Let p represent the prompt text input for the p-th sample from an empty field of view. Then the total loss function for this stage can be expressed as:

[0074]

[0075] Phase Two: Unbiased Guidance

[0076] Phase Two, building upon the completed viewpoint bias modeling, further enhances the image encoder's ability to discriminate identities and improves its robustness to changes in aerial and ground viewpoints, ultimately learning a stable identity representation vector with viewpoint invariance. This phase employs a freezing strategy, fixing the text encoder parameters and cue template parameters, and ceasing updates to the language modality. This frees the image encoder training process from direct interference from viewpoint semantic cues, allowing it to focus on learning the identity information itself. In this phase, the model input remains image samples from aerial and ground viewpoints, but the corresponding text cue is changed to a unified "viewpoint-free template" ("a [X1][X2]...[X...]"). n [Photos of people] do not contain perspective descriptions and only provide neutral identity category semantics.

[0077] During training, the image encoder needs to independently extract image features and learn the ability to discriminate identity features without semantic difference cues, in order to improve its adaptability to viewpoint changes. To enhance this viewpoint-independent representation ability, the following loss functions are introduced for joint optimization in this stage: classification (id) loss, triplet (tri) loss, and cross-modal alignment loss.

[0078]

[0079] The classification (id) loss is shown in the formula above, where q k =(1-∈)δ k,y +∈ / N,q k p represents the probability that category k is the true category y. k This represents the probability that a sample is predicted to be of class k.

[0080] L tri =max(dp -d n +α,0);

[0081] The triplet (tri) loss is shown in the formula above, d p d represents the features of positive samples. n The features representing negative samples are α, which is the boundary value.

[0082]

[0083]

[0084] The cross-modal alignment loss is shown in the formula above. These represent the cross-modal alignment loss from the sky view and the ground view, respectively. and For category y j The corresponding representative image samples are input from the corresponding viewpoint, where Let represent the text input features of the i-th sample under the condition of "no viewpoint cue template". Represents category y j The corresponding text input features are both used to construct cross-modal alignment in the neutral semantic space. Finally, the total loss function for this stage is expressed as follows:

[0085]

[0086] Experimental verification:

[0087] The proposed model was trained on Nvidia GPUs using the PyTorch framework. During training, the model used a CLIP network with a ViT-B / 16 backbone as the joint feature encoder for images and text. Initially, all input images were uniformly adjusted to a resolution of 256×128. The first training phase used the Adam optimizer with a cosine annealing strategy to dynamically adjust the learning rate, initially set at 1e-4 and eventually decaying to 2e-6. To further validate the effectiveness of the proposed model, a quantitative comparison was performed with state-of-the-art (SOTA) methods for cross-view pedestrian re-identification. The results are shown in Tables 1 and 2. The tables list two commonly used metrics: Rank-1 accuracy and average accuracy (mAP) across different datasets. Rank-1 represents the Top-1 hit rate of the test image, used to measure recognition accuracy; mAP represents the average retrieval accuracy of all matching samples, comprehensively reflecting the model's overall discriminative ability and ranking performance. In addition, ALL, AA, GG and AG in the table represent different matching types. ALL represents the overall average performance under all view combinations; AA represents the matching performance between aerial view images; GG represents the matching performance between ground view images; and AG represents the cross-view matching performance between air and ground.

[0088] Table 1 compares the network with the current state-of-the-art (SOTA) method for cross-view pedestrian re-identification on the CARGO dataset, and Table 2 compares the network with the current state-of-the-art (SOTA) method for cross-view pedestrian re-identification on the AG-ReID dataset.

[0089] Table 1

[0090]

[0091]

[0092] Table 2

[0093]

[0094] As shown in Tables 1 and 2, through comparative experiments, this model demonstrates superior performance in the field of cross-view pedestrian re-identification. In the two key recognition metrics, Rank-1 and mAP, this method significantly surpasses current mainstream methods, fully demonstrating its technical advantages in identity feature modeling and cross-view matching alignment. To more intuitively demonstrate the recognition effect and representation capability of the model from the perspectives of feature space structure and model attention mechanism, further visualization evaluation analysis is introduced, such as... Figure 4 and Figure 5 As shown.

[0095] Figure 4The distribution of image features extracted by the baseline method and our proposed method (MVP) on the CARGO test set is shown, visualized using t-SNE dimensionality reduction. It can be observed that under the baseline model, features of the same identity still show significant shifts under different viewpoints, and there is overlap in the feature distribution between classes; while our proposed method achieves more compact intra-class aggregation and more explicit inter-class separation in the feature space, demonstrating stronger discriminative ability and cross-viewpoint alignment capability.

[0096] Figure 5 This section compares the attention heatmap results of the baseline method and our proposed method (MVP) on the AG-ReID dataset. Each image set includes the original input, the attention map generated by the baseline method, and the attention map generated by our proposed method. It can be seen that the baseline method often focuses on image edges or background areas, exhibiting issues of attention dispersion and viewpoint shift. In contrast, our proposed method significantly focuses on key human body parts (such as the head, torso, and clothing texture), maintaining consistency even under open-field perspectives, reflecting its superior cross-modal alignment and identity perception capabilities.

[0097] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims

1. A cross-view pedestrian re-identification method based on visual language cue learning, characterized in that, include: Acquire the target image; The target image is input into a preset pedestrian recognition model, and the pedestrian re-recognition result is output. The pedestrian recognition model is obtained by training a visual language pre-trained model CLIP using a cue learning mechanism and a two-stage training strategy. The cue learning mechanism is used to model viewpoint bias, and the two-stage training strategy is used to achieve cross-modal semantic alignment.

2. The cross-view pedestrian re-identification method based on visual language cue learning according to claim 1, characterized in that, The modeling perspective bias of the prompting learning mechanism includes: In the first training phase, a viewpoint-aware text template is used, which includes semantic information about character categories or identities and injected viewpoint information to guide the model to perceive the structural offset between the viewpoints of the ground. In the second training phase, a view-aware text template is used, which contains identity semantic information to guide the model to learn a view-aware identity consistency representation.

3. The cross-view pedestrian re-identification method based on visual language cue learning according to claim 2, characterized in that, The first training phase models the differences in structure, attitude, and scale between aerial and ground-view images, guiding image features to align with corresponding semantic prompts in the embedding space, thereby achieving structural correspondence between modalities.

4. The cross-view pedestrian re-identification method based on visual language cue learning according to claim 3, characterized in that, The first training phase employs a first loss function, which includes image-text contrast loss, text-image contrast loss, and air-ground similarity consistency loss.

5. The cross-view pedestrian re-identification method based on visual language cue learning according to claim 4, characterized in that, The first loss function is: Among them, L stage1 L represents the total loss in the first training phase. AGSCL The loss is for the consistency of the similarity between the ground and the virtual space, where N represents the total number of pedestrian identities in the dataset, and <·,·> represent the inner product operation. Let the aerial image features and ground image features of the j-th sample be represented respectively. Let the aerial text features and ground text features of the j-th sample be represented respectively. Let the aerial image features and ground image features of the k-th sample be represented respectively. Let these represent the aerial text features and ground text features of the k-th sample, respectively. represents the image-text contrast loss under the sky view and the ground view, respectively; F(·) represents the image coding function. This represents the text encoding function. and Let represent the image input samples from the i-th aerial viewpoint and the ground viewpoint, respectively. and Let j be the input of the j-th image sample at the corresponding viewpoint. and This represents the prompt text input for the i-th sample from an open-air perspective. Input the prompt text for the j-th sample; log(·) represents the natural logarithm function, exp(·) represents the exponential function; parameter B represents the number of samples in the current training batch. P(y) represents the text image contrast loss from the sky view and the ground view, respectively; i ) indicates the relationship with category y i The set of matching image sample indices, |P(y i | indicates the number of samples in the set; These represent the inputs of the p-th image sample in the set from aerial and ground perspectives, respectively. and This represents the prompt text input for the p-th sample from an open-air perspective.

6. The cross-view pedestrian re-identification method based on visual language cue learning according to claim 2, characterized in that, The second training phase, based on the viewpoint bias modeling completed in the first training phase, further enhances the image encoder's ability to distinguish identities and improves its robustness to changes in aerial and ground viewpoints, ultimately learning a stable identity representation vector with viewpoint invariance.

7. The cross-view pedestrian re-identification method based on visual language cue learning according to claim 6, characterized in that, The second training phase employs a second loss function, which includes classification loss, triplet loss, and cross-modal alignment loss.

8. The cross-view pedestrian re-identification method based on visual language cue learning according to claim 7, characterized in that, The second loss function is: L tri <max(d p -d n +α,0); Among them, L stage2 L represents the total loss in the second training phase. id Let q represent the classification loss. k p represents the probability that category k is the true category y. k L represents the probability that a sample is predicted to be of class k. tri Denotes the triplet loss, d p d represents the features of positive samples. n The features representing negative samples, where α is the boundary value. represent the cross-modal alignment loss under the sky view and the ground view, respectively, and F(·) represents the image coding function. This represents the text encoding function. and Let represent the image input samples from the i-th aerial viewpoint and the ground viewpoint, respectively. and For category y j The corresponding representative image samples are input from the corresponding viewpoint. This represents the text input features of the i-th sample under the condition of no viewpoint cue template. Represents category y j The corresponding text input features are log(·) representing the natural logarithm function and exp(·) representing the exponential function.

Citation Information

Patent Citations

  • Video language task execution method and device, video language task model training method and device, equipment and medium

    CN117876940A

  • Cross-modal pedestrian re-identification method based on inter-modal common semantic learning

    CN118711217A

  • Air-ground cross-platform target re-identification method based on semantic alignment and prompt learning

    CN119007241A

  • Semantic alignment method and system in multi-graph multi-mode large language model

    CN119027945A

  • Re-recognition model training method and system based on noise robust prompt learning framework

    CN120148072A

Cited By

  • Pedestrian alignment method and system, electronic equipment and storage medium

    CN122024177A

  • Pedestrian alignment method and system, electronic device and storage medium

    CN122024177B

  • Engineering safety and quality intelligent evaluation method and system based on machine vision

    CN122311969A

  • Engineering safety and quality intelligent evaluation method and system based on machine vision

    CN122311969B