Home material management method, electronic device and computer program product
By training the encoder of the home material library and generating an encoder that can extract features, it solves the problems of limitations and difficulty in expansion of the label system in the existing technology, and achieves efficient management of the home material library and flexible expansion of the label system.
Patent Information
- Application Number
- CN202410727838.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-24
AI Technical Summary
The existing home material library management method relies on a manually defined label system, which has rationality limitations, is error-prone, and is not easy to expand, resulting in high costs and the inability to effectively manage a large number of labels and label system changes in industrial scenarios.
By acquiring multiple household materials for training, including picture information and text description information, the encoder is trained to generate an encoder that can extract the characteristics of household materials, get rid of the restrictions of specific label systems, and realize the realization of material libraries under different label systems. Management, supporting the expansion of the tag system and the rapid classification and recommendation of new incoming materials.
It achieves accurate feature extraction and management of the home material library, supports label system expansion without retraining, reduces management costs, and improves management efficiency and accuracy.
Smart Images

Figure CN118690040A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field, and in particular to a method for managing household materials, an electronic device, and a computer program product. Background Art
[0002] At present, the management method for the home furnishing material library is that home furnishing design experts manually summarize a set of labeling systems based on their own experience, and then collect a batch of home furnishing material pictures, and organize labeling personnel to manually label these pictures according to the labeling system. Then the algorithm personnel use the labeled data to train the algorithm. This method relies on manually defining a limited set of labels. The labeling system itself has limitations in rationality. The number of labels in industrial scenes often reaches hundreds, and the human brain is prone to errors when distinguishing and standardizing. In addition, this method is not easy to expand. When the labeling system changes, the entire process needs to be repeated, which is costly. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a household material management method, electronic device and computer program product to accurately extract features under different labeling systems and realize effective management of material management libraries under different labeling systems.
[0004] In a first aspect, an embodiment of the present application provides a method for managing home furnishing materials, including:
[0005] Acquire a plurality of home furnishing materials for training, wherein the home furnishing materials for training include: picture information and text description information about the picture information;
[0006] Training the encoder according to the plurality of home materials for training to obtain a trained encoder;
[0007] Manage the library based on the trained encoder.
[0008] In the above implementation process, multiple home furnishing materials for training are directly obtained to get rid of the limitation of a specific label system, so that the trained encoder can be used to manage home furnishing materials under different label systems; the encoder is trained using image information and text description information about the image information. Compared with the prior art method of training the encoder using a single information, the encoder trained by this method can accurately extract the features of home furnishing materials. The encoder directly outputs a feature vector, which can be used to highly represent the features of home furnishing materials. Therefore, based on the trained encoder, accurate extraction of home furnishing materials in the material library can be achieved. When the label system of the material library is expanded, the encoder can still extract the features of different home furnishing materials in the home furnishing material library, and achieve effective management of the home furnishing material library without the need to retrain the encoder.
[0009] Furthermore, the home furnishing materials in the material library have attribute description information;
[0010] The managing the material library according to the trained encoder includes:
[0011] Extracting first graphic features of the material stored in the material library using the trained encoder;
[0012] Extracting second graphic features of new material in the material library by using the trained encoder;
[0013] Determining at least one stored reference material in the material library according to the similarity between the first image and text feature and the second image and text feature;
[0014] The attribute description information of the newly stored material is determined according to the attribute description information of the reference material.
[0015] In the above implementation process, the trained encoder can accurately extract the features of the material. The trained encoder is used to extract the first graphic feature of the material library and the second graphic feature of the newly stored material. The similarity between the first graphic feature and the second graphic feature represents the similarity of each attribute of the newly stored material and the stored reference material. Therefore, the attribute description information of the newly stored material can be determined based on the attribute description information of the reference material.
[0016] Furthermore, managing the material library according to the trained encoder includes:
[0017] Extracting first graphic features of the material stored in the material library using the trained encoder;
[0018] In response to a user's instruction to select a home furnishing stored in the material library, determining the home furnishing material selected by the user according to the instruction to select;
[0019] Similar home furnishing materials of the home furnishing material selected by the user are determined according to the similarity between the third graphic feature of the home furnishing material selected by the user and the first graphic feature of the material stored in the material library.
[0020] In the above implementation process, the trained encoder can accurately extract the features of the material, and the similarity between the third graphic feature of the home furnishing material selected by the user and the first graphic feature of the material stored in the material library can represent the similarity between the home furnishing material selected by the user and other home furnishing materials in the material library. Based on the above implementation, suitable home furnishing materials can be recommended to users.
[0021] Furthermore, the home furnishing materials in the material library have classification labels;
[0022] The managing the material library according to the trained encoder includes:
[0023] Using the trained encoder to obtain text features of all classification labels in the material library;
[0024] Using the trained encoder to obtain a third image feature of a newly stored home material in the material library;
[0025] The classification label of the newly stored home furnishing material is determined according to the similarity between the third image feature and the text feature.
[0026] In the above implementation process, since the home furnishing materials used for training are not obtained according to specific labels, when the label system is expanded, the trained encoder can be used to obtain the characteristics of the classification label and the third image characteristics of the newly stored home furnishing materials. The similarity between the text characteristics and the third image characteristics can represent the similarity between the newly stored home furnishing materials and all classification labels. Therefore, when the labels are expanded, there is no need to re-train the home furnishing materials, and the classification labels of the newly stored home furnishing materials can be automatically and quickly determined.
[0027] Furthermore, the home furnishing materials in the material library have attribute description information;
[0028] The managing the material library according to the trained encoder includes:
[0029] Extracting first graphic features of the material stored in the material library using the trained encoder;
[0030] In response to a user's instruction to select a home furnishing stored in the material library, determining the home furnishing material selected by the user according to the instruction to select;
[0031] The related home furnishing materials of the home furnishing material selected by the user are determined according to the correlation between the third graphic feature of the home furnishing material selected by the user and the first graphic feature of the material stored in the material library.
[0032] In the above implementation process, the trained encoder can extract the feature vectors of home furnishing materials. The correlation between home furnishing materials can be identified by the correlation between the feature vectors of home furnishing materials. Therefore, based on the correlation of the feature vectors, the related home furnishing materials of the home furnishing materials selected by the user can be accurately determined to improve the user experience.
[0033] Furthermore, the step of training the encoder according to the plurality of home materials for training to obtain the trained encoder comprises:
[0034] Acquire image features of the image information of the home material used for training;
[0035] Acquire text features of text description information about picture information of the home material used for training;
[0036] Combining the image features of the image information of the plurality of furniture materials for training and the text features of the plurality of furniture materials for training to obtain a plurality of feature combinations, each feature combination including: a picture feature and a text feature;
[0037] Determine a feature combination including the image feature and the text feature of the same home material used for training as a positive sample among the multiple feature combinations;
[0038] Determine a feature combination including a picture feature and a text feature of the same home material used for training as a negative sample among the multiple feature combinations;
[0039] The encoder is trained with the goal of maximizing the feature vector similarity of positive samples and minimizing the feature vector similarity of negative samples to obtain a trained encoder.
[0040] In the above implementation process, a feature combination including the picture feature and text feature of the same home furnishing material for training in multiple feature combinations is determined as a positive sample; a feature combination including the picture feature and text feature of the same home furnishing material for training in multiple feature combinations is determined as a negative sample; the encoder is trained with the goal of maximizing the feature vector similarity of the positive sample and minimizing the feature vector similarity of the negative sample, so that the trained encoder can accurately extract the features of the home furnishing material. The trained encoder can be used to accurately manage the material library later.
[0041] Furthermore, after obtaining a plurality of home materials for training, the method further includes:
[0042] Obtaining a degree of matching between the picture information of the plurality of home furnishing materials for training and text description information about the picture information;
[0043] The multiple home furnishing materials for training are cleaned according to the matching degree between the picture information of the multiple home furnishing materials for training and the text description information about the picture information.
[0044] In the above implementation process, a single feature is used to train the encoder. Due to factors such as incorrect description information and different description methods, the trained encoder cannot accurately extract the features of the home furnishing materials, which further leads to the inability to quickly determine the labels of newly stored materials in the label system expansion, and the inability to quickly determine similar home furnishing materials and related home furnishing materials selected by the user. The multiple home furnishing materials used for training are cleaned according to the matching degree between the image information of the multiple home furnishing materials used for training and the text description information about the image information, so that the trained encoder can accurately extract the features of the home furnishing materials.
[0045] Furthermore, the obtaining of a plurality of household materials for training includes:
[0046] Determine the multiple dimensions of home furnishing materials;
[0047] Get the descriptive keywords for each dimension of home furnishing materials;
[0048] Generate search statements for home furnishing materials based on descriptive keywords in multiple dimensions;
[0049] The plurality of home furnishing materials for training are acquired from a database according to a search statement for the home furnishing materials.
[0050] In the above implementation process, a search statement for home furnishing materials is generated based on descriptive keywords of multiple dimensions; the multiple home furnishing materials for training are obtained from the database based on the search statement for the home furnishing materials, thereby avoiding obtaining home furnishing materials under a specific label system, increasing the number and types of home furnishing materials for training, and enabling the trained encoder to accurately extract the features of the home furnishing materials.
[0051] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0052] In a third aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the method as described in any one of the first aspects.
[0053] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0054] And it can be implemented according to the contents of the specification. The following is a detailed description of the preferred embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 A flowchart of a method for managing household materials provided in an embodiment of the present application;
[0057] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0059] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0060] See also Figure 1 , the present application embodiment provides a method for managing home materials, including:
[0061] S1: Acquire a plurality of household materials for training, wherein the household materials for training include: picture information and text description information about the picture information;
[0062] S2: training the encoder according to the plurality of home materials for training to obtain a trained encoder;
[0063] S3: Manage the material library based on the trained encoder.
[0064] In the above embodiment, the picture information is a picture including home furnishing materials, and the home furnishing materials may include: sofas, coffee tables, carpets, bedside tables, etc. The text description information of the picture information may include: the title, description, attributes and other text of the picture including the home furnishing materials. The encoder may be: a neural network, and this application does not specifically limit the encoder. The encoder includes: an image encoder and a text encoder. In S2, the image encoder is trained using the picture information of the home furnishing materials used for training to obtain a trained image encoder, and the text encoder is trained using the text information of the home furnishing materials used for training to obtain a trained text encoder.
[0065] In some embodiments, S3: may include: obtaining a first graphic feature in the home material library according to the trained encoder, obtaining a classification label of the material to be stored according to the first graphic feature, etc.
[0066] For example, the trained encoder is used to extract graphic features from the home furnishing materials in the material library and store them in the vector retrieval library Milvus. Through the retrieval method, scalable material classification and semantic material recommendation are performed.
[0067] In some embodiments, the image and text features may include: picture features output by an image encoder and / or text features output by a text encoder.
[0068] In some embodiments, the image-text features may include: combined features obtained based on the image features output by the image encoder and the text features output by the text encoder.
[0069] In some embodiments, the combined feature can be obtained in the following manner: C=aA+bB, where a is the weight corresponding to the image feature, b is the weight corresponding to the text feature, B is the text feature, and C is the combined feature.
[0070] In the above implementation process, multiple home furnishing materials for training are directly obtained to get rid of the limitation of a specific label system, so that the trained encoder can be used to manage home furnishing materials under different label systems; the encoder is trained using image information and text description information about the image information. Compared with the prior art method of training the encoder using a single information, the encoder trained by this method can accurately extract the features of home furnishing materials. The encoder directly outputs a feature vector, which can be used to highly represent the features of home furnishing materials. Therefore, based on the trained encoder, accurate extraction of home furnishing materials in the material library can be achieved. When the label system of the material library is expanded, the encoder can still extract the features of different home furnishing materials in the home furnishing material library, and achieve effective management of the home furnishing material library without the need to retrain the encoder.
[0071] In some embodiments, home furnishing materials can be obtained by the following method: determining multiple dimensions of home furnishing materials; obtaining descriptive keywords for each dimension of home furnishing materials; generating search statements for home furnishing materials based on the descriptive keywords for multiple dimensions; and obtaining the multiple home furnishing materials for training in a database based on the search statements for the home furnishing materials.
[0072] In the above embodiment, the dimensions may include: style, color, shape, material, category, etc. Exemplarily, the description keywords corresponding to the style may be ancient style, modern style, etc. The database may be a database corresponding to the search engine. By combining one or more description keywords of one or more dimensions, a search statement for home furnishing materials may be generated.
[0073] In the above implementation process, a search statement for home furnishing materials is generated based on descriptive keywords of multiple dimensions; the multiple home furnishing materials for training are obtained from the database based on the search statement for the home furnishing materials, thereby avoiding obtaining home furnishing materials under a specific label system, increasing the number and types of home furnishing materials for training, and enabling the trained encoder to accurately extract the features of the home furnishing materials.
[0074] In some embodiments, the household materials in the material library have attribute description information; the management of the material library according to the trained encoder includes: using the trained encoder to extract the first graphic features of the materials stored in the material library; using the trained encoder to extract the second graphic features of the newly stored materials in the material library; determining at least one stored reference material in the material library according to the similarity between the first graphic features and the second graphic features; and determining the attribute description information of the newly stored material according to the attribute description information of the reference material.
[0075] In some embodiments, the attribute description information may be a classification label.
[0076] It can be understood that in the embodiment of the present application, the feature is in the form of a vector.
[0077] In some embodiments, the cosine similarity between the image and text features may be used to represent the similarity between the image and text features.
[0078] For example, when the classification label of the material library is a fixed label system classification, for the newly stored material, its image and text features are extracted, and its image and text features are used to perform similarity search in the vector search library to obtain N most similar materials. The voting method is used among these N materials to determine the category of the new material. In this way, the newly stored materials can be automatically labeled quickly, lightly, and with high quality, including their semantic attributes such as category, style, color, material, shape, etc.
[0079] In the above implementation process, the trained encoder can accurately extract the features of the material. The trained encoder is used to extract the first graphic feature of the material library and the second graphic feature of the newly stored material. The similarity between the first graphic feature and the second graphic feature represents the similarity of each attribute of the newly stored material and the stored reference material. Therefore, the attribute description information of the newly stored material can be determined based on the attribute description information of the reference material.
[0080] In some embodiments, managing the material library according to the trained encoder includes:
[0081] The trained encoder is used to extract the first graphic feature of the material stored in the material library; in response to the user's selection instruction for the home furnishings stored in the material library, the home furnishings selected by the user are determined according to the selection instruction; and similar home furnishings materials to the home furnishings selected by the user are determined according to the similarity between the third graphic feature of the home furnishings selected by the user and the first graphic feature of the material stored in the material library.
[0082] Exemplarily, when a user clicks on a certain material, the feature vector of the material is used to retrieve similar materials with similar semantics and style from a vector retrieval library and recommend them to the user.
[0083] In the above implementation process, the trained encoder can accurately extract the features of the material, and the similarity between the third graphic feature of the home furnishing material selected by the user and the first graphic feature of the material stored in the material library can represent the similarity between the home furnishing material selected by the user and other home furnishing materials in the material library. Based on the above implementation, suitable home furnishing materials can be recommended to users.
[0084] In some embodiments, the home furnishing materials in the material library have classification labels; the graphic features include: text features and image features; the management of the material library based on the trained encoder includes: using the trained encoder to obtain the text features of all classification labels of the material library; using the trained encoder to obtain the third image features of the newly stored home furnishing materials in the material library; determining the classification label of the newly stored home furnishing materials based on the similarity between the third image features and the text features.
[0085] Exemplarily, when the label system is expanded, it is only necessary to extract the image feature vectors of the newly added material or the original material in the material library and the text feature vectors of all text labels, and calculate the cosine similarity. The one with the largest similarity is the new label corresponding to the newly added material.
[0086] It is understandable that a home material can have multiple category tags.
[0087] In the above implementation process, since the home furnishing materials used for training are not obtained according to specific labels, when the label system is expanded, the trained encoder can be used to obtain the characteristics of the classification label and the third image characteristics of the newly stored home furnishing materials. The similarity between the text characteristics and the third image characteristics can represent the similarity between the newly stored home furnishing materials and all classification labels. Therefore, when the labels are expanded, there is no need to re-train the home furnishing materials, and the classification labels of the newly stored home furnishing materials can be automatically and quickly determined.
[0088] In some embodiments, the home furnishing materials in the material library have attribute description information; the management of the material library according to the trained encoder includes: using the trained encoder to extract the first graphic feature of the material stored in the material library; responding to the user's selection instruction for the home furnishing stored in the material library, determining the home furnishing material selected by the user according to the selection instruction; determining the related home furnishing material of the home furnishing material selected by the user according to the correlation between the third graphic feature of the home furnishing material selected by the user and the first graphic feature of the material stored in the material library.
[0089] In some embodiments, a relevance acquisition model can be constructed to obtain training data, and data cleaning and labeling can be performed using deduplication, abnormal data filtering, threshold filtering and other measures to obtain image-text sample pairs with different relevances. The image-text pairs with different relevances are used to train the relevance acquisition model to obtain a trained relevance acquisition model. Subsequently, related home furnishing materials of the home furnishing materials selected by the user can be obtained based on the trained relevance acquisition model and the third image-text features of the home furnishing materials selected by the user.
[0090] For example, when a user clicks on a certain material, other related materials can be recommended. For example, if a user clicks on a sofa, coffee tables, TV cabinets, and leisure chairs can be recommended. Through the special properties of the feature vector, related materials with consistent semantic style and high aesthetics can be recommended.
[0091] In the above implementation process, the trained encoder can extract the feature vectors of home furnishing materials. The correlation between home furnishing materials can be identified by the correlation between the feature vectors of home furnishing materials. Therefore, based on the correlation of the feature vectors, the related home furnishing materials of the home furnishing materials selected by the user can be accurately determined to improve the user experience.
[0092] In some embodiments, the encoder is trained according to the multiple home furnishing materials for training to obtain a trained encoder; including: obtaining image features of the image information of the home furnishing materials for training; obtaining text features of the text description information about the image information of the home furnishing materials for training; combining the image features of the image information of the multiple home furnishing materials for training and the text features of the multiple home furnishing materials for training to obtain multiple groups of feature combinations, each feature combination including: an image feature and a text feature; determining a feature combination including the image features and text features of the same home furnishing material for training in the multiple feature combinations as a positive sample; determining a feature combination including the image features and text features of the same home furnishing material for training in the multiple feature combinations as a negative sample; training the encoder with the goal of maximizing the feature vector similarity of positive samples and minimizing the feature vector similarity of negative samples to obtain a trained encoder.
[0093] For example, the picture and text feature pairs of home furnishing materials are input into the model, the picture is output through the picture encoder to output the picture vector feature, and the text is output through the text encoder to output the text feature. The cosine similarity of the picture and text feature vectors between different samples is calculated, the cosine similarity of the positive sample is maximized, and the cosine similarity of the negative sample is minimized. The cross entropy loss function is set as the objective function, and the training ends when the loss reaches convergence.
[0094] The sample construction method includes: in the same batch, the feature combination of the image feature and the text feature of the same home furnishing material used for training is determined as a positive sample; and the feature combination including the image feature and the text feature of the same home furnishing material used for training in multiple feature combinations is determined as a negative sample. When the batch size is N, N squared samples are generated in a batch, including N positive samples and N negative samples. 2 -N. Model input: image-text sample pairs, model output: image-text feature vectors.
[0095] In the above implementation process, a feature combination including the picture feature and text feature of the same home furnishing material for training in multiple feature combinations is determined as a positive sample; a feature combination including the picture feature and text feature of the same home furnishing material for training in multiple feature combinations is determined as a negative sample; the encoder is trained with the goal of maximizing the feature vector similarity of the positive sample and minimizing the feature vector similarity of the negative sample, so that the trained encoder can accurately extract the features of the home furnishing material. The trained encoder can be used to accurately manage the material library later.
[0096] In summary, the management method of home furnishing materials provided by the present application has at least the following beneficial effects: when the label is expanded, the newly added label can be directly marked by its semantic similarity through the high generalization of the image and text semantics. There is no need to re-collect the data set or re-train. The data processing process is fully automated, does not require manual standards, and builds a large number of high-quality samples at low cost. And because of its high scalability, when the label system is expanded, there is no need to annotate samples and retrain for the newly added labels again, which greatly reduces the cost. Due to the limitation of its label content, the original method has a very sparse supervisory signal and can only learn limited semantic information within the label system. In the method of the present application, the supervisory signal of the sample comes from its text description, which can be semantic information of any dimension. The learned semantics are richer and higher quality, which greatly improves its generalization.
[0097] This application also provides an electronic device, see Figure 2 , Figure 2A block diagram of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 21, a communication interface 22, a memory 23, and at least one communication bus 24. The communication bus 24 is used to realize direct connection and communication between these components. The communication interface 22 of the electronic device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 21 may be an integrated circuit chip with signal processing capabilities.
[0098] The processor 21 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 21 can also be any conventional processor, etc.
[0099] The memory 23 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 23 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 21, the electronic device may execute the various steps involved in the above method embodiment.
[0100] Optionally, the electronic device may further include a storage controller and an input / output unit.
[0101] The memory 23, storage controller, processor 21, peripheral interface, input and output unit components are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 24. The processor 21 is used to execute executable modules stored in the memory 23, such as software function modules or computer programs included in the electronic device.
[0102] The input and output unit is used to provide users with the task creation and to create an optional time period or preset execution time for the task to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0103] Understandably, Figure 2 The structure shown is for illustration only. The electronic device may also include Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown. Figure 2 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0104] The embodiment of the present application also provides a computer-readable storage medium, on which instructions are stored. When the instructions are run on a computer, the method of the method embodiment is implemented when the computer program is executed by the processor. To avoid repetition, it will not be described here.
[0105] The embodiment of the present application also provides a computer program product. When the computer program product is executed on a computer, the computer executes the method described in the method embodiment.
[0106] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0107] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0108] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0109] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0110] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0111] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for managing household materials, characterized in that: include: Acquire a plurality of home furnishing materials for training, wherein the home furnishing materials for training include: picture information and text description information about the picture information; Training the encoder according to the plurality of home materials for training to obtain a trained encoder; Manage the library based on the trained encoder.
2. The method for managing household materials according to claim 1, characterized in that: The home furnishing materials in the material library have attribute description information; The managing the material library according to the trained encoder includes: Extracting first graphic features of the material stored in the material library using the trained encoder; Extracting second graphic features of new material in the material library by using the trained encoder; Determining at least one stored reference material in the material library according to the similarity between the first image and text feature and the second image and text feature; The attribute description information of the newly stored material is determined according to the attribute description information of the reference material.
3. The method for managing household materials according to claim 2, characterized in that: The managing the material library according to the trained encoder includes: Extracting first graphic features of the material stored in the material library using the trained encoder; In response to a user's instruction to select a home furnishing stored in the material library, determining the home furnishing material selected by the user according to the instruction to select; Similar home furnishing materials of the home furnishing material selected by the user are determined according to the similarity between the third graphic feature of the home furnishing material selected by the user and the first graphic feature of the material stored in the material library.
4. The method for managing household materials according to claim 1, characterized in that: The home furnishing materials in the material library have classification labels; The managing the material library according to the trained encoder includes: Using the trained encoder to obtain text features of all classification labels in the material library; Using the trained encoder to obtain a third image feature of a newly stored home material in the material library; The classification label of the newly stored home furnishing material is determined according to the similarity between the third image feature and the text feature.
5. The method for managing household materials according to claim 1, characterized in that: The managing the material library according to the trained encoder includes: Extracting first graphic features of the material stored in the material library using the trained encoder; In response to a user's instruction to select a home furnishing stored in the material library, determining the home furnishing material selected by the user according to the instruction to select; Similar home furnishing materials to the home furnishing material selected by the user are determined according to the correlation between the third graphic feature of the home furnishing material selected by the user and the first graphic feature of the material stored in the material library.
6. The method for managing household materials according to claim 1, characterized in that: The step of training the encoder according to the plurality of home materials for training to obtain the trained encoder comprises: Acquire image features of the image information of the home material used for training; Acquire text features of text description information about picture information of the home material used for training; Combining the image features of the image information of the plurality of furniture materials for training and the text features of the plurality of furniture materials for training to obtain a plurality of feature combinations, each feature combination including: a picture feature and a text feature; Determine a feature combination including the image feature and the text feature of the same home material used for training as a positive sample among the multiple feature combinations; Determine a feature combination including a picture feature and a text feature of the same home material used for training as a negative sample among the multiple feature combinations; The encoder is trained with the goal of maximizing the feature vector similarity of positive samples and minimizing the feature vector similarity of negative samples to obtain a trained encoder.
7. The method for managing household materials according to claim 1, characterized in that: After obtaining a plurality of home materials for training, the method further includes: Obtaining a degree of matching between the picture information of the plurality of home furnishing materials for training and text description information about the picture information; The multiple home furnishing materials for training are cleaned according to the matching degree between the picture information of the multiple home furnishing materials for training and the text description information about the picture information.
8. The method for managing household materials according to claim 6, characterized in that: The step of obtaining a plurality of household materials for training includes: Determine the multiple dimensions of home furnishing materials; Get the descriptive keywords for each dimension of home furnishing materials; Generate search statements for home furnishing materials based on descriptive keywords in multiple dimensions; The plurality of home furnishing materials for training are acquired from a database according to a search statement for the home furnishing materials.
9. An electronic device, characterized in that: The method comprises: comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 8.
Citation Information
Cited By
3D online self-service packaging system based on artificial intelligence
CN119417198A
