← USPTO Patent Grants

Model training method, image retrieval method, and apparatus

Grant US12579790B2 Kind: B2 Mar 17, 2026

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

G06V 10/774 G06V 10/26 G06V 10/40 G06V 10/761 G06V 10/762 G06V 10/776 G06V 10/82 G06F 40/289 G06F 18/253 G06F 18/256 G06F 18/211 G06F 18/214 G06T 3/02 G06T 7/12 G06T 2207/20081 G06N 20/00 G06N 3/0475 G06N 3/096 G06N 3/045 G06N 3/02 Y02T 10/40

Filing Date

2023-07-28

Application No.

18361011

Claims

19