Method, device, electronic device and storage medium for generating home layout

By combining the language model and the two-way language model, the problem that the smart home layout model is difficult to meet the user's personalized needs is solved, a home layout diagram that meets the user's layout needs is generated, the home design efficiency and user experience are improved, and intelligent, Convenient home services.

CN117312527BActive Publication Date: 2024-09-27HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311437249.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2024-09-27
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

Existing smart home layout models are difficult to meet users' personalized layout needs, resulting in low efficiency in home design.

Method used

By building a language model, the user's layout requirement information is formatted and translated into layout constraints identifiable by the smart home layout model, and a home layout diagram is generated based on the bidirectional language model to meet the user's personalized needs.

Benefits of technology

It improves the efficiency and user experience of home design, provides more intelligent, convenient and personalized smart home services, and forms a new and complete text dialogue furniture layout system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117312527B
    Figure CN117312527B
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic device and storage medium for generating a home layout. It relates to the field of artificial intelligence. The method includes: constructing first input information of a language model in response to the user's layout requirement information, the first input information including layout requirement information and prompt information; inputting the first input information into the language model so that the language model understands the layout requirement information under the guidance of the prompt information, and reorganizes the language of the layout requirement information according to the requirements of the smart home layout model to obtain layout constraints; processing the layout constraints and the user's target floor plan based on the smart home layout model to obtain a home layout diagram output by the smart home layout model. In the embodiment of the present disclosure, the language model and the smart home layout model are combined to form a new and complete text-based conversational furniture layout system, which can provide users with more intelligent, convenient and personalized smart home services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence, and in particular to technical fields such as large models and smart home design. Background Art

[0002] With the development of artificial intelligence technology, its application in various industries has attracted widespread attention. Smart home design is also one of the application areas of artificial intelligence technology. In this field, the smart home layout model can be used to obtain the home layout map. However, the use of the smart home layout model is limited, and a feasible way is needed to improve the efficiency of smart home design. Summary of the invention

[0003] The present disclosure provides a method, device, electronic device and storage medium for generating a home layout to solve or alleviate one or more technical problems in the prior art.

[0004] In a first aspect, the present disclosure provides a method for generating a home layout, comprising:

[0005] In response to the user's layout requirement information, first input information of the language model is constructed, wherein the first input information includes the layout requirement information and the prompt information;

[0006] Inputting the first input information into the language model, so that the language model understands the layout requirement information under the guidance of the prompt information, and reorganizes the language of the layout requirement information according to the requirements of the smart home layout model to obtain the layout constraints;

[0007] Based on the smart home layout model, the layout constraints and the user's target floor plan are processed to obtain a home layout map output by the smart home layout model.

[0008] In a second aspect, the present disclosure provides a device for generating a home layout, comprising:

[0009] A construction module, configured to construct first input information of a language model in response to layout requirement information of a user, wherein the first input information includes layout requirement information and prompt information;

[0010] An input module, used for inputting the first input information into the language model, so that the language model understands the layout requirement information under the guidance of the prompt information, and reorganizes the language of the layout requirement information according to the requirements of the smart home layout model to obtain the layout constraints;

[0011] The generation module is used to process the layout constraints and the user's target floor plan based on the smart home layout model to obtain the home layout map output by the smart home layout model.

[0012] In a third aspect, an electronic device is provided, including:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0016] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.

[0017] In a fifth aspect, a computer program product is provided, comprising a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.

[0018] In the disclosed embodiment, the language model and the smart home layout model are combined together to form a new and complete text-based conversational furniture layout system, which can provide users with more intelligent, convenient and personalized smart home services.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.

[0021] Figure 1a is a scene schematic diagram of a method for generating a home layout according to an embodiment of the present disclosure;

[0022] Figure 1b is a flow chart of a method for generating a home layout according to an embodiment of the present disclosure;

[0023] Figure 2 is a schematic diagram of a smart home layout model according to an embodiment of the present disclosure;

[0024] Figure 3 is a schematic diagram of calculating similarity according to an embodiment of the present disclosure;

[0025] Figure 4 is a schematic diagram of the overall process of a method for generating a home layout according to an embodiment of the present disclosure;

[0026] Figure 5 is a structural schematic diagram of a device for generating a home layout according to an embodiment of the present disclosure;

[0027] Figure 6 It is a block diagram of an electronic device used to implement the method for generating a home layout according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0029] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.

[0030] In the related art, a variety of floor plans can be generated based on the smart home layout model, which is difficult to meet the layout needs of users. Therefore, the embodiments of the present disclosure can fully consider the personalized layout needs of users, so that the smart home layout model can accurately understand the user's intention and generate a suitable home layout. Figure 1a The following is a schematic diagram of the scenario in which this method is applied. Figure 1a The system includes a server 11 and a terminal device 12.

[0031] Among them, the terminal device 12 and the server 11 are connected through a wireless or wired network, and the terminal device 12 includes but is not limited to electronic devices such as desktop computers, mobile phones, mobile computers, tablet computers, media players, smart wearable devices, smart TVs, etc. The server 11 can be a single server, a server cluster consisting of several servers, or a cloud computing center. The server 11 can be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal device 12 is used to receive the user's layout requirement information and send it to the server 11 for processing to obtain a home layout diagram and display it to the user.

[0032] Of course, if the computing resources of the terminal device 12 itself allow, the terminal device 12 can also obtain and process the layout requirement information and output the home layout diagram.

[0033] In the embodiment of the present disclosure, a method for generating a home layout is proposed. Since the use of the smart home layout model is limited, a language model can be used to format and transcribe the user's layout requirement information to obtain layout constraints that can be recognized by the smart home layout model, and then obtain a home layout diagram. Figure 1b As shown, it can be implemented as:

[0034] S101 , constructing first input information of a language model in response to layout requirement information of a user, where the first input information includes layout requirement information and prompt information.

[0035] The user's layout requirement information may include background information of the target apartment, such as the building area, number of rooms, etc. It may also include the user's home design requirements, such as "I want more storage space", "the bed in the master bedroom should be bigger", etc.

[0036] The user's layout requirement information may be text obtained by voice conversion or a document, which is not limited in the embodiments of the present disclosure.

[0037] Among them, the language model can be a large language model (Large Language Models, LLMs). Large language models refer to a specific type of large model that is specifically used to process text data. This type of model is a natural language processing model based on a neural network, which can be used to generate, understand and process text data. Large language models can have tens of billions of parameters, can generate high-quality text, and can be used for various natural language processing tasks, such as question answering, text generation, dialogue systems, etc.

[0038] The large language model has good reasoning ability and small sample learning ability. The large language model can understand the model on a large scale or can be trained on a large number of samples. Based on the large model, accurate semantic understanding can be achieved.

[0039] During implementation, since target users may express layout requirements in various ways, the first input information of the language model may be constructed based on a prompt, where the prompt includes prompt information including an output format and / or reference examples of layout constraints.

[0040] In the disclosed embodiment, based on the output format and / or reference examples of the layout constraints in the prompt information, the powerful learning ability of the large language model is utilized, and the layout constraints that meet the requirements of the smart home layout model can be obtained based on the output format and / or reference examples.

[0041] Of course, in order to enable the language model to better understand the user's layout requirement information, the prompt information may also include role definitions.

[0042] In a conversation, the user usually plays a specific role, while the language model plays another pre-defined role. This role positioning can help the model better understand the user's intentions and context and respond in an appropriate manner. For example, the language model can be used to play the role of a virtual interior designer to help users realize the layout design of their homes.

[0043] When the prompt information includes role definition and output format, the first input information for constructing the language model may be as shown in the following example:

[0044] Role definition: The language model is a virtual interior designer named Xiao Y, who focuses on helping users realize the transformation from natural language to layout.

[0045] The user's layout requirements: "My wife likes to watch TV in the room", "I like to read in the room", "I want some green plants in the bedroom", "I want more storage space in the bedroom". Now the customer has a house to be designed. The building area is XX square meters, with a total of X rooms, X halls, X kitchens, and X bathrooms.

[0046] Output format: Please output the furniture layout design in the format of \"furniture and furniture quantity\" in JSON format.

[0047] Of course, there can be only one reference example and output format in the prompt information. In order to ensure the format of the layout constraints, the prompt information can include reference examples and output formats. The role of the reference example is to provide contextual guidance for the language model, helping the model to better understand the user's intentions and generate accurate responses. Through the reference examples, the model can learn the mode of the conversation and the expected answer format to ensure the consistency of the answers. In order to further ensure the format of the generated layout constraints, the output format can be used to further constrain the generated layout constraints.

[0048] S102: input the first input information into the language model, so that the language model understands the layout requirement information under the guidance of the prompt information, and reorganizes the language of the layout requirement information according to the requirements of the smart home layout model to obtain layout constraints.

[0049] Of course, it should be noted that the layout constraints include at least one of the following information: room number of the target apartment, home category, and the number of each home category.

[0050] Still taking the above example, when the layout constraints include home categories and the quantity of each home category, the layout constraints required by the output format are: {"bed":1,"wardrobe":1,"bedside table":2,"TV":1,"desk":1,"green plant":1}.

[0051] When the layout constraints include the room numbers of the target apartment, each room can be assigned a number in the background requirements, with the master bedroom numbered 101, the second bedroom numbered 102, the living room numbered 103, the kitchen numbered 104, and the bathroom numbered 105.

[0052] If the user's layout requirement information is "I think the bed in the master bedroom can be bigger" and "I like to read in my room", the resulting layout constraints may be: {101: {"bed":1,"desk":1}}

[0053] In addition to the aforementioned layout constraints, the layout constraints may also include at least one of the following: home location, home size, and home orientation.

[0054] For example, the user's layout requirement information is "I want the desk to be larger, and it would be better if the desk is close to the window so that it is brighter."

[0055] Of course, the content included in the layout constraints can be adaptively changed based on actual conditions, and the embodiments of the present disclosure are not limited to this.

[0056] S103, processing layout constraints and the user's target floor plan based on the smart home layout model to obtain a home layout map output by the smart home layout model.

[0057] Among them, the smart home layout model can be based on a bidirectional language model. Only information such as category and quantity is needed to more accurately describe the layout result of a piece of furniture. In other words, the layout content of a space can be described by a series of sequences. The expression of the sequence is the same as the aforementioned layout constraints. The bidirectional model can start processing from any position in the sequence, which also allows users to constrain the design results more conveniently. In addition, since the values ​​of each sequence position in the bidirectional model are sampled from the corresponding probability distribution, the diversity of the layout is significantly improved.

[0058] like Figure 2As shown, when the layout constraints meet the format requirements of the smart home layout model, the layout constraints and the user's target floor plan can be input into the bidirectional language model (i.e., the smart home layout model) to generate a probability distribution of the placement positions of each home, which is sampled to obtain an output sequence of the placement positions of each home, and rendered based on the output sequence to obtain a visualized home layout diagram.

[0059] In the disclosed embodiment, based on the powerful language comprehension ability of the language model, the layout requirement information is understood under the guidance of the prompt information, and the language of the layout requirement information is reorganized according to the requirements of the smart home layout model to obtain layout constraints, which is equivalent to a formatted paraphrase of the user's layout requirement information. Therefore, the user's layout requirement information is aligned with the input of the smart home layout model using the language model, and the resulting home layout diagram not only takes into account the user's personalized layout requirements, but also enables the smart home layout model to better understand the user's intentions through the conversion of the voice model. As a result, not only the user experience is improved, but the language model and the smart home layout model are combined together to form a new and complete text-based conversational furniture layout system, which can provide users with more intelligent, convenient and personalized smart home services.

[0060] In some embodiments, when the layout constraints include home categories, the layout constraints and the user's target floor plan are processed based on the smart home layout model to obtain a home layout map output by the smart home layout model, which can be implemented as follows:

[0061] Step A1, determining the first word vector of the home category in the layout constraints.

[0062] The words belonging to the home category in the layout constraints are encoded through a deep neural network model to obtain a first word vector. For example, the neural network model can use a pre-trained Bert model.

[0063] Step A2, determining the similarity between the first word vector and the second word vector of each candidate category in the candidate category set.

[0064] When implementing, Figure 3 As shown, the home category in the layout constraint and each candidate category can be input into the pre-trained Bert model to obtain the first word vector and the second word vector, and the similarity between the first word vector and the second word vector is calculated. The similarity can be calculated by Euclidean distance, cosine similarity, Pearson correlation coefficient, adjusted cosine similarity, Hamming distance, Manhattan distance, etc.

[0065] Among them, since extracting word vectors for each candidate category each time may waste computer resources, the second word vector of each candidate category in the candidate category set can be saved in a preset library. When the first word vector is obtained, the similarity is calculated with each second word vector in the preset library to obtain the similarity between the two.

[0066] Step A3: Use the candidate category with the highest similarity to the first word vector to update the home category in the layout constraints.

[0067] Due to differences in language or expression, in the disclosed embodiment, word embedding can be used to obtain word vectors for candidate categories and home categories. Word embedding is a technique for mapping words to a continuous vector space, which can capture the semantic and grammatical relationships between words. By calculating the similarity between word embeddings, the candidate category with the highest similarity to the first word vector can be selected, and the home category in the layout constraint can be updated.

[0068] For example, the dialect calls chairs "pile", and the layout constraint is {"pile":2}. The home category in the layout constraint is "stool", and the candidate category with the highest similarity to the first word vector is "chair". Therefore, in order to further standardize the layout constraints, the home categories in the layout constraints can be described in a unified manner.

[0069] Step A4, inputting the updated layout constraints and the target floor plan into the smart home layout model to obtain a home layout diagram output by the smart home layout model.

[0070] In the disclosed embodiment, due to differences in the way users express themselves, the home categories in the layout constraints are unified by calculating similarity, so that the smart home layout model can parse the layout constraints and thus meet the user's expected home layout diagram.

[0071] In some embodiments, since the needs of users are diverse and will change over time, and the style resources of home layout are limited, when limited resources are used to meet the unlimited needs of users, preset low-frequency home categories can be used for layout. When the layout constraints include preset low-frequency home categories, the target homes of the preset low-frequency home categories are arranged based on the preset layout rules corresponding to the preset low-frequency home categories, so as to layout the target homes of the preset low-frequency home categories into the home layout diagram.

[0072] Among them, if the user's layout requirement information includes "I want to put a sofa in the bedroom", the preset low-frequency home category may be "the sofa in the bedroom".

[0073] Among them, arranging the target homes of the preset low-frequency home furnishing category based on the preset layout rules corresponding to the preset low-frequency home furnishing category can be implemented as follows:

[0074] Step B1, based on the default layout mode in the preset layout rules, layout the target home furnishings of the preset low-frequency home furnishing categories into the home furnishing layout diagram to obtain the layout diagram to be optimized.

[0075] Let's take the preset low-frequency home category "sofa in the bedroom" as an example. The target home is the sofa, and the placement is the bedroom. The default layout method in the preset layout rules is to use one of the home furnishings in the bedroom as a reference for layout. Taking the bed as a reference, map the top left corner of the bed to the wall where the sofa is placed, translate and scale it, and get the placement of the sofa.

[0076] Of course, other points of the bed or other furniture in the bedroom may be selected as reference objects, and this embodiment of the present disclosure does not limit this.

[0077] Step B2, performing anti-collision detection between the target home and other homes in the layout diagram to be optimized.

[0078] Step B3: when it is determined that the target home collides with other homes, adjust the layout of the target home so that the target home and other homes are arranged reasonably.

[0079] The sofa is modeled as a box and compared with other furniture in the bedroom. Anti-collision detection is used. If there is no collision, the placement of the target furniture is determined. If it is determined that the target furniture collides with other furniture, the target furniture is translated based on the minimum separation axis to obtain a layout that meets the placement conditions. If the target furniture still cannot be placed in a reasonable position after adjustment, the size of the target furniture can be scaled to ensure a reasonable layout between the target furniture and other furniture. If the target furniture still cannot be reasonably arranged between the target furniture and other furniture after scaling, the reason why the layout cannot be as required is explained, for example, the specified sofa cannot be placed in the bedroom due to restrictions on the apartment type.

[0080] In addition to using anti-collision detection on the target home, in the disclosed embodiment, range detection can also be used to determine whether the target home is out of bounds, that is, to determine whether the location of the target home is in the bedroom.

[0081] In the disclosed embodiment, layout results of preset low-frequency home categories are provided, which can improve the richness of the layout results to a certain extent, and at the same time, a home layout map can be obtained based on the user's personalized layout requirements.

[0082] In some embodiments, in order to facilitate the user to understand, modify and make decisions, not only the home layout diagram is output, but also the design ideas and intentions corresponding to the home layout diagram are output, so as to further automatically optimize the home layout diagram. It can be implemented as follows:

[0083] Step C1, constructing second input information of a language model in response to the layout requirement information of the user, the second input information including layout requirement information and a home layout diagram.

[0084] The second input information may also include an output format and / or a reference example. The output format and the reference example are used to indicate the fit between the layout requirement information and the home layout diagram, that is, the degree to which the home layout diagram satisfies the layout requirement information.

[0085] The purpose of the reference examples is to provide contextual guidance for the language model, helping the model to better understand the user's intent and generate accurate responses. Through the reference examples, the model can learn the conversation pattern and the expected answer format to ensure the consistency of the answers. In order to further ensure the format of the generated layout constraints, the output format can be used to further constrain the generated layout constraints.

[0086] Step C2, inputting the second input information into the language model to obtain a design concept description of the home layout diagram.

[0087] The design concept of the home layout diagram is used to understand the matching degree between the home layout diagram and the layout requirement information, and can explain how to meet each requirement through the design of the home layout diagram, so as to introduce and explain the home layout diagram to the user.

[0088] For example, the layout requirement information is "I like to read in my room", "I want some green plants in the bedroom", "I want more storage space in the bedroom". Now the customer has a house to be designed. The building area is XX square meters, with a total of X rooms, X halls, X kitchens, and X bathrooms.

[0089] The design concept description of the home layout diagram can be "Putting a pot of green plants in the corner of the bedroom can refresh the air, placing the desk next to the window is for reading convenience, and placing a larger wardrobe in the bedroom can provide enough storage space."

[0090] Step C3: output the design concept description.

[0091] During implementation, the design concept description of each room can be rendered to the corresponding room in the home layout for display, or the design concept description of each home can be displayed near each home. This display method can be displayed in a pop-up window to facilitate user operation.

[0092] Of course, the design concept description of the entire room can also be displayed next to the home layout diagram, and the embodiment of the present disclosure does not limit the way of displaying it.

[0093] In the disclosed embodiment, on the basis of outputting the home layout diagram, a design concept description corresponding to the home layout diagram is also output. Based on the design concept description, the user can better understand the design ideas of the home layout diagram, so as to facilitate modification and decision-making at a later stage.

[0094] Based on the above method, the home layout diagram is obtained. Some users need to further improve the home layout diagram. Therefore, it can also be implemented as follows:

[0095] Step D1, updating the layout requirement information based on the improvement requirements proposed by the user for the home layout diagram to obtain updated layout requirement information.

[0096] Step D2, based on the updated layout requirement information, returns to the step of constructing the first input information of the language model in response to the user's layout requirement information.

[0097] In order to obtain the improvement requirements for the home layout diagram proposed by users at different times, multiple improvement requirements are saved, and the saving method is to save and record the improvement requirements for the home layout diagram proposed by users in each round.

[0098] Specifically, different users will have a user number (UserID) to identify their unique identity, so UserID is chosen as the key value of the database (Redis) cache content. After each round of conversation, the user input and the language model's answer during the current round of conversation will be updated to the cache to achieve the saving function. At the beginning of each round of conversation, the saved content will be obtained from the cache based on the UserID, and after corresponding processing, the large language model will be requested again. The corresponding processing is the step of building the first input information of the language model.

[0099] It should be noted that since the language model may have a maximum conversation length limit, it is necessary to determine whether the length of the current input text exceeds the limit when conducting subsequent rounds of conversation. If it exceeds the limit, the oldest round of historical conversation will be deleted.

[0100] In the disclosed embodiment, the layout requirement information can be updated based on multiple improvement requirements stored by the user, and then a home layout diagram can be obtained based on the updated layout requirement information. The home layout diagram generated in this way better meets the user's needs.

[0101] To further illustrate the embodiment of the present disclosure, the overall flow chart of the embodiment of the present disclosure is as follows: Figure 4 As shown, including:

[0102] S401, obtaining layout requirement information of the user;

[0103] S402, understanding the layout requirement information based on the language model, and reorganizing the language of the layout requirement information according to the requirements of the smart home layout model to obtain layout constraints;

[0104] S403, processing layout constraints and the user's target floor plan based on the smart home layout model to obtain a home layout map output by the smart home layout model;

[0105] S404, inputting the user's layout requirement information and the home layout diagram into a language model to obtain a design concept description of the home layout diagram;

[0106] S405: whether the user continues to submit improvement requirements; if the user continues to submit improvement requirements, execute S406; if the user does not continue to submit improvement requirements, execute S407;

[0107] S406, recording the improvement requirements of the user in each round and the answers of the language model;

[0108] S407: The session ends.

[0109] Based on the same technical concept, the embodiment of the present disclosure also proposes a device 500 for generating a home layout, such as Figure 5 As shown, including:

[0110] A construction module 501 is used to construct first input information of a language model in response to layout requirement information of a user, where the first input information includes layout requirement information and prompt information;

[0111] An input module 502 is used to input the first input information into the language model, so that the language model understands the layout requirement information under the guidance of the prompt information, and reorganizes the language of the layout requirement information according to the requirements of the smart home layout model to obtain layout constraints;

[0112] The generation module 503 is used to process the layout constraints and the user's target floor plan based on the smart home layout model to obtain a home layout diagram output by the smart home layout model.

[0113] In some embodiments, when the layout constraints include the home category, a module is generated for:

[0114] Determine the first word vector of the home category in the layout constraints;

[0115] Determine the similarity between the first word vector and the second word vector of each candidate category in the candidate category set;

[0116] Use the candidate category with the highest similarity to the first word vector to update the home category in the layout constraint;

[0117] The updated layout constraints and the target floor plan are input into the smart home layout model to obtain a home layout map output by the smart home layout model.

[0118] In some embodiments, the hint information includes an output format and / or reference examples of the layout constraints.

[0119] In some embodiments, the system further includes a concept generation module for:

[0120] In response to the layout requirement information of the user, second input information of the language model is constructed, the second input information including the layout requirement information and the home layout diagram;

[0121] Inputting the second input information into the language model to obtain a design concept description of the home layout diagram;

[0122] Output design concept description.

[0123] In some embodiments, a low-frequency home layout module is further included, which is used to:

[0124] When the layout constraints include a preset low-frequency home category, the target homes of the preset low-frequency home category are arranged based on the preset layout rules corresponding to the preset low-frequency home category, so as to layout the target homes of the preset low-frequency home category into the home layout diagram.

[0125] In some embodiments, the low-frequency home layout module is further used to:

[0126] Based on the default layout mode in the preset layout rules, the target home furnishings of the preset low-frequency home furnishing categories are arranged into the home furnishing layout map to obtain the layout map to be optimized;

[0127] Perform anti-collision detection on the target home and other homes in the optimized layout;

[0128] When it is determined that the target home collides with other homes, the layout of the target home is adjusted so that the target home and other homes are arranged reasonably.

[0129] In some embodiments, an update module is further included, which is used to:

[0130] The layout requirement information is updated based on the improvement requirements proposed by the user for the home layout diagram to obtain updated layout requirement information;

[0131] Based on the updated layout requirement information, the construction module is triggered to return to the step of executing the first input information of constructing the language model in response to the user's layout requirement information.

[0132] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0133] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0134] Figure 6 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 6 As shown, the electronic device includes: a memory 610 and a processor 620, and the memory 610 stores a computer program that can be run on the processor 620. The number of the memory 610 and the processor 620 can be one or more. The memory 610 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 630, which is used to communicate with external devices and perform data exchange transmission.

[0135] If the memory 610, the processor 620 and the communication interface 630 are implemented independently, the memory 610, the processor 620 and the communication interface 630 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0136] Optionally, in a specific implementation, if the memory 610, the processor 620 and the communication interface 630 are integrated on a chip, the memory 610, the processor 620 and the communication interface 630 can communicate with each other through an internal interface.

[0137] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.

[0138] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).

[0139] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.

[0140] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0141] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0142] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0143] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0144] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for generating a home layout, characterized in that: include: Constructing first input information of a language model in response to layout requirement information of a user, wherein the first input information includes the layout requirement information and prompt information; Inputting the first input information into the language model, so that the language model understands the layout requirement information under the guidance of the prompt information, and reorganizes the language of the layout requirement information according to the requirements of the smart home layout model to obtain layout constraints, so as to align the layout requirement information with the input of the smart home layout model using the language model; Wherein, when the layout constraints include the home category, processing the layout constraints and the user's target floor plan based on the smart home layout model to obtain a home layout diagram output by the smart home layout model includes: Determining a first word vector for the home category in the layout constraints; Determining the similarity between the first word vector and the second word vector of each candidate category in the candidate category set; Using the candidate category with the highest similarity to the first word vector to update the home category in the layout constraint; The updated layout constraints and the target floor plan are input into the smart home layout model to obtain a home layout diagram output by the smart home layout model.

2. The method according to claim 1, characterized in that The prompt information includes an output format and / or a reference example of the layout constraint.

3. The method according to claim 1 or 2, characterized in that Also includes: constructing second input information of the language model in response to the layout requirement information of the user, the second input information including the layout requirement information and the home layout diagram; Inputting the second input information into the language model to obtain a design concept description of the home layout; Output the design concept description.

4. The method according to claim 1 or 2, characterized in that Also includes: In a case where the layout constraints include a preset low-frequency home category, the target homes of the preset low-frequency home category are arranged based on the preset layout rules corresponding to the preset low-frequency home category, so as to layout the target homes of the preset low-frequency home category into the home layout diagram.

5. The method according to claim 4, characterized in that The arranging target homes of the preset low-frequency home furnishing category based on the preset layout rule corresponding to the preset low-frequency home furnishing category includes: Based on the default layout mode in the preset layout rule, the target home furnishings of the preset low-frequency home furnishing category are arranged into the home furnishing layout diagram to obtain a layout diagram to be optimized; Performing anti-collision detection on the target home and other homes in the layout diagram to be optimized; When it is determined that the target home collides with other homes, the layout of the target home is adjusted so that the target home and the other homes are arranged in a reasonable manner.

6. The method according to claim 1 or 2, characterized in that Also includes: Updating the layout requirement information based on the improvement requirements proposed by the user for the home layout diagram to obtain updated layout requirement information; Based on the updated layout requirement information, the step of constructing the first input information of the language model in response to the user's layout requirement information is returned to.

7. A device for generating a home layout, characterized in that: include: A construction module, configured to construct first input information of a language model in response to layout requirement information of a user, wherein the first input information includes the layout requirement information and prompt information; an input module, configured to input the first input information into the language model, so that the language model understands the layout requirement information under the guidance of the prompt information, reorganizes the language of the layout requirement information according to the requirements of the smart home layout model to obtain layout constraints, and aligns the layout requirement information with the input of the smart home layout model using the language model; Wherein, when the layout constraints include the home category, a generation module is used to: Determining a first word vector for the home category in the layout constraints; Determining the similarity between the first word vector and the second word vector of each candidate category in the candidate category set; Using the candidate category with the highest similarity to the first word vector to update the home category in the layout constraint; The updated layout constraints and the user's target floor plan are input into the smart home layout model to obtain a home layout diagram output by the smart home layout model.

8. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.