Data processing method, retrieval method, device and equipment

By using regional attention information in clothing retrieval, the misclassification problem caused by uncertainty in clothing attribute information is solved, and the accuracy and reliability of clothing retrieval are improved.

CN112667839BActive Publication Date: 2024-09-20ALIBABA GROUP HOLDING LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201910982971.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-16
Publication Date
2024-09-20
Estimated Expiration
2039-10-16

AI Technical Summary

Technical Problem

Due to the uncertainty of clothing attribute information in existing clothing retrieval methods, similar clothing attributes are easily misclassified, which reduces the accuracy of retrieval.

Method used

By obtaining clothing area and position information in clothing images, feature learning is performed, regional attention information is obtained, a model for clothing retrieval is established, and clothing retrieval operations are performed based on regional attention information.

Benefits of technology

It improves the accuracy and reliability of clothing retrieval, avoids misclassification, and enhances the accuracy of retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112667839B
    Figure CN112667839B
Patent Text Reader

Abstract

The embodiment of the present invention provides a data processing method, a retrieval method, a device and equipment, and the processing method includes: obtaining a data set, the data set includes multiple clothing images; determining multiple clothing areas included in the clothing image and the position information corresponding to each clothing area; learning and training the clothing area and the position information corresponding to each clothing area to obtain the regional attention information corresponding to the clothing area; determining a clothing retrieval model for retrieving clothing according to the regional attention information corresponding to all clothing areas. The technical solution provided by this embodiment divides the clothing image into multiple clothing areas, obtains the regional attention information corresponding to each clothing area, and determines the clothing retrieval model according to all the regional attention information. When the clothing retrieval model is used to retrieve clothing, clothing retrieval based on the position of the clothing area is realized, and the accuracy of clothing retrieval is effectively guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method, a retrieval method, a device and equipment. Background Art

[0002] Clothing retrieval is a very popular research direction with a wide range of application scenarios. In the prior art, when performing clothing retrieval, the attribute information of the clothing is generally obtained first, and then the clothing retrieval operation is performed based on the attribute information of the clothing. However, since the attribute information of clothing has great uncertainty, when using the attribute information of clothing for clothing retrieval, some similar clothing attributes are easily misclassified, thereby reducing the accuracy of clothing retrieval. Summary of the invention

[0003] The embodiments of the present invention provide a data processing method, a retrieval method, a device and an apparatus, which can perform clothing retrieval operations based on attention information of clothing areas, thereby effectively improving the accuracy and reliability of clothing retrieval.

[0004] In a first aspect, an embodiment of the present invention provides a data processing method, including:

[0005] Acquire a data set, wherein the data set includes a plurality of clothing images;

[0006] Determine a plurality of clothing regions included in the clothing image and position information corresponding to each clothing region;

[0007] Performing learning and training on the clothing area and the position information corresponding to each clothing area to obtain regional attention information corresponding to the clothing area;

[0008] A clothing retrieval model for retrieving clothing is determined based on regional attention information corresponding to all clothing regions.

[0009] In a second aspect, an embodiment of the present invention provides a data processing device, including:

[0010] A first acquisition module, used to acquire a data set, wherein the data set includes a plurality of clothing images;

[0011] A first processing module, used for determining a plurality of clothing regions included in the clothing image and position information corresponding to each clothing region;

[0012] A learning module, used for learning and training the clothing area and the position information corresponding to each clothing area, to obtain regional attention information corresponding to the clothing area;

[0013] The first processing module is also used to determine a clothing retrieval model for retrieving clothing based on the regional attention information corresponding to all clothing regions.

[0014] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the data processing method in the above-mentioned first aspect.

[0015] In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement the data processing method in the first aspect when executed.

[0016] The data processing method provided in the present embodiment effectively realizes regional clothing retrieval for clothing images. Specifically, the clothing image can be first divided into multiple clothing areas, and then feature learning can be performed for the position information of each clothing area to obtain regional attention information. A clothing retrieval model for overall retrieval of clothing is determined based on all the regional attention information. When the clothing retrieval model is used to retrieve clothing, clothing retrieval operations can be performed based on the attention information of the clothing area. This effectively avoids the situation in the prior art where some similar clothing attributes are easily misclassified due to great uncertainty in clothing attribute information, effectively ensures the accuracy of clothing retrieval, and thus ensures the practicability of the method, which is conducive to market promotion and application.

[0017] In a fifth aspect, an embodiment of the present invention provides a data retrieval method, comprising:

[0018] Obtaining a data retrieval request, wherein the data retrieval request includes reference clothing information;

[0019] Performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information;

[0020] The clothing retrieval model is used to perform retrieval processing on all reference areas to obtain clothing retrieval results corresponding to the reference clothing information.

[0021] In a sixth aspect, an embodiment of the present invention provides a data retrieval device, including:

[0022] A second acquisition module is used to acquire a data retrieval request, wherein the data retrieval request includes reference clothing information;

[0023] A second processing module, configured to perform region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information;

[0024] The retrieval module is used to perform retrieval processing on all reference areas using the clothing retrieval model to obtain clothing retrieval results corresponding to the reference clothing information.

[0025] In the seventh aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the data retrieval method in the above-mentioned fifth aspect.

[0026] In an eighth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement the data retrieval method in the fifth aspect when executed.

[0027] The data retrieval method provided in this embodiment obtains a data retrieval request and performs area division processing on the reference clothing information to obtain a reference area corresponding to the reference clothing information, and then uses a clothing retrieval model to perform retrieval processing on all reference areas to obtain clothing retrieval results corresponding to the reference clothing information, thereby effectively ensuring the accuracy and reliability of the clothing retrieval results, thereby ensuring the practicability of the method, and facilitating market promotion and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 A flowchart of a data processing method provided by an embodiment of the present invention;

[0030] Figure 2 A flowchart for determining multiple clothing regions included in the clothing image and position information corresponding to each clothing region provided by an embodiment of the present invention;

[0031] Figure 3 A flowchart of learning and training the clothing area and the position information corresponding to each clothing area to obtain the regional attention information corresponding to the clothing area provided in an embodiment of the present invention;

[0032] Figure 4 A flowchart of another data processing method provided by an embodiment of the present invention;

[0033] Figure 5A flowchart of another data processing method provided by an embodiment of the present invention;

[0034] Figure 6 A flowchart of performing region division processing on the reference clothing information based on the clothing classification to obtain a reference region corresponding to the reference clothing information provided by an embodiment of the present invention;

[0035] Figure 7 A flowchart of another data processing method provided by an embodiment of the present invention;

[0036] Figure 8 A schematic diagram of a data retrieval method provided by an application embodiment of the present invention;

[0037] Fig. 9 A schematic diagram of a model training provided for an application embodiment of the present invention;

[0038] Fig.10 A schematic diagram of data retrieval provided for an application embodiment of the present invention;

[0039] Fig.11 A schematic diagram of the structure of a data processing device provided by an embodiment of the present invention;

[0040] Fig.12 For Fig.11 A schematic diagram of the structure of an electronic device corresponding to the data processing device provided in the illustrated embodiment;

[0041] Fig.13 A schematic diagram of the structure of a data retrieval device provided by an embodiment of the present invention;

[0042] Fig.14 For Fig.13 A schematic diagram of the structure of an electronic device corresponding to the data retrieval device provided in the illustrated embodiment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.

[0045] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0046] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0047] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0048] In order to facilitate understanding of the technical solution of the present application, the prior art is briefly described below:

[0049] Clothing retrieval is a very popular research direction with a wide range of application scenarios. In the prior art, when learning and training clothing retrieval algorithms, the similarity of features is often simply learned in the annotation box, and the features in the entire annotation box area are not distinguished. At this time, it is easy to learn useless features and ignore key features, thereby reducing the learning and training effect of the clothing retrieval network. In order to ensure the training effect of the clothing retrieval network, the attribute attention mechanism is introduced when learning and training the clothing retrieval network, that is, different attributes of clothing are used to guide the retrieval network to learn different features. However, the existing clothing retrieval methods generally only use the attributes of clothing as an attention mechanism, where the attributes of clothing mainly refer to the category feature information of clothing, such as: whether the sleeves in the clothing are long sleeves or short sleeves, whether the collar is round neck or V neck, etc. After a large amount of data analysis, it is found that clothing retrieval based on clothing attribute information has great uncertainty, and some similar clothing attributes are easily misclassified, thereby reducing the retrieval effect.

[0050] In the following, some embodiments of the present invention are described in detail in conjunction with the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and features in the embodiments can be combined with each other.

[0051] Figure 1 A flowchart of a data processing method provided by an embodiment of the present invention; Figure 1 As shown, this embodiment provides a data processing method, and the execution subject of the processing method is a data processing device. It can be understood that the processing device can be implemented as software, or a combination of software and hardware.

[0052] Specifically, the data processing method may include:

[0053] S1: Obtain a data set, where the data set includes multiple clothing images.

[0054] The data set may include at least one of the following: Deepfashion dataset, Deepfashion2 dataset or other datasets. Specifically, the Deepfashion dataset is a large dataset opened by the Chinese University of Hong Kong, which contains 800,000 pictures, including pictures from different angles, different scenes, buyer shows, buyer shows, etc. Each picture also has very rich annotation information, including 50 categories, 1,000 attributes, standard boxes, and feature points. The number of annotations in the DeepFashion2 dataset is 3.5 times that of the DeepFashion dataset. The above-mentioned Deepfashion dataset and Deepfashion2 dataset can be used for clothing detection and recognition, labeling and posture estimation, segmentation, verification and retrieval.

[0055] It should be noted that the data set in this embodiment may also be other public data sets. When the data set is a public data set, the data set can be obtained by accessing a preset website or a preset area; alternatively, the data set in this embodiment may also be a private data set. In this case, the data set can be obtained by accessing a preset device or a preset area. After obtaining the data set, multiple clothing images included in the data set can be obtained.

[0056] S2: Determine a plurality of clothing regions included in the clothing image and position information corresponding to each clothing region.

[0057] Among them, a clothing image may include a clothing body, and the clothing body may include multiple clothing areas, for example, the clothing body includes: cuff area, neckline area, waistline area, etc. At this time, in order to ensure the learning and training effect of the clothing retrieval model, after obtaining multiple clothing images, the clothing images can be analyzed and identified to determine the multiple clothing areas included in the clothing image and the position information corresponding to each clothing area. Specifically, this embodiment does not limit the specific implementation method for determining the multiple clothing areas included in the clothing image and the position information corresponding to each clothing area. Those skilled in the art can set it according to specific application requirements and design requirements. For example, a standard clothing image corresponding to the clothing image can be determined in a preset standard clothing image data set, and then the multiple standard clothing areas corresponding to the standard clothing image are determined as the multiple clothing areas included in the clothing image, and the standard position information corresponding to each standard clothing area is determined as the position information corresponding to each clothing area in the clothing image. Of course, those skilled in the art can also use other methods to determine the multiple clothing areas included in the clothing image and the position information corresponding to each clothing area, as long as the accuracy and reliability of determining the clothing area and the position information corresponding to each clothing area can be guaranteed, which will not be repeated here.

[0058] S3: Perform learning and training on the clothing area and the position information corresponding to each clothing area to obtain the regional attention information corresponding to the clothing area.

[0059] After obtaining the clothing area and the position information corresponding to each clothing area, the clothing area and the position information corresponding to each clothing area can be learned and trained, so as to obtain the regional attention information corresponding to the clothing area. For example: there is a first clothing image and a second clothing image, the first clothing image includes: a first cuff area, a first neckline area, and a first waistline area, and the second clothing image includes: a second cuff area, a second neckline area, and a second waistline area. After obtaining the above-mentioned multiple clothing areas, the clothing areas and the position information corresponding to each clothing area can be learned and trained, that is: the first cuff area, the position information of the first cuff area, the second cuff area, and the position information of the second cuff position can be learned and trained, so that the regional attention information corresponding to the cuff area can be obtained; similarly, the first neckline area, the position information of the first neckline area, the second neckline area, and the position information of the second neckline area can be learned and trained, so that the regional attention information corresponding to the neckline area can be obtained; the first waistline area, the position information of the first waistline area, the second waistline area, and the position information of the second waistline area can be learned and trained, so that the regional attention information corresponding to the waistline area can be obtained.

[0060] S4: Determine a clothing retrieval model for retrieving clothing based on the regional attention information corresponding to all clothing regions.

[0061] After obtaining the regional attention information corresponding to the clothing area, the clothing retrieval model for retrieving clothing can be determined based on the regional attention information corresponding to all clothing areas. Specifically, since different regional attention information corresponds to different clothing areas, after obtaining the regional attention information corresponding to all clothing areas, the clothing retrieval model for clothing retrieval can be determined in combination with the preset basic retrieval model. For example, the regional attention information includes: first attention information corresponding to the cuff area, second attention information corresponding to the neckline area, and third attention information corresponding to the waistline area. After obtaining the first attention information, the second attention information, and the third attention information, analysis and processing can be performed based on the preset basic retrieval model and the above-mentioned first attention information, second attention information, and third attention information, so that a clothing retrieval model for retrieving clothing can be obtained.

[0062] The data processing method provided in the present embodiment effectively realizes regional clothing retrieval for clothing images. Specifically, the clothing image can be first divided into multiple clothing areas, and then feature learning can be performed for the position information of each clothing area to obtain regional attention information. A clothing retrieval model for overall retrieval of clothing is determined based on all the regional attention information. When the clothing retrieval model is used to retrieve clothing, clothing retrieval operations can be performed based on the attention information of the clothing area. This effectively avoids the situation in the prior art where some similar clothing attributes are easily misclassified due to great uncertainty in clothing attribute information, effectively ensures the accuracy of clothing retrieval, and thus ensures the practicability of the method, which is conducive to market promotion and application.

[0063] Figure 2 A flowchart of determining multiple clothing regions included in a clothing image and position information corresponding to each clothing region provided by an embodiment of the present invention; based on the above embodiment, continue to refer to the attached Figure 2 As shown, in this embodiment, the specific determination method for the multiple clothing areas and the position information corresponding to each clothing area is not limited, and those skilled in the art can set it according to specific application requirements and design requirements. Preferably, in this embodiment, the determination of the multiple clothing areas included in the clothing image and the position information corresponding to each clothing area may include:

[0064] S21: Process the clothing image using a high-resolution deep neural network to obtain clothing key points included in the clothing image.

[0065] S22: Determine multiple clothing regions included in the clothing image and position information corresponding to each clothing region according to the clothing key points.

[0066] Specifically, after obtaining the clothing image, the high-resolution deep neural network HR-Net can be used to analyze and process the clothing image, so as to obtain the clothing key points included in the clothing image. Among them, the clothing key points are like the various joints of the human body. Each type of clothing also has key points arranged according to certain rules at various key positions, such as the key points of the cuffs and the key points of the neckline. Taking the image data in the Deepfashion2 dataset as an example, the image data in the dataset includes 13 types of clothing and a total of 294 clothing key points.

[0067] Among them, since there is a preset relationship between clothing key points and clothing areas, after obtaining the clothing key points, the multiple clothing areas included in the clothing area and the position information corresponding to each clothing area can be determined based on the above-mentioned preset relationship and clothing key points, thereby effectively ensuring the accuracy and reliability of determining the clothing areas and the position information corresponding to the clothing areas, thereby improving the accuracy and reliability of the use of this method.

[0068] Further, based on the above embodiments, this embodiment does not limit the specific implementation method for obtaining the regional attention information corresponding to the clothing area, and those skilled in the art can set it according to specific application scenarios and application requirements. Among them, one achievable method is that in this embodiment, the clothing area and the position information corresponding to each clothing area are trained and learned, and obtaining the regional attention information corresponding to the clothing area may include:

[0069] S31: The position information corresponding to the clothing key points and each clothing area is used as attention parameters for learning and training to obtain the regional attention information corresponding to the clothing area.

[0070] Specifically, after obtaining the position information corresponding to the clothing key points and each clothing area, the clothing key points and the position information corresponding to each clothing area can be used as attention parameters (an attention mechanism) for learning and training, so that the regional attention information corresponding to the clothing area can be obtained. In this way, the attention mechanism based on clothing key points is effectively realized, and the clothing key points of each type of clothing are used to guide the retrieval network to learn feature similarity, focusing on extracting feature information around clothing key points, thereby improving the quality and effect of learning and training clothing key points, and ensuring the training effect of clothing retrieval model. For example: different retrieval areas can be enclosed by clothing key points, such as cuff areas, neckline areas, etc., and learning and training are performed separately in different clothing areas, so that the regional attention information corresponding to the clothing area can be obtained, which effectively improves the accuracy of the definition of clothing areas and further ensures the accuracy and reliability of regional attention information for retrieval of each clothing area.

[0071] In addition, for the specific implementation method of obtaining the regional attention information corresponding to the clothing area, refer to the attached Figure 3 As shown, another achievable manner is that the clothing area and the position information corresponding to each clothing area are trained in this embodiment, and obtaining the regional attention information corresponding to the clothing area may include:

[0072] S32: Obtaining retrieval ranking information of clothing images in the data set.

[0073] Among them, each clothing image, compared with other images in the data set, corresponds to a retrieval ranking information, and the retrieval ranking information is related to the similarity between each clothing image and other clothing images in the data set. Specifically, each clothing image, compared with other clothing images in the data set, corresponds to similarity information. The similarity ranking of each clothing image in the data set can be obtained through the similarity information corresponding to all clothing images, that is, the retrieval ranking information of the clothing image in the data set is obtained. The retrieval ranking information can be used as an attention parameter for learning and training, thereby improving the retrieval accuracy of regional attention information.

[0074] S33: Perform learning and training on clothing key points, position information corresponding to each clothing area, and retrieval sorting information to obtain regional attention information corresponding to the clothing area.

[0075] After obtaining the retrieval ranking information, the clothing key points, the position information corresponding to each clothing area and the retrieval ranking information can be learned and trained, so that the regional attention information corresponding to the clothing area can be obtained.

[0076] In this embodiment, clothing is divided into multiple clothing areas by using clothing key points, and then feature learning is performed on the position information of different clothing areas, so that regional attention information corresponding to the clothing areas can be obtained. In the process of feature similarity learning, the features of certain positions are focused on learning through the attention mechanism, which effectively improves the feature learning effect of the key areas, thereby improving the retrieval accuracy of the regional attention information.

[0077] Figure 4 A flowchart of another data processing method provided by an embodiment of the present invention; based on any of the above embodiments, continue to refer to the attached Figure 4 As shown, in order to improve the accuracy and reliability of data processing, after obtaining the regional attention information corresponding to the clothing area, the method in this embodiment may further include:

[0078] S101: Calculate the retrieval accuracy of regional attention information using the loss function.

[0079] S102: When the retrieval accuracy does not meet the preset requirement, continue to learn and train the regional attention information. Or,

[0080] S103: When the retrieval accuracy meets the preset requirement, it is allowed to determine a clothing retrieval model for clothing retrieval according to the regional attention information corresponding to all clothing regions.

[0081] Specifically, after each learning and training to obtain regional attention information, the loss function can be used to calculate the retrieval accuracy of the regional attention information. After obtaining the retrieval accuracy, it can be identified whether the retrieval accuracy meets the preset requirements, wherein the preset requirements can refer to a preset accuracy threshold, which is the minimum standard for evaluating the quality of regional attention information. When the retrieval accuracy does not meet the preset requirements, that is, the retrieval accuracy is less than the preset accuracy threshold, it means that the retrieval accuracy or retrieval accuracy of the regional attention information at this time is relatively low. At this time, in order to ensure the accuracy of clothing retrieval, it is necessary to continue to learn and train the regional attention information until the regional attention information with the retrieval accuracy meeting the preset requirements is obtained. When the retrieval accuracy meets the preset requirements, that is, the retrieval accuracy is greater than or equal to the preset accuracy threshold, it means that the retrieval accuracy or retrieval accuracy of the regional attention information at this time is relatively high. At this time, it is allowed to determine the clothing retrieval model for clothing retrieval according to the regional attention information corresponding to all clothing regions, which can effectively ensure the retrieval accuracy and reliability of the clothing retrieval model.

[0082] Figure 5 A flowchart of another data processing method provided by an embodiment of the present invention; based on the above embodiment, continue to refer to the attached Figure 5 As shown, the method in this embodiment may further include:

[0083] S201: Obtain a data retrieval request, where the data retrieval request includes reference clothing information.

[0084] Among them, the data retrieval request may be uploaded by the user or generated by the data processing device through the user's execution operation, or may be sent to the data processing device by other devices. The data retrieval request may include reference clothing information, and the reference clothing information is the retrieval reference data for data retrieval. It should be noted that the present embodiment does not limit the specific data type of the reference clothing information, and those skilled in the art can set it according to the specific application scenario. For example, the reference clothing information can be three-dimensional image data, plane image data, one or several video frame data in the video data, etc. Different reference clothing information can correspond to different clothing retrieval models. For example, when the reference clothing information is three-dimensional image data, the clothing retrieval model corresponding to the three-dimensional image data can be used to perform clothing retrieval operations; when the reference clothing information is plane image data, the clothing retrieval model corresponding to the plane image data can be used to perform clothing retrieval operations.

[0085] S202: performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information.

[0086] After obtaining the reference clothing information, the reference clothing information may be divided into regions, so as to obtain a reference region corresponding to the reference clothing information. Specifically, before the reference clothing information is divided into regions to obtain a reference region corresponding to the reference clothing information, the method in this embodiment further includes:

[0087] S2020: Determine the clothing category corresponding to the reference clothing information according to the reference clothing information.

[0088] Specifically, after obtaining the reference clothing information, the reference clothing information and the preset standard image can be analyzed and processed to obtain the clothing classification corresponding to the reference clothing information, wherein the clothing classification information may include at least one of the following: clothing brand information, clothing category information; of course, the clothing classification information may also include other attribute information, such as: clothing color information, clothing style information, etc. Those skilled in the art can configure the clothing classification information according to specific application scenarios and application requirements, which will not be repeated here; the corresponding clothing retrieval operation is performed through the determined clothing classification information, which effectively expands the scope of clothing retrieval, thereby improving the diversity and accuracy of the retrieval results.

[0089] After obtaining the clothing classification, in this embodiment, performing region division processing on the reference clothing information to obtain the reference region corresponding to the reference clothing information may include:

[0090] S2021: performing region division processing on the reference clothing information based on clothing classification to obtain a reference region corresponding to the reference clothing information.

[0091] Specifically, after obtaining the clothing classification, the reference clothing information can be divided into regions based on the clothing classification, so as to obtain a reference region corresponding to the reference clothing information. Figure 6 As shown, performing region division processing on the reference clothing information based on clothing classification to obtain a reference region corresponding to the reference clothing information may include:

[0092] S20211: Determine the number of key points and key point arrangement information corresponding to the reference clothing information according to the clothing classification.

[0093] S20212: performing region division processing on the reference clothing information according to the number of key points and the key point arrangement information to obtain a reference region corresponding to the reference clothing information.

[0094] Among them, the correspondence between clothing classification and the number of key points and key point arrangement information is pre-stored. Therefore, after obtaining the clothing classification, the number of key points and the key point arrangement information corresponding to the reference clothing information can be determined, and then the reference clothing information can be divided into regions based on the number of key points and the key point arrangement information to obtain the reference region corresponding to the reference clothing information, which effectively ensures the accuracy and reliability of the reference region acquisition.

[0095] S203: Perform retrieval processing on all reference areas using the clothing retrieval model to obtain clothing retrieval results corresponding to the reference clothing information.

[0096] After obtaining the reference area, the clothing retrieval model can be used to perform retrieval processing on all reference areas, so that the clothing retrieval results corresponding to the reference clothing information can be obtained. Specifically, the clothing retrieval model includes multiple regional attention information. After obtaining multiple reference areas corresponding to the reference clothing information, the regional attention information corresponding to the reference area can be determined, and the corresponding reference area can be retrieved using the regional attention information, so that the clothing retrieval results corresponding to the reference clothing information can be obtained.

[0097] In specific implementation, the clothing search results can have different display modes according to different types of reference clothing information, and can provide different display effects to users. For example: when the reference clothing information is plane image data, the clothing search results can also be plane image data, or the clothing search results can also be displayed with the way models or users wear them; when the reference clothing information is three-dimensional image data, the clothing search results can also be three-dimensional image data, and the wearing effect corresponding to the clothing search results can also be displayed through models or users themselves; when the reference clothing information is one or several video frame data in the video data, the clothing search results can also be simple video data or dynamic image data, etc.

[0098] In addition, when the clothing retrieval model is used to perform retrieval processing on all reference areas, multiple regional retrieval results corresponding to each reference area can also be obtained and displayed, and clothing retrieval results corresponding to the reference clothing information can be obtained through the multiple regional retrieval results corresponding to all reference areas, and for each clothing retrieval result, all regional retrieval results included in the clothing retrieval result can also be displayed. Specifically, when displaying multiple regional retrieval results corresponding to each reference area, the multiple regional retrieval results can be displayed according to preset rules, wherein the preset rules can include similarity size information, retrieval ranking information, brand influence information, etc. When displaying multiple regional retrieval results, promotional information corresponding to the regional retrieval results can also be displayed, thereby effectively improving the promotional effect of the product.

[0099] In this embodiment, by obtaining a data retrieval request and performing regional division processing on the reference clothing information, a reference area corresponding to the reference clothing information is obtained, and then a clothing retrieval model is used to perform retrieval processing on all reference areas to obtain clothing retrieval results corresponding to the reference clothing information, thereby effectively ensuring the accuracy and reliability of the clothing retrieval results, thereby ensuring the practicability of the method, and facilitating market promotion and application.

[0100] Figure 7 A flowchart of another data processing method provided by an embodiment of the present invention; based on the above embodiment, continue to refer to the attached Figure 7 As shown, in order to improve the practicality of the method, when the clothing search result includes multiple pieces of retrieved clothing information, the method in this embodiment may further include:

[0101] S301: Obtaining the similarity between the reference clothing information and the searched clothing information;

[0102] S302: when the similarity is greater than or equal to a preset threshold, the retrieved clothing information is annotated with a first annotation frame; or,

[0103] S303: When the similarity is less than a preset threshold, the retrieved clothing information is annotated with a second annotation frame, where the second annotation frame is different from the first annotation frame.

[0104] Specifically, since the clothing search result may include one or more retrieved clothing information, the clothing search information is the retrieved clothing information similar to the reference clothing information. When the clothing search result includes one retrieved clothing information, the user can directly view the retrieved clothing information corresponding to the reference clothing information; when the clothing search result includes multiple retrieved clothing information, the similarities between the multiple retrieved clothing information and the reference clothing information are different. In order to allow the user to directly view the retrieved clothing information that is more similar to the reference clothing information, the similarity between the reference clothing information and each retrieved clothing information can be obtained. When the similarity is greater than or equal to a preset threshold, it means that the similarity between the retrieved clothing information and the reference clothing information is high, and the retrieved clothing information can be annotated with a first annotation box; when the similarity is less than a preset threshold, it means that the similarity between the retrieved clothing information and the reference clothing information is low, and the retrieved clothing information can be annotated with a second annotation box. Generally, the second annotation box is different from the first annotation box, and the first annotation box has a more prominent display effect relative to the second annotation box.

[0105] Taking the red marking box as the first marking box and the white standard box as the second marking box as an example, the clothing search results include first search clothing information, second search clothing information, and third search clothing information. The similarities between the reference clothing information and the above search clothing information are respectively: the first similarity, the second similarity, and the third similarity. When the first similarity and the second similarity are both greater than or equal to a preset threshold, the first search clothing information and the second search clothing information can be marked with a red marking box, and can be sorted from high to low based on the similarity of the first search clothing information and the second search clothing information; when the third similarity is less than the preset threshold, the search clothing information can be marked with a white standard box, so that users can more intuitively and quickly view the search results with higher similarity, meeting the user's search and viewing needs.

[0106] On the basis of any of the above embodiments, in order to improve the accuracy of clothing retrieval, after obtaining the reference area corresponding to the reference clothing information, the method in this embodiment may further include:

[0107] S401: Acquire the visual attention corresponding to the reference area.

[0108] In the process of user vision formation, the visual and visual perception systems can show different resolutions and attention to different colors. In the image retrieval algorithm, users can also generate different visual attention for different reference areas. Specifically, this embodiment does not limit the specific method for obtaining the visual attention corresponding to the reference area. Those skilled in the art can design it according to specific design requirements. For example, the reference area can be analyzed and processed using a visual attention model, so as to obtain the visual attention corresponding to the reference area. In order to meet the personalized retrieval needs of different users, it is more preferred that obtaining the visual attention corresponding to the reference area in this embodiment may include:

[0109] S4011: Obtaining the focus point information input by the user for the reference area.

[0110] S4012: Determine the visual attention corresponding to the reference area according to the attention point information.

[0111] Among them, after obtaining the reference area, the user can input the corresponding focus point information for a certain reference area, and the attention information includes: color, shape, size, texture, etc.; after obtaining the focus point information corresponding to the reference area, the visual attention corresponding to the reference area can be determined according to the focus point information. Specifically, the reference area and focus point information can be analyzed and processed using a visual attention model, so as to obtain the visual attention corresponding to the reference area.

[0112] In this embodiment, by obtaining the focus point information determined by the user for the reference area to determine the visual focus corresponding to the reference area, the interactive operation with the user is effectively achieved, the personalized needs of the user are met, and the quality and accuracy of clothing retrieval are further improved.

[0113] S402: performing retrieval processing on all reference areas according to the clothing retrieval model and visual attention, and obtaining clothing retrieval results corresponding to the reference clothing information.

[0114] After the visual attention is obtained, all reference areas can be retrieved according to the clothing retrieval model and the visual attention, so that clothing retrieval results corresponding to the reference clothing information can be obtained.

[0115] In this embodiment, by obtaining the visual attention corresponding to the reference area, all reference areas are searched and processed according to the clothing retrieval model and the visual attention, and clothing retrieval results corresponding to the reference clothing information are obtained, thereby effectively realizing the clothing retrieval operation combined with visual attention, which can not only meet the retrieval needs of different users, but also improve the accuracy and reliability of clothing retrieval.

[0116] On the basis of any of the above embodiments, in order to further improve the practicality of the method, after obtaining the visual attention corresponding to the reference area, the method in this embodiment may further include:

[0117] S501: Determine clothing optimization information corresponding to the reference clothing information based on the visual attention.

[0118] S502: Optimizing the reference clothing information according to the clothing optimization information.

[0119] Specifically, after obtaining the visual attention corresponding to the reference area, the clothing optimization information corresponding to the reference clothing information can be determined based on the visual attention. After obtaining the clothing optimization information, clothing developers and clothing designers can optimize the reference clothing information according to the clothing optimization information. For example: a reference area corresponding to a reference clothing information includes: reference area A and reference area B, wherein the visual attention corresponding to reference area A includes color information and shape information. At this time, the clothing optimization information corresponding to reference area A in the reference clothing information can be determined according to the color information and shape information. The clothing optimization information is related to the color information and shape information, so that clothing developers and clothing designers can optimize the reference clothing information through the clothing optimization information, obtain clothing products that meet the needs of different users, and ensure the transaction rate of clothing products.

[0120] Another aspect of this embodiment provides a data retrieval method, the execution subject of the retrieval method is a data retrieval device, it can be understood that the retrieval device can be implemented as software, or a combination of software and hardware. Specifically, the data retrieval method may include:

[0121] S601: Obtaining a data retrieval request, the data retrieval request including reference clothing information;

[0122] S602: performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information;

[0123] S603: Perform retrieval processing on all reference areas using the clothing retrieval model to obtain clothing retrieval results corresponding to the reference clothing information.

[0124] The specific implementation process and implementation effect of the method in this embodiment are similar to those in the above appendix. Figure 5 The specific implementation process and implementation effect of the method in the illustrated embodiment are similar, and the details can be referred to the above statements, which will not be repeated here.

[0125] The data retrieval method provided in this embodiment obtains a data retrieval request and performs area division processing on the reference clothing information to obtain a reference area corresponding to the reference clothing information, and then uses a clothing retrieval model to perform retrieval processing on all reference areas to obtain clothing retrieval results corresponding to the reference clothing information, thereby effectively ensuring the accuracy and reliability of the clothing retrieval results, thereby ensuring the practicability of the method, and facilitating market promotion and application.

[0126] Furthermore, before performing region division processing on the reference clothing information to obtain the reference region corresponding to the reference clothing information, the present embodiment may include:

[0127] S6020: Determine the clothing category corresponding to the reference clothing information according to the reference clothing information;

[0128] After obtaining the clothing classification, performing region division processing on the reference clothing information to obtain the reference region corresponding to the reference clothing information may include:

[0129] S6021: performing region division processing on the reference clothing information based on clothing classification to obtain a reference region corresponding to the reference clothing information.

[0130] Furthermore, performing region division processing on the reference clothing information based on clothing classification to obtain a reference region corresponding to the reference clothing information may include:

[0131] S60211: Determine the number of key points and key point arrangement information corresponding to the reference clothing information according to the clothing classification;

[0132] S60212: performing region division processing on the reference clothing information according to the number of key points and the key point arrangement information to obtain a reference region corresponding to the reference clothing information.

[0133] Furthermore, the clothing search result includes a plurality of retrieved clothing information; the method in this embodiment may also include:

[0134] S701: Obtaining the similarity between the reference clothing information and the searched clothing information;

[0135] S702: when the similarity is greater than or equal to a preset threshold, the retrieved clothing information is annotated with a first annotation frame; or,

[0136] S703: When the similarity is less than a preset threshold, the retrieved clothing information is annotated with a second annotation frame, where the second annotation frame is different from the first annotation frame.

[0137] Furthermore, after obtaining the reference area corresponding to the reference clothing information, the method in this embodiment may further include:

[0138] S801: Acquire the visual attention corresponding to the reference area;

[0139] S802: performing retrieval processing on all reference areas according to the clothing retrieval model and visual attention, and obtaining clothing retrieval results corresponding to the reference clothing information.

[0140] Wherein, obtaining the visual attention corresponding to the reference area may include:

[0141] S8011: Acquire the focus point information input by the user for the reference area;

[0142] S8012: Determine the visual attention corresponding to the reference area according to the attention point information.

[0143] Furthermore, after obtaining the visual attention corresponding to the reference area, the method in this embodiment may further include:

[0144] S901: Determine clothing optimization information corresponding to the reference clothing information based on the visual attention;

[0145] S902: Optimizing the reference clothing information according to the clothing optimization information.

[0146] The specific implementation process and implementation effect of the method in this embodiment are the same as those in the above appendix. Figure 6-Figure 7 The specific implementation process and implementation effect of the method in the illustrated embodiment are similar, and specific details may be referred to the above statements, which will not be repeated here.

[0147] For specific applications, refer to the attached Figure 8-10 As shown, this application embodiment provides a data retrieval method based on the attention mechanism of clothing key points. The method can use the key points of each type of clothing to guide the retrieval network to learn feature similarity, focusing on extracting features around the key points of clothing. Specifically, the key points can be used to enclose different retrieval areas, such as cuff areas, neckline areas, etc., and can be trained separately in different areas to obtain regional attention information corresponding to the retrieval area, and then obtain a clothing retrieval model for retrieving clothing based on the regional attention information corresponding to all retrieval areas and a pre-set basic retrieval model. Then, the clothing retrieval model can be used to perform clothing retrieval operations. It should be noted that the basic retrieval model is the retrieval branch part of the machine learning model that was initially learned and trained. In summary, the method includes two parts: the learning part of the clothing retrieval network and the application part of the clothing retrieval model. Specifically, the learning part of the clothing retrieval network includes:

[0148] Step 1: Get a data set, which includes multiple clothing images.

[0149] The data set may be a Deepfashion2 data set, thereby implementing learning and training using clothing images included in the Deepfashion2 data set to obtain a clothing retrieval model.

[0150] Step 2: Based on HR-Net, the clothing key points estimation and clothing retrieval operations are performed on the clothing image, so as to obtain multiple clothing areas included in the clothing image, the location information corresponding to each clothing area, and the retrieval sorting information.

[0151] Among them, HR-Net can include a first network branch for estimating clothing key points and a second network branch for performing clothing retrieval operations. The first network branch and the second network branch can both be implemented using the backbone framework of HR-Net, which is a framework that helps develop heavyweight javascript applications. Specifically, when the first network branch is used to analyze and process the clothing image, multiple clothing areas included in the clothing image and the position information corresponding to each clothing area can be identified; when the second network branch is used to analyze and process the clothing image, the retrieval ranking information corresponding to the clothing image can be obtained.

[0152] Step 3: Learn and train the clothing key points, the position information corresponding to each clothing area, and the retrieval sorting information to obtain the regional attention information corresponding to the clothing area.

[0153] Among them, in the process of feature similarity learning, the attention mechanism can make the features of certain positions be learned emphatically, and improve the feature learning effect of key areas. In addition, after obtaining the regional attention information, the loss function can be used to perform quality inspection in different clothing areas, that is, to obtain the retrieval accuracy of the regional attention information. If the retrieval accuracy meets the preset requirements, it means that the learning and training effect of the regional attention information is good, and the regional attention information can be output at this time; if the retrieval accuracy does not meet the preset requirements, it means that the learning and training effect of the regional attention information is poor, and it is necessary to continue the learning and training operation. In order to obtain regional attention information that meets the preset requirements.

[0154] Specifically, the clothing key estimation operation performed by the first network branch and the clothing retrieval operation performed by the second network branch can be asynchronous, that is, the first network branch for key point estimation is first trained, and the attention information of the clothing key points is transmitted to the second network branch once every three training cycles epoch, where 1 epoch is equal to training once with all the samples in the training set. In layman's terms, the value of epoch is the number of times the entire data set is trained in rotation.

[0155] After the attention information is sent to the second network branch, the first network branch is temporarily fixed, that is, the network training parameters of the first network branch remain unchanged, and then the clothing retrieval part is trained using the second network branch, so that the retrieval ranking information can be obtained. Since the key point information of the clothing is used in the training process, this will give higher attention to the features around the key points, which is very important for the learning effect of clothing feature similarity. Specifically, during the training of the second network branch, the clothing image can also be divided into multiple areas based on the geometric distribution of the clothing key points, such as the chest area, waist area, neckline area, cuff area, etc.

[0156] In addition, the second network branch can be subjected to multiple learning and training operations, and after multiple learning and training operations, the second network branch can be fixed. For example: after the second network branch is trained for 20 epochs, the second network branch can be fixed, at which time, the network of the first network branch is unfixed and training continues. This is repeated four times, and the first network branch for clothing key points is trained for a total of 12 epochs, and the second network branch for clothing retrieval is trained for a total of 80 epochs, so that regional learning features corresponding to clothing areas (clothing key points, location information corresponding to each clothing area, and the retrieval sorting information) can be obtained. By learning and training the regional learning features, regional attention information can be obtained. After all the regional attention information is obtained, a clothing retrieval model for clothing retrieval can be obtained based on all the regional attention information and the pre-set basic retrieval model.

[0157] Compared with the existing method of using clothing attribute information as attention, the method in this application embodiment has better stability. For samples with unclear attributes, the position information (geometric distribution) of the clothing image can still be accurately predicted by the network of clothing key points, thereby ensuring the accuracy and reliability of clothing retrieval.

[0158] Step 4: Determine the clothing retrieval model used to retrieve clothing based on the regional attention information corresponding to all clothing areas.

[0159] The regional attention information corresponding to all clothing regions is integrated, so that a clothing retrieval model for performing clothing retrieval operations can be obtained.

[0160] In this embodiment, by using HR-Net for clothing key point estimation and clothing feature extraction operations, specifically, by performing joint training on two network branches in HR-Net, a clothing retrieval model can be finally obtained. Compared with the Resnet network framework and mask-rcnn network framework in the prior art, the joint training in this embodiment involves the transfer of weights (attention) rather than simple loss accumulation, thereby ensuring the quality and accuracy of clothing retrieval; and the learning and training steps in this embodiment can be asynchronous, that is, the branch for key point estimation is trained first, and the attention information of clothing key points is transferred to the retrieval branch once every three epochs of training, thereby ensuring the effect of learning and training.

[0161] In addition, the application parts of the clothing retrieval model include:

[0162] step101: obtain a data retrieval request, which includes reference clothing information;

[0163] When applying the clothing retrieval model, a data retrieval request can be input into the clothing retrieval model, and the data retrieval request includes the image to be retrieved (reference clothing information), such as Fig.10 The short-sleeved T-shirt shown in.

[0164] step 102: performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information;

[0165] In order to be able to retrieve clothing of the same or similar styles as the reference clothing information from a database containing a large number of clothing samples. The reference clothing information can be preprocessed first, which includes clothing classification, detection and regional division. The classification of clothing can be completed by a target retrieval algorithm faster-rcnn network based on the Deepfashion2 dataset for learning and training, that is, the reference clothing information is analyzed and processed by the faster-rcnn network, so as to obtain the clothing classification corresponding to the reference clothing information. Among them, the faster-rcnn network can effectively classify 13 types of clothing including short-sleeved T-shirts, long-sleeved tops, long-sleeved jackets, dresses, etc. At the same time, faster-rcnn can give a labeling box for the detected clothing, and a reference clothing body is set in the labeling box to further eliminate irrelevant background information. After obtaining the clothing category and the reference clothing body, the number of key points of the clothing and its geometric arrangement rules can be determined according to the clothing category. For example Fig.10 As shown, there are 25 key points in the short-sleeved T-shirt category, so the clothing can be divided into five clothing areas: left and right cuffs, neckline, chest, and waist based on these 25 key points.

[0166] Step 103: Use the clothing retrieval model to perform retrieval processing on all reference areas to obtain clothing retrieval results corresponding to the reference clothing information.

[0167] After the preprocessing of the reference clothing information is completed, the clothing retrieval model trained by the learning part can be used to perform a retrieval operation, so as to obtain a clothing retrieval result corresponding to the reference clothing information. Among them, when the clothing retrieval result includes multiple retrieved clothing information, different annotation frames can be used to annotate different retrieved clothing information. For example, a dark-colored frame can be used to annotate the retrieved clothing information of the same style searched, and a light-colored frame can be used to annotate the retrieved clothing information of similar styles searched.

[0168] The data retrieval method provided in this application embodiment introduces an attention mechanism based on clothing key points, and uses the geometric information of clothing key points to guide the clothing retrieval network to perform feature similarity learning; a regional clothing retrieval method is proposed, which uses clothing key points to divide clothing into multiple clothing areas, and the definition accuracy of clothing areas is significantly improved, and then feature learning is performed for the regional attention information of the clothing areas respectively, and a clothing retrieval model for overall retrieval of clothing is obtained based on the regional attention information of all clothing areas, which effectively ensures the clothing retrieval effect. In addition, the method in this embodiment, by using HR-Net as the network framework for clothing key point estimation and clothing feature extraction, can achieve good results in the field on multiple mainstream clothing data sets. Specifically, when the method is applied to the mainstream data sets Deepfashion and Deepfashion2, the average accuracy map of at least 0.63 can be achieved in the clothing key point estimation part, which is a significant improvement compared to the map of 0.56 in the prior art. In the clothing retrieval part, the top 10 accuracy can reach at least 0.7, which is significantly improved compared to 0.57 in the existing technology. That is, this method has achieved good results in the current field both in model learning and training and in data retrieval, which further improves the practicality of the method and is conducive to market promotion and application.

[0169] Fig.11 A schematic diagram of a data processing device according to an embodiment of the present invention; Fig.11 As shown, this embodiment provides a data processing device, which can execute the above-mentioned data processing method. Specifically, the device may include: a first acquisition module 11, a first processing module 12 and a learning module 13.

[0170] A first acquisition module 11 is used to acquire a data set, wherein the data set includes a plurality of clothing images;

[0171] A first processing module 12 is used to determine a plurality of clothing regions included in the clothing image and position information corresponding to each clothing region;

[0172] A learning module 13 is used to perform learning and training on the clothing area and the position information corresponding to each clothing area to obtain the regional attention information corresponding to the clothing area;

[0173] The first processing module 12 is further used to determine a clothing retrieval model for retrieving clothing according to the regional attention information corresponding to all clothing regions.

[0174] Furthermore, when the first processing module 12 determines multiple clothing areas included in the clothing image and the position information corresponding to each clothing area, the first processing module 12 can be used to execute: processing the clothing image using a high-resolution deep neural network to obtain clothing key points included in the clothing image; determining multiple clothing areas included in the clothing image and the position information corresponding to each clothing area based on the clothing key points.

[0175] Furthermore, when the first processing module 12 performs learning and training on the clothing area and the position information corresponding to each clothing area to obtain the regional attention information corresponding to the clothing area, the first processing module 12 can be used to execute: using the clothing key points and the position information corresponding to each clothing area as attention parameters to perform learning and training to obtain the regional attention information corresponding to the clothing area.

[0176] Furthermore, when the first processing module 12 performs learning and training on clothing areas and the position information corresponding to each clothing area to obtain regional attention information corresponding to the clothing areas, the first processing module 12 can be used to execute: obtaining retrieval sorting information of clothing images in a data set; performing learning and training on clothing key points, the position information corresponding to each clothing area, and the retrieval sorting information to obtain regional attention information corresponding to the clothing areas.

[0177] Furthermore, when the first processing module 12 obtains the retrieval ranking information of the clothing image in the data set, the first processing module 12 can be used to execute: using a high-resolution deep neural network to perform similarity recognition processing on the clothing image to obtain the retrieval ranking information of the clothing image in the data set.

[0178] Furthermore, after obtaining the regional attention information corresponding to the clothing area, the first processing module 12 in this embodiment can be used to execute: using the loss function to calculate the retrieval accuracy of the regional attention information; when the retrieval accuracy does not meet the preset requirements, continue to learn and train the regional attention information; or, when the retrieval accuracy meets the preset requirements, allow the clothing retrieval model used for clothing retrieval to be determined based on the regional attention information corresponding to all clothing areas.

[0179] Furthermore, the first acquisition module 11 and the first processing module 12 in this embodiment can also be used to perform the following steps:

[0180] A first acquisition module 11 is used to acquire a data retrieval request, wherein the data retrieval request includes reference clothing information;

[0181] The first processing module 12 is used to perform region division processing on the reference clothing information to obtain reference regions corresponding to the reference clothing information; and perform retrieval processing on all reference regions using a clothing retrieval model to obtain clothing retrieval results corresponding to the reference clothing information.

[0182] Furthermore, before performing area division processing on the reference clothing information to obtain a reference area corresponding to the reference clothing information, the first processing module 12 in this embodiment is also used to: determine the clothing classification corresponding to the reference clothing information based on the reference clothing information; then, when the first processing module 12 performs area division processing on the reference clothing information to obtain a reference area corresponding to the reference clothing information, the first processing module 12 can be used to execute: performing area division processing on the reference clothing information based on the clothing classification to obtain a reference area corresponding to the reference clothing information.

[0183] Furthermore, when the first processing module 12 performs region division processing on the reference clothing information based on clothing classification to obtain a reference region corresponding to the reference clothing information, the first processing module 12 can be used to execute: determining the number of key points and key point arrangement information corresponding to the reference clothing information according to the clothing classification; performing region division processing on the reference clothing information according to the number of key points and the key point arrangement information to obtain a reference region corresponding to the reference clothing information.

[0184] Furthermore, the clothing search result includes multiple pieces of retrieved clothing information; the first acquisition module 11 and the first processing module 12 in this embodiment can also be used to perform the following steps:

[0185] A first acquisition module 11 is used to acquire the similarity between the reference clothing information and the searched clothing information;

[0186] The first processing module 12 is used to annotate the retrieved clothing information with a first annotation frame when the similarity is greater than or equal to a preset threshold; or to annotate the retrieved clothing information with a second annotation frame when the similarity is less than the preset threshold, and the second annotation frame is different from the first annotation frame.

[0187] Further, after obtaining the reference area corresponding to the reference clothing information, the first acquisition module 11 and the first processing module 12 in this embodiment can also be used to perform the following steps:

[0188] A first acquisition module 11 is used to acquire the visual attention corresponding to the reference area;

[0189] The first processing module 12 is used to perform retrieval processing on all reference areas according to the clothing retrieval model and visual attention, and obtain clothing retrieval results corresponding to the reference clothing information.

[0190] When the first acquisition module 11 acquires the visual attention corresponding to the reference area, the first acquisition module 11 can be used to execute: acquiring the attention point information input by the user for the reference area; and determining the visual attention corresponding to the reference area according to the attention point information.

[0191] Furthermore, after obtaining the visual attention corresponding to the reference area, the first processing module 12 in this embodiment can also be used to perform the following steps: determining clothing optimization information corresponding to the reference clothing information based on the visual attention; and optimizing the reference clothing information according to the clothing optimization information.

[0192] Fig.11 The device shown can perform Figure 1-Figure 10 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1-Figure 10 The implementation process and technical effects of this technical solution refer to Figure 1-Figure 10 The description in the illustrated embodiment will not be repeated here.

[0193] In one possible design, Fig.11 The structure of the data processing device shown can be implemented as an electronic device, which can be a mobile phone, a tablet computer, a server, or other devices. Fig.12 As shown, the electronic device may include: a first processor 21 and a first memory 22. The first memory 22 is used to store the electronic device to perform the above Figure 1-Figure 14 The program of the data processing method provided in the illustrated embodiment, the first processor 21 is configured to execute the program stored in the first memory 22.

[0194] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the first processor 21, the following steps can be implemented:

[0195] Obtain a data set, the data set including a plurality of clothing images;

[0196] Determine a plurality of clothing regions included in the clothing image and position information corresponding to each clothing region;

[0197] The clothing regions and the position information corresponding to each clothing region are trained and learned to obtain the regional attention information corresponding to the clothing regions;

[0198] A clothing retrieval model for retrieving clothing is determined based on regional attention information corresponding to all clothing regions.

[0199] Furthermore, the first processor 21 is also used to execute the aforementioned Figure 1-Figure 10 All or part of the steps in the illustrated embodiments.

[0200] The structure of the electronic device may further include a first communication interface 23 for the electronic device to communicate with other devices or a communication network.

[0201] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 1-Figure 10 The procedures involved in the data processing method in the method embodiment shown.

[0202] Fig.13 A schematic diagram of a data retrieval device according to an embodiment of the present invention; Fig.13 As shown, this embodiment provides a data retrieval device, which can execute the above data retrieval method. Specifically, the device may include: a second acquisition module 31, a second processing module 32 and a retrieval module 33.

[0203] A second acquisition module 31 is used to acquire a data retrieval request, wherein the data retrieval request includes reference clothing information;

[0204] The second processing module 32 is used to perform region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information;

[0205] The retrieval module 33 is used to perform retrieval processing on all reference areas using the clothing retrieval model to obtain clothing retrieval results corresponding to the reference clothing information.

[0206] Furthermore, before performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information, the second processing module 32 in this embodiment is also used to: determine the clothing classification corresponding to the reference clothing information based on the reference clothing information; then, when the second processing module 32 performs region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information, the second processing module 32 can be used to execute: performing region division processing on the reference clothing information based on the clothing classification to obtain a reference region corresponding to the reference clothing information.

[0207] Furthermore, when the second processing module 32 performs region division processing on the reference clothing information based on clothing classification to obtain a reference region corresponding to the reference clothing information, the second processing module 32 can be used to execute: determining the number of key points and key point arrangement information corresponding to the reference clothing information according to the clothing classification; performing region division processing on the reference clothing information according to the number of key points and the key point arrangement information to obtain a reference region corresponding to the reference clothing information.

[0208] Furthermore, the clothing search result includes a plurality of retrieved clothing information; the second acquisition module 31 and the second processing module 32 in this embodiment can also be used to perform the following steps:

[0209] A second acquisition module 31 is used to acquire the similarity between the reference clothing information and the searched clothing information;

[0210] The second processing module 32 is used to annotate the retrieved clothing information with a first annotation frame when the similarity is greater than or equal to a preset threshold; or to annotate the retrieved clothing information with a second annotation frame when the similarity is less than the preset threshold, and the second annotation frame is different from the first annotation frame.

[0211] Further, after obtaining the reference area corresponding to the reference clothing information, the second acquisition module 31 and the second processing module 32 in this embodiment can also be used to perform the following steps:

[0212] A second acquisition module 31 is used to acquire the visual attention corresponding to the reference area;

[0213] The second processing module 32 is used to perform retrieval processing on all reference areas according to the clothing retrieval model and visual attention, and obtain clothing retrieval results corresponding to the reference clothing information.

[0214] When the second acquisition module 31 acquires the visual attention corresponding to the reference area, the second acquisition module 31 can be used to execute: acquiring the attention point information input by the user for the reference area; and determining the visual attention corresponding to the reference area according to the attention point information.

[0215] Furthermore, after obtaining the visual attention corresponding to the reference area, the second processing module 32 in this embodiment can also be used to perform the following steps: determining clothing optimization information corresponding to the reference clothing information based on the visual attention; and optimizing the reference clothing information according to the clothing optimization information.

[0216] Fig.13 The device shown can execute the data retrieval method of the above embodiment. For the part not described in detail in this embodiment, please refer to the relevant description of the above embodiment. The execution process and technical effect of this technical solution refer to the description of the above embodiment, which will not be repeated here.

[0217] In one possible design, Fig.13 The structure of the data retrieval device shown can be implemented as an electronic device, which can be a mobile phone, a tablet computer, a server, or other devices. Fig.14 As shown, the electronic device may include: a second processor 41 and a second memory 42. The second memory 42 is used to store a program that supports the electronic device to execute the data retrieval method provided in the above embodiment, and the second processor 41 is configured to execute the program stored in the second memory 42.

[0218] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the second processor 41, the following steps can be implemented:

[0219] obtaining a data retrieval request, wherein the data retrieval request includes reference clothing information;

[0220] Performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information;

[0221] The clothing retrieval model is used to perform retrieval processing on all reference areas to obtain clothing retrieval results corresponding to the reference clothing information.

[0222] Furthermore, the second processor 41 is also used to execute all or part of the steps of the data retrieval method in the aforementioned embodiment.

[0223] The structure of the electronic device may further include a second communication interface 43 for the electronic device to communicate with other devices or a communication network.

[0224] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by an electronic device, which includes a program for executing the data retrieval method in the above embodiment.

[0225] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0226] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0227] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to produce a machine, so that the instructions executed by the processor of the computer or other programmable device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0228] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0229] These computer program instructions may also be loaded onto a computer or other programmable device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1A step that specifies a function in one or more boxes.

[0230] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0231] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0232] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0233] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data processing method, characterized in that: include: Acquire a data set, wherein the data set includes a plurality of clothing images; Determine a plurality of clothing regions included in the clothing image and position information corresponding to each clothing region; Performing learning and training on the clothing area and the position information corresponding to each clothing area to obtain regional attention information corresponding to the clothing area; Determining a clothing retrieval model for retrieving clothing according to regional attention information corresponding to all clothing regions; The clothing area and the position information corresponding to each clothing area are trained to obtain the regional attention information corresponding to the clothing area, including: Using a high-resolution deep neural network to perform similarity recognition on the clothing images, and obtain retrieval ranking information of the clothing images in the data set; The clothing key points, the position information corresponding to each clothing area and the retrieval sorting information are trained to obtain the regional attention information corresponding to the clothing area.

2. The method according to claim 1, characterized in that Determining a plurality of clothing regions included in the clothing image and position information corresponding to each clothing region includes: Processing the clothing image using a high-resolution deep neural network to obtain clothing key points included in the clothing image; A plurality of clothing regions included in the clothing image and position information corresponding to each clothing region are determined according to the clothing key points.

3. The method according to claim 2, characterized in that The clothing area and the position information corresponding to each clothing area are trained to obtain the regional attention information corresponding to the clothing area, including: The position information corresponding to the clothing key points and each clothing area is used as attention parameters for learning and training to obtain regional attention information corresponding to the clothing area.

4. The method according to any one of claims 1 to 3, characterized in that: After obtaining the regional attention information corresponding to the clothing region, the method further includes: Calculating the retrieval accuracy of the regional attention information using a loss function; When the retrieval accuracy rate does not meet the preset requirement, continue to learn and train the regional attention information; or, When the retrieval accuracy meets the preset requirement, it is allowed to determine the clothing retrieval model used for clothing retrieval according to the regional attention information corresponding to all clothing regions.

5. The method according to claim 4, comprising: Obtaining a data retrieval request, wherein the data retrieval request includes reference clothing information; Performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information; The clothing retrieval model is used to perform retrieval processing on all reference areas to obtain clothing retrieval results corresponding to the reference clothing information.

6. The method according to claim 5, characterized in that Before performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information, the method further includes: Determine the clothing category corresponding to the reference clothing information according to the reference clothing information; Performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information includes: The reference clothing information is subjected to region division processing based on the clothing classification to obtain a reference region corresponding to the reference clothing information.

7. The method according to claim 6, characterized in that Performing a region division process on the reference clothing information based on the clothing classification to obtain a reference region corresponding to the reference clothing information includes: Determine the number of key points and key point arrangement information corresponding to the reference clothing information according to the clothing classification; The reference clothing information is subjected to region division processing according to the number of key points and the key point arrangement information to obtain a reference region corresponding to the reference clothing information.

8. The method according to claim 5, characterized in that The clothing search result includes a plurality of retrieved clothing information; the method further includes: Obtaining the similarity between the reference clothing information and the retrieved clothing information; When the similarity is greater than or equal to a preset threshold, marking the retrieved clothing information with a first marking frame; or, When the similarity is less than a preset threshold, the retrieved clothing information is annotated with a second annotation frame, and the second annotation frame is different from the first annotation frame.

9. A data retrieval method, characterized in that: include: Obtaining a data retrieval request, wherein the data retrieval request includes reference clothing information; Performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information; Using the clothing retrieval model to perform retrieval processing on all reference areas to obtain clothing retrieval results corresponding to the reference clothing information; After obtaining the reference area corresponding to the reference clothing information, the method further includes: Acquiring a visual attention corresponding to the reference area; All reference areas are searched and processed according to the clothing search model and visual attention, so as to obtain clothing search results corresponding to the reference clothing information.

10. The method according to claim 9, characterized in that Before performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information, the method further includes: Determine the clothing category corresponding to the reference clothing information according to the reference clothing information; Performing region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information includes: The reference clothing information is subjected to region division processing based on the clothing classification to obtain a reference region corresponding to the reference clothing information.

11. The method according to claim 10, characterized in that Performing a region division process on the reference clothing information based on the clothing classification to obtain a reference region corresponding to the reference clothing information includes: Determine the number of key points and key point arrangement information corresponding to the reference clothing information according to the clothing classification; The reference clothing information is subjected to region division processing according to the number of key points and the key point arrangement information to obtain a reference region corresponding to the reference clothing information.

12. The method according to any one of claims 9 to 11, characterized in that: The clothing search result includes a plurality of retrieved clothing information; the method further includes: Obtaining the similarity between the reference clothing information and the retrieved clothing information; When the similarity is greater than or equal to a preset threshold, marking the retrieved clothing information with a first marking frame; or, When the similarity is less than a preset threshold, the retrieved clothing information is annotated with a second annotation frame, and the second annotation frame is different from the first annotation frame.

13. The method according to claim 9, characterized in that Obtaining a visual attention corresponding to the reference area, including: Acquire the focus point information input by the user for the reference area; The visual attention corresponding to the reference area is determined according to the attention point information.

14. The method according to claim 9, characterized in that After obtaining the visual attention corresponding to the reference area, the method further includes: determining clothing optimization information corresponding to the reference clothing information based on the visual attention; The reference clothing information is optimized according to the clothing optimization information.

15. A data processing device, characterized in that: include: A first acquisition module, used to acquire a data set, wherein the data set includes a plurality of clothing images; A first processing module, used for determining a plurality of clothing regions included in the clothing image and position information corresponding to each clothing region; A learning module, used for learning and training the clothing area and the position information corresponding to each clothing area, to obtain regional attention information corresponding to the clothing area; The first processing module is further used to determine a clothing retrieval model for retrieving clothing according to the regional attention information corresponding to all clothing regions; The learning module is used to: use a high-resolution deep neural network to perform similarity recognition on the clothing images to obtain retrieval ranking information of the clothing images in the data set; The clothing key points, the position information corresponding to each clothing area and the retrieval sorting information are trained to obtain the regional attention information corresponding to the clothing area.

16. An electronic device, characterized in that: include: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein when the one or more computer instructions are executed by the processor, the data processing method as described in any one of claims 1 to 8 is implemented.

17. A data retrieval device, characterized in that: include: A second acquisition module is used to acquire a data retrieval request, wherein the data retrieval request includes reference clothing information; A second processing module, configured to perform region division processing on the reference clothing information to obtain a reference region corresponding to the reference clothing information; A retrieval module, used to perform retrieval processing on all reference areas using a clothing retrieval model to obtain clothing retrieval results corresponding to the reference clothing information; After obtaining the reference area corresponding to the reference clothing information, The second acquisition module is used to acquire the visual attention corresponding to the reference area; The second processing module is used to perform retrieval processing on all reference areas according to the clothing retrieval model and visual attention, so as to obtain clothing retrieval results corresponding to the reference clothing information.

18. An electronic device, characterized in that: include: A memory and a processor; wherein the memory is used to store one or more computer instructions, wherein when the one or more computer instructions are executed by the processor, the data retrieval method as described in any one of claims 9 to 14 is implemented.

Citation Information

Patent Citations

  • High-precision clothing image retrieval method and system based on visual attention model

    CN107291945A

  • Garment attribute retrieval method based on deep convolutional neural network

    CN107330451A

  • Multi-channel topic model-based editable garment image search method

    CN107870992A

  • Cross-scene clothes retrieval method based on image rendering

    CN108109055A

  • Clothing image retrieval method based on convolutional neural network

    CN108614884A