Text pedestrian re-recognition method based on cross-modal semantic alignment
Патент · CN B
Полный текст
The invention discloses a text pedestrian re-recognition method based on cross-modal semantic alignment, which comprises the steps of 1, inputting text sentences and pedestrian images into a text encoder and a visual encoder respectively to obtain text features and image features, 2, clustering the text features and the image features by using a token clustering learning module to obtain clustered text and visual part prototype features, 3, aligning the clustered text and visual part prototype features by introducing an optimal transmission algorithm, further calculating a loss function of the aligned prototype features, and updating the text encoder and the visual encoder, and 4, calculating a similarity matrix of the text prototype features and the visual prototype features, and obtaining a search result. The invention can effectively extract the key information with discrimination in the pedestrian image and the text description, and simultaneously align the text and the image mode through the optimal transmission algorithm, thereby being capable of more effectively and accurately matching the text mode and the pedestrian image.