Contour and bubble graph indoor layout generation method based on generative adversarial network

Through the method of contours and bubble diagrams based on generative adversarial networks, the problems of low complex layout processing efficiency and limited innovation ability in residential floor plan layout design are solved, and automated, personalized and efficient indoor layout generation is achieved, reducing design differences and meeting the requirements of Standardization requirements of market demand.

CN118779946APending Publication Date: 2024-10-15DALIAN NATIONALITIES UNIVERSITY
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410771428.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing residential floor plan design methods have problems such as low efficiency, limited innovation capabilities, and large individual differences in design results when dealing with complex room layouts. In particular, methods based on generative adversarial networks fail to effectively limit residential building outlines and room number types.

Method used

An indoor layout generation method based on contours and bubble diagrams of generative adversarial networks is adopted. By constructing a conditional generative adversarial network model, the RPLAN data set is used for data preprocessing and feature extraction, and combined with feature fusion, downsampling, residual and upsampling layer generation For a residential floor plan that meets the constraints, conditional adversarial network loss, feature matching loss, and overall layout classification loss are used for model training to ensure that the generated layout map meets the preset conditions.

Benefits of technology

It realizes the automated generation of residential floor plans, improves design efficiency and accuracy, reduces design differences, and can generate personalized interior layouts according to user needs to meet the standardization requirements of market needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779946A_ABST
    Figure CN118779946A_ABST
Patent Text Reader

Abstract

The invention discloses an indoor layout generation method based on a contour and bubble graph of a generative adversarial network. The method is characterized by comprising the following steps: step 1, data preprocessing; 2, performing layout generation based on a contour map and a bubble map in first-stage training, taking the contour map and the bubble map as input, and outputting a basic residential building layout map through a feature fusion layer, a down-sampling layer, a residual layer, a self-attention layer and an up-sampling layer; 3, in second-stage training, door elements are generated based on the connection relation of all rooms in the residential building layout map; and 4, training the generative adversarial network model in the first stage by using conditional adversarial network loss, feature matching loss and overall layout classification loss. According to the method, automation and efficiency can be improved, highly personalized design is achieved, design differences are reduced, design results are more standardized, and market requirements are better met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image generation, and in particular to a method for generating indoor layouts of contours and bubble graphs based on a generative adversarial network. Technical Background

[0002] Residential house floor plan design has always been one of the core tasks in the field of architecture and design. Traditional design methods rely on the professional knowledge, experience and creativity of designers, and require a lot of manual drawing and repeated modifications. This process is not only time-consuming, but also due to differences in personal experience and aesthetic concepts of designers, there are large individual differences in design results. This difference is particularly prominent in the context of pursuing design standardization and meeting market demand. In the current design field, the application of artificial intelligence technology has spawned a variety of innovative design methods. These methods can be roughly summarized as: optimization-based design methods, analogy design methods, and generative design methods according to their different design processes and goals.

[0003] Optimization-based design methods aim to find the best solution given the design requirements and constraints by applying advanced optimization algorithms. This approach has been excellent in improving the efficiency of residential floor plan design, especially when dealing with design problems with clear goals and quantifiable evaluation criteria. However, when faced with complex room layout problems, optimization algorithms may encounter challenges that are difficult to overcome due to the large number of layout principles that need to be considered and the fact that these principles may conflict with each other.

[0004] The analogy design method generates new design concepts by borrowing and transferring existing design knowledge and experience. The advantage of this method is that it can maintain the coherence and consistency of the design, especially when dealing with problems similar to existing designs. However, the limitation of this method is that it can usually only generate solutions similar to existing designs, and its innovation ability is limited for completely new design problems.

[0005] Generative design methods can automatically generate multiple design options for designers to choose from by simulating the design innovation process. The core advantage of this method lies in its excellent design diversity and innovation potential. In the field of residential floor plan design, some methods have emerged that use advanced technologies such as generative adversarial networks (GANs) to automate layout, but they still face some challenges and limitations in practical applications, such as not restricting the outline of residential buildings, the number and type of rooms, etc. Summary of the invention

[0006] The object of the present invention is to provide a method for generating indoor layouts based on contours and bubble diagrams of generative adversarial networks, which can automatically generate the floor plan layout of residential houses according to the provided constraints.

[0007] The indoor layout generation method based on contour and bubble map of generative adversarial network is to build a residential floor plan generation framework (Contour2Layout) based on the conditional generative adversarial network model as the basic model. It is a two-stage generation model. After training, the model can generate the layout according to the provided residential contour constraints and bubble map constraints. The specific steps are as follows:

[0008] Step 1: Data preprocessing. The RPLAN dataset is processed to meet the training requirements of the model. RPLAN is a publicly available large-scale densely annotated floor plan dataset manually collected from real residential buildings. The RPLAN dataset is semantically processed using the Open CV library, that is, different types of rooms are identified by different colors, and the outer contour of the building is extracted to obtain the contour map. The processed building layout, namely the "functional color-coded floor plan", will be used as the real layout in the dataset after removing the door element. Based on the layout map, the bubble map is extracted, and the radius of the bubble of the room is generated by a fixed algorithm mapping according to the pixel area m of the room, where the color and relative center position of the room correspond to the color and center of the bubble in the bubble map respectively. Each pair of data in the first stage of the dataset includes a contour map, a corresponding bubble map, and a corresponding real layout map. This paired data organization method ensures that the model can effectively learn the transformation from abstract contour maps and bubble maps to specific actual layouts, thereby improving the accuracy and practicality of the generated layout.

[0009] Step 2: The first stage of training generates layouts based on contour maps and bubble maps. The contour map and bubble map are used as input, and the basic residential building layout map is output through the feature fusion layer, downsampling layer, residual layer, self-attention layer and upsampling layer.

[0010] Step 3: The second stage of training generates door elements based on the connection relationship between each room in the residential building layout. The basic layout without door element information is used as input, and the residential building layout with door is output through the downsampling layer, residual layer, and upsampling layer.

[0011] Step 4: Use the conditional adversarial network loss, feature matching loss, and overall layout classification loss to train the first-stage generative adversarial network model. Use the conditional adversarial network loss and feature matching loss to train the second-stage generative adversarial network model.

[0012] Furthermore, the formula of the fixed algorithm for mapping the bubble radius and pixel area in the process of drawing the bubble chart in step 1 is:

[0013] r is the bubble radius and m is the pixel area.

[0014] Furthermore, in step 2, the training of the first-stage model specifically includes: (1) inputting the contour map and bubble map into the feature fusion network layer to extract the key feature information therein. (2) The extracted feature data is then sent to the downsampling layer for further processing, which contains four convolutional layers. Each convolutional layer adopts an appropriate convolution kernel, step size and padding strategy to effectively reduce the data dimension while retaining important feature information. (3) The downsampled image data is processed by nine residual blocks. Each residual block enhances the learning ability of the model and improves the information flow channel through identity mapping and convolution operations. The data flow passes through the self-attention layer, which helps the model better focus and process the key parts of the image, and improves the overall feature expression ability by considering the correlation between features at different positions. (4) The processed image data enters the upsampling layer, which is also composed of four convolutional layers, gradually restoring the original size of the image and optimizing the detail expression. After processing by the upsampling layer, the basic indoor layout generation map is output, which is rich in details and conforms to the layout characteristics of the input contour and bubble map.

[0015] Furthermore, in step 3, the training process of the second-stage model specifically includes: (1) inputting the basic layout map into the downsampling layer for processing, which is composed of four convolutional layers to reduce the data dimension of the basic layout map while retaining important feature information. (2) The data after downsampling is processed by nine residual blocks, each of which enhances the learning ability of the model and improves the information flow channel through identity mapping and convolution operations. The original size of the image is gradually restored through the four convolutional layers in upsampling, and the indoor layout generation map with door information is output.

[0016] Furthermore, in step 4, conditional adversarial network loss, feature matching loss and overall layout classification loss are used in the training of the model, so that the model can adjust the generated residential layout to ensure that the size, location and function of each room meet the preset conditions. The conditional generative adversarial network (cGAN) loss optimizes the model through a minimum-maximum adversarial process. The feature matching loss helps the model learn and replicate the layout features in the training dataset at multiple levels, thereby enhancing the structural similarity of the generated images. The overall layout classification loss ensures that the generated residential layout meets specific room type and quantity requirements. Through the joint optimization of these loss functions, the model can generate a more practical and beautiful residential layout, while improving the model's adaptability and accuracy to complex layout requirements. Their calculation methods are as follows. The calculation formula of the conditional adversarial network loss is:

[0017]

[0018] L cGAN (G,D) are the losses conditioned against network loss;

[0019] x is a real layout sample;

[0020] c is the corresponding label information (plane contour map and bubble map);

[0021] D is the discriminator;

[0022] G is the generator;

[0023] Calculate the expected value of logD(x,c) under the distribution of real data samples and their corresponding labels. This is the part where the discriminator tries to correctly identify the real samples as real;

[0024] The generator G generates fake samples G(x) under the distribution of all real data samples and calculates the expected value of log(1-D(x,G(x))). This is the part where the discriminator tries to correctly identify the samples generated by the generator as fake.

[0025]

[0026] L FM (G,D k ) is for the generator G and the discriminator D k Feature matching loss;

[0027] s is the input condition sample, i.e., the contour map and the bubble map;

[0028] y is the real layout sample under the corresponding conditions;

[0029] G is the generator;

[0030] is the discriminator D k Feature extractor at layer i;

[0031] T is the total number of layers;

[0032] N i is the discriminator D k The total number of elements in the feature map at layer i;

[0033] ||·||1 is the L1 norm;

[0034] The expectation is calculated for the entire distribution of all possible pairs of conditional inputs s and corresponding true layout samples y.

[0035] The overall layout classification loss is used to ensure that the generated layout meets the specific room type and quantity requirements, and is calculated as:

[0036]

[0037] LClassification Classify losses for overall layout;

[0038] K is the total number of layout categories;

[0039] k is the category of the kth layout;

[0040] y k Whether the target layout belongs to the kth category;

[0041] p k The classifier predicts the probability that the generated layout for the input belongs to the kth category.

[0042] The principle of the present invention is to use a generative adversarial network (GAN) to convert residential outlines and bubble maps into indoor layouts through image translation technology in the field of image generation. The generative adversarial network includes two main parts: a generator and a discriminator. The generator generates images, and the discriminator is used to evaluate the authenticity of these images. Through this adversarial process, the generator continuously learns how to improve the images it generates to make them more realistic and accurate, so that high-quality indoor layouts can be finally produced.

[0043] Compared with the prior art, the present invention has the following advantages:

[0044] (1) Automation and efficiency improvement: Through the automated image generation process, the need for manual drawing is greatly reduced, which can improve the efficiency and speed of design. (2) Highly personalized design: Since GAN can learn and simulate complex design rules, the present invention can generate personalized interior layouts that meet the user's specific needs and preferences based on specific contour map and bubble map inputs. This high degree of customization is difficult to achieve with traditional methods. (3) Reducing design differences: The automated design process reduces design differences caused by human factors, such as personal experience and aesthetic differences, making the design results more standardized and better meeting market demand. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is the Contour2Layout model architecture diagram of the present invention;

[0046] Figure 2 Generate example diagrams for the basic layout of the first-stage model;

[0047] Figure 3 Generate an example plot for the Phase II model gate element. DETAILED DESCRIPTION

[0048] The technical solution in the embodiment of the present invention will be further described in detail below in conjunction with the accompanying drawings in the embodiment of the present invention:

[0049] like Figure 1As shown, the present invention proposes a method for generating indoor layouts based on contours and bubble diagrams of a generative adversarial network. The method proposes a two-stage generation model of Contour2Layout, which starts with obtaining the outer contour of a residential building, providing information such as the type, size, and location of the room according to the bubble diagram, and using a generative adversarial network to generate a basic layout. Door elements are generated according to the room connection relationship of the basic layout, so that the generated layout diagram meets the input conditional constraints.

[0050] The specific steps include:

[0051] Step 1: Data preprocessing. The RPLAN dataset is processed to meet the training requirements of the model. RPLAN is a publicly available large-scale densely annotated floor plan dataset manually collected from real residential buildings. The RPLAN dataset is semantically processed using the Open CV library, that is, different types of rooms are identified by different colors, and the outer contour of the building is extracted to obtain a contour map. The processed building layout, namely the "functional color-coded floor plan", will be used as the real layout in the dataset after removing the door elements. The bubble map is extracted based on the layout map, and the radius of the bubble of the room is generated by mapping the pixel area m of the room through a fixed algorithm. The formula of the fixed algorithm for mapping the bubble radius and pixel area is: r is the bubble radius, m is the pixel area, where the color and relative center position of the room correspond to the color and center of the bubble in the bubble map. Each pair of data in the first stage of the data set includes a contour map, a corresponding bubble map, and a corresponding real layout map. This paired data organization ensures that the model can effectively learn the transformation from abstract contour maps and bubble maps to specific actual layouts, thereby improving the accuracy and practicality of the generated layout.

[0052] Step 2: Use the contour map and bubble map as the input of the first-stage model to generate the basic residential building layout, specifically including: (1) Input the contour map and bubble map into the feature fusion network layer to extract the key feature information. (2) The extracted feature data is then sent to the downsampling layer for further processing. This layer contains four convolutional layers. Each convolutional layer adopts appropriate convolution kernels, step sizes and padding strategies to effectively reduce the data dimension while retaining important feature information. (3) The downsampled image data is processed by nine residual blocks. Each residual block enhances the learning ability of the model and improves the information flow channel through identity mapping and convolution operations. Next, the data flow passes through the self-attention layer, which helps the model better focus and process the key parts of the image. By considering the correlation between features at different positions, the overall feature expression ability is improved. (4) Finally, the processed image data enters the upsampling layer, which is also composed of four convolutional layers, which gradually restores the original size of the image and optimizes the detail expression. After processing by the upsampling layer, a high-quality basic indoor layout generation map is finally output. Figure 2 As shown, the proposed model generates layout features that are rich in details and conform to the input contours and bubble maps.

[0053] Step 3: The basic layout diagram without door element information generated by the first stage model is used as the input of the second stage model. Figure 3 As shown in the figure, the model generates door elements based on the connection relationship between rooms in the residential building layout diagram, which specifically includes: (1) inputting the basic layout diagram into the downsampling layer for processing, which consists of four convolutional layers to reduce the data dimension of the basic layout diagram while retaining important feature information. (2) The data after downsampling is processed by nine residual blocks. Each residual block enhances the learning ability of the model and improves the information flow channel through identity mapping and convolution operations. Finally, the original size of the image is gradually restored through four convolutional layers in upsampling, and the generated indoor layout diagram with door elements is finally output.

[0054] Step 4: Use conditional adversarial network loss, feature matching loss, and overall layout classification loss to train the first-stage generative adversarial network model, and use conditional adversarial network loss and feature matching loss to train the second-stage generative adversarial network model, so that the model can adjust the generated residential layout to ensure that the size, location, and function of each room meet the preset conditions. The conditional generative adversarial network (cGAN) loss optimizes the model through a minimum-maximum adversarial process. The feature matching loss helps the model learn and replicate the layout features in the training dataset at multiple levels, thereby enhancing the structural similarity of the generated images. The overall layout classification loss ensures that the generated residential layout meets specific room type and quantity requirements. Through the joint optimization of these loss functions, the model can generate a more practical and beautiful residential layout, while improving the model's adaptability and accuracy to complex layout requirements. Their calculation methods are as follows. The calculation formula for the conditional adversarial network loss is:

[0055]

[0056] L cGAN (G,D) are the losses conditioned against network loss;

[0057] x is a real layout sample;

[0058] c is the corresponding label information (plane contour map and bubble map);

[0059] D is the discriminator;

[0060] G is the generator;

[0061] Calculate the expected value of logD(x,c) under the distribution of real data samples and their corresponding labels. This is the part where the discriminator tries to correctly identify the real samples as real;

[0062] The generator G generates fake samples G(x) under the distribution of all real data samples and calculates the expected value of log(1-D(x,G(x))). This is the part where the discriminator tries to correctly identify the samples generated by the generator as fake.

[0063]

[0064] L FM (G,D k ) is for the generator G and the discriminator D k Feature matching loss;

[0065] s is the input condition sample, i.e., the contour map and the bubble map;

[0066] y is the real layout sample under the corresponding conditions;

[0067] G is the generator;

[0068] is the discriminator D k Feature extractor at layer i;

[0069] T is the total number of layers;

[0070] N i is the discriminator D k The total number of elements in the feature map at layer i;

[0071] ||·||1 is the L1 norm;

[0072] The expectation is calculated for the entire distribution of all possible pairs of conditional inputs s and corresponding true layout samples y.

[0073] The overall layout classification loss is used to ensure that the generated layout meets the specific room type and quantity requirements, and is calculated as:

[0074]

[0075] L Classification Classify losses for overall layout;

[0076] K is the total number of layout categories;

[0077] k is the category of the kth layout;

[0078] y k Whether the target layout belongs to the kth category;

[0079] p k The classifier predicts the probability that the generated layout for the input belongs to the kth category.

[0080] Through the above example steps, the specific implementation of the present invention is described in detail. The present invention directly generates a residential floor plan that meets the constraints by using the residential building outline information and the room type, size, location and other information provided by the bubble map through the generative adversarial network model. This method not only improves the efficiency and accuracy of interior design, but also makes the interior layout more in line with the personalized needs of users.

Claims

1. A method for generating indoor layouts based on contour and bubble diagrams using generative adversarial networks, characterized by: The steps are as follows: Step 1: Data preprocessing, the RPLAN dataset is processed to meet the training requirements of the model. RPLAN is a public large-scale densely annotated floor plan dataset manually collected from real residential buildings. The Open CV library is used to perform semantic processing on the RPLAN dataset, that is, different types of rooms are identified by different colors, and the outer contour of the building is extracted to obtain a contour map. The processed building layout, namely the "functional color-coded floor plan", will be used as the real layout in the dataset after removing the door elements. The bubble map is extracted based on the layout map, and the radius of the bubble of the room is generated by a fixed algorithm mapping according to the pixel area m of the room, where the color and relative center position of the room correspond to the color and center of the bubble in the bubble map respectively. Each pair of data in the first stage of the dataset includes a contour map, a corresponding bubble map and a corresponding real layout map; Step 2: The first stage trains the layout based on the contour map and bubble map Generation, taking the contour map and bubble map as input, after the feature fusion layer, downsampling layer, residual layer, self-attention layer and upsampling layer outputs the basic residential building layout map; Step 3: The second stage training generates door elements based on the connection relationship between each room in the residential building layout map, taking the basic layout map without door element information as input, after the downsampling layer, residual layer, upsampling layer outputs the residential building layout map with door; Step 4: Use the conditional adversarial network loss, feature matching loss and overall layout classification loss to train the first stage generative adversarial network model, use the conditional adversarial network loss and feature matching loss to train the second stage generative adversarial network model.

2. The indoor layout generation method based on contour and bubble diagram of generative adversarial network according to claim 1, characterized in that: The formula for the fixed algorithm for mapping bubble radius and pixel area in the process of drawing the bubble chart in step 1 is: r is the bubble radius and m is the pixel area.

3. The indoor layout generation method based on contour and bubble diagram of generative adversarial network according to claim 1, characterized in that: In step 2, the training of the first stage model specifically includes: (1) inputting the contour map and bubble map into the feature fusion network layer to extract the key feature information; (2) the extracted feature data is then sent to the downsampling layer for further processing, which contains four convolutional layers. Each convolutional layer adopts an appropriate convolution kernel, step size and padding strategy to effectively reduce the data dimension while retaining important feature information; (3) the downsampled image data is processed by nine residual blocks. Each residual block enhances the learning ability of the model through identity mapping and convolution operations and improves the information flow channel. The data flow passes through the self-attention layer, which helps the model better focus and process the key parts of the image. By considering the correlation between features at different positions, the overall feature expression ability is improved; (4) the processed image data enters the upsampling layer, which is also composed of four convolutional layers. It gradually restores the original size of the image and optimizes the detail expression. After processing by the upsampling layer, the basic indoor layout generation map is output, which is rich in details and conforms to the layout characteristics of the input contour and bubble map.

4. The indoor layout generation method based on contour and bubble diagram of generative adversarial network according to claim 1, characterized in that: The training process of the second-stage model in step 3 specifically includes: (1) inputting the basic layout map into the downsampling layer for processing, which consists of four convolutional layers to reduce the data dimension of the basic layout map while retaining important feature information; (2) processing the down-sampled data through nine residual blocks. Each residual block enhances the learning ability of the model through identity mapping and convolution operations, and improves the information flow channel. The original size of the image is gradually restored through the four convolutional layers in the upsampling, and the indoor layout generation map with door information is output.

5. The indoor layout generation method based on contour and bubble diagram of generative adversarial network according to claim 1, characterized in that: In step 4, the model training uses conditional adversarial network loss, feature matching loss, and overall layout classification loss. The conditional generative adversarial network (cGAN) loss optimizes the model through a minimum-maximum adversarial process. The feature matching loss helps the model learn and replicate the layout features in the training dataset at multiple levels. The calculation method is as follows: The conditional adversarial network loss is calculated as follows: L cGAN (G, D) are the losses conditional on the network loss; x is a real layout sample; c is the corresponding label information (plane outline map and bubble map); D is the discriminator; G is the generator; Calculate the expected value of logD(x, c) under the distribution of real data samples and their corresponding labels; this is the part where the discriminator tries to correctly identify the real samples as real; To generate fake samples G(x) under the distribution of all real data samples, the generator G generates fake samples G(x) and calculates the expected value of log(1-D(x,G(x))). This is the part where the discriminator tries to correctly identify the samples generated by the generator as fake; L FM (G, D k ) is for the generator G and the discriminator D k Feature matching loss; s is the input condition sample, i.e., the contour map and the bubble map; y is the real layout sample under the corresponding conditions; G is the generator; is the discriminator D k Feature extractor at layer i; T is the total number of layers; N i is the discriminator D k The total number of elements in the feature map at layer i; ||·||1 is the L1 norm; Calculate the expectation of the entire distribution of all possible conditional inputs s and corresponding true layout sample y pairs; The overall layout classification loss is used to ensure that the generated layout meets the specific room type and number requirements, and is calculated as: L Classification Classify losses for the overall layout; K is the total number of categories of layout; k is the category of the kth layout; y k Whether the target layout belongs to the kth category; p k The classifier predicts the probability that the generated layout for the input belongs to the k-th category.

Citation Information

Cited By

  • Building space layout three-dimensional model generation method and device

    CN119251411A

  • Financial data display method and system based on big data processing

    CN119719505A

  • A financial data display method and system based on big data processing

    CN119719505B