Model training method, image retrieval method, and apparatus
Assignee
HUAWEI TECHNOLOGIES CO., LTD.
Inventors
Weimian Li, Kaiqiang Zhu, Fei Huang, Songcen Xu
Abstract
A model training method relates to the artificial intelligence field. The method includes: obtaining a plurality of training samples, where each training sample includes an image and a text, and the text describes a target object in the image; and inputting the plurality of training samples into a target model, so that the target model performs the following procedure until a preset stop condition is met: extracting an image feature of a first image and a text feature of a first text; obtaining a first loss value based on a difference between a first vector and a second vector, where a dimension of the first vector is the same as a dimension of the second vector; and updating the target model based on the first loss value.
CPC Classifications
Filing Date
2023-07-28
Application No.
18361011
Claims
19