IMAGE RECOGNITION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM AND PROGRAM PRODUCT
The present disclosure provides an image recognition method, apparatus, electronic device, storage medium, and program product, and relates to the fields of artificial intelligence, computer vision, deep learning, image processing, and the like. The method includes: performing joint training on a first sub-network configured for recognition processing and a second sub-network configured for retrieval processing in a classification network by adopting an identical set of training data to obtain a trained target classification network, wherein, the first sub-network and the second sub-network are twin networks that are consistent in network structures and share a set of weights; and inputting image data to be recognized into the target classification network to obtain a recognition result. By adopting the method, the accuracy of the image recognition may be improved.