Method for training cross-modal retrieval model, electronic device and storage medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsFeng HE, Qi WANG, Zhifan FENG, Hu YANG, Chunguang CHAI
Life of this patent
Estimating the term…
Loading patent…
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsFeng HE, Qi WANG, Zhifan FENG, Hu YANG, Chunguang CHAI
Estimating the term…
The present disclosure discloses a method for training a cross-modal retrieval model, an electronic device and a storage medium, and relates to the field of computer technologies, and particularly to the field of artificial intelligence technologies, such as knowledge graph technologies, computer vision technologies, deep learning technologies, or the like. The method for training a cross-modal retrieval model includes: determining similarity of a cross-modal sample pair according to the cross-modal sample pair, the cross-modal sample pair including a sample of a first modal and a sample of a second modal, and the first modal being different from the second modal; determining a soft margin based on the similarity, and determining a soft margin loss function based on the soft margin; and determining a total loss function based on the soft margin loss function, and training a cross-modal retrieval model according to the total loss function.
A method for training a cross-modal retrieval model, comprising:
An electronic device, comprising:
A non-transitory computer readable storage medium with computer instructions stored thereon, wherein the computer instructions are used for causing a computer to perform a method for training a cross-modal retrieval model, wherein the method comprises:
Dependencies are inferred from the claim text.