This invention discloses a
pedestrian re-identification method, medium, and device based on structured attribute-aware prompt learning, comprising: acquiring and preprocessing
pedestrian image data, constructing a
software-hardware collaborative
dynamic text prompt template; inputting the
pedestrian image and the corresponding
software-hardware collaborative text prompt into a pre-trained image and text
encoder to extract visual and text features, freezing the pre-trained network parameters, optimizing the learning of the
software-hardware collaborative text prompt for each pedestrian, and inputting the corresponding frozen text
encoder and trainable image
encoder to obtain text and image embedding vectors; using the text embedding vector as a query and the image embedding vector as a key and value, performing depth alignment of visual and text features through N cross-
modal networks to obtain the final fusion features; using the trained image encoder to extract pedestrian image features from the query image and image
library images, and completing pedestrian re-identification retrieval by calculating feature similarity; this invention has high accuracy and strong generalization ability.