Background generation method and system, computer system and computer readable storage medium
By obtaining user description information and using a pre-trained neural network to generate background, the problem of inflexible background generation in the existing technology is solved, and the user experience and usage rate are improved.
Patent Information
- Application Number
- CN201810945726.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-08-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2038-08-17
AI Technical Summary
In the existing technology, when a user needs to obtain a background that meets specific requirements, the device cannot flexibly respond to the user's needs, resulting in poor user experience.
By obtaining the description information input by the user, the characteristics of the target background are determined and input into the pre-trained target neural network to generate a background that meets the user's requirements. The system includes an acquisition module, a determination module, a generation module, a training module, a display module and a response module, and uses semantic segmentation and neural networks to generate multiple backgrounds for users to choose from.
It realizes the flexible generation of background images according to user needs, improves user experience satisfaction and usage rate, and overcomes the problem of insufficient flexibility in background generation in the existing technology.
Smart Images

Figure CN110866138B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to a background generation method and system, a computer system, and a computer-readable storage medium. Background Art
[0002] With the rapid development of artificial intelligence technology, the ability of machines to understand and create continues to improve. For example, Google's Google Duplex voice assistant can communicate with humans more naturally for specific activities, helping people complete similar tasks such as activity arrangements. Microsoft XiaoIce attempts to use algorithms to structure poetry as an art form, ultimately giving machines a certain degree of creativity, so that machines can also "write with inspiration" when they see good pictures and scenery.
[0003] However, in related technologies, when a user needs to obtain a background that meets certain requirements to render the device's desktop, or render service products such as article layout, the device can often only provide limited materials, which are randomly distributed to users or multiple background images are pre-set for users to choose from, and the coverage of user requirements is relatively low.
[0004] Therefore, in the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art:
[0005] In the related art, when a user needs to obtain a background including different materials, the user's needs cannot be flexibly met, resulting in a poor user experience. Summary of the invention
[0006] In view of this, the present disclosure provides a background generation method and system, a computer system, and a computer-readable storage medium.
[0007] One aspect of the present disclosure provides a background generation method, including obtaining description information input by a user; determining at least one feature for describing a target background from the description information, wherein the target background is used to render a target object; and inputting the at least one feature into a target neural network, and generating the target background through the target neural network.
[0008] According to an embodiment of the present disclosure, the above method also includes pre-training the above target neural network, including: obtaining background material samples, wherein each background in the above background material samples includes multiple basic elements, and each basic element is used to characterize a feature of the corresponding background; and pre-training a neural network based on the basic elements contained in each background in the above background material samples to obtain a target neural network that can output the corresponding background according to one or more basic elements.
[0009] According to an embodiment of the present disclosure, when each background in the background material samples is a picture background, the resolution of the picture background is greater than or equal to a preset value.
[0010] According to an embodiment of the present disclosure, determining at least one feature for describing the target background from the above-mentioned description information includes segmenting the above-mentioned description information based on a semantic segmentation method to obtain one or more information fragments; and determining at least one feature for describing the above-mentioned target background from the above-mentioned one or more information fragments.
[0011] According to an embodiment of the present disclosure, the target background includes multiple backgrounds, and the method also includes displaying the multiple target backgrounds after generating the multiple target backgrounds through the target neural network; obtaining the user's selection operation; and in response to the selection operation, using the target background targeted by the selection operation as the final background.
[0012] Another aspect of the present disclosure provides a background generation system, including a first acquisition module for acquiring description information input by a user; a determination module for determining at least one feature for describing a target background from the description information, wherein the target background is used to render a target object; and a generation module for inputting the at least one feature into a target neural network and generating the target background through the target neural network.
[0013] According to an embodiment of the present disclosure, the above-mentioned system also includes a training module for pre-training the above-mentioned target neural network, including an acquisition unit for acquiring background material samples, wherein each background in the above-mentioned background material samples includes multiple basic elements, and each basic element is used to characterize a feature of the corresponding background; and a training unit for pre-training the neural network based on the basic elements contained in each background in the above-mentioned background material samples, so as to obtain a target neural network that can output the corresponding background according to one or more basic elements.
[0014] According to an embodiment of the present disclosure, when each background in the background material samples is a picture background, the resolution of the picture background is greater than or equal to a preset value.
[0015] According to an embodiment of the present disclosure, the above-mentioned determination module includes a segmentation unit, which is used to segment the above-mentioned description information based on a semantic segmentation system to obtain one or more information fragments; and a determination unit, which is used to determine at least one feature used to describe the above-mentioned target background from the above-mentioned one or more information fragments.
[0016] According to an embodiment of the present disclosure, the target background includes multiple backgrounds, and the system further includes a display module for displaying the multiple target backgrounds after the multiple target backgrounds are generated by the target neural network; a second acquisition module for acquiring the user's selection operation; and a response module for responding to the selection operation and taking the target background targeted by the selection operation as the final background.
[0017] Another aspect of the present disclosure provides a computer system, including one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the background generation method as described above.
[0018] Another aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon. When the instructions are executed by a processor, the processor implements the background generation method as described above.
[0019] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the background generation method mentioned above when executed.
[0020] According to an embodiment of the present disclosure, by receiving the user's description information, one or more features for describing the target background are extracted from the description information, and the extracted one or more features are input into the target neural network. The target neural network can generate a corresponding target background according to the one or more features. Since the background image is not obtained by searching and matching based on existing pictures, but the corresponding background image is flexibly generated according to the user's requirements, it at least partially overcomes the technical problem in the related art that when the user needs to obtain a background including different materials, the user's needs cannot be flexibly responded to, thereby achieving the technical effect of improving user experience satisfaction and increasing user usage rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0022] Figure 1 An exemplary system architecture to which the background generation method and system according to an embodiment of the present disclosure can be applied is schematically shown;
[0023] Figure 2 A flowchart of a background generation method according to an embodiment of the present disclosure is schematically shown;
[0024] Figure 3 Schematically shows a flow chart of using a neural network to generate a background according to an embodiment of the present disclosure;
[0025] Figure 4 A schematic diagram schematically shows a background generated by using a neural network according to an embodiment of the present disclosure;
[0026] Figure 5 A schematic diagram schematically shows a background generated by using a neural network according to another embodiment of the present disclosure;
[0027] Figure 6 Schematically shows a flowchart of pre-training the target neural network according to an embodiment of the present disclosure;
[0028] Figure 7 A flowchart of determining at least one feature for describing a target background from description information according to an embodiment of the present disclosure is schematically shown;
[0029] Figure 8 A flowchart of a background generation method according to another embodiment of the present disclosure is schematically shown;
[0030] Fig. 9 A block diagram of a background generation system according to an embodiment of the present disclosure is schematically shown;
[0031] Fig.10 A block diagram of a background generation system according to another embodiment of the present disclosure is schematically shown;
[0032] Fig.11 A block diagram of a determination module according to an embodiment of the present disclosure is schematically shown;
[0033] Fig.12 A block diagram schematically shows a background generation system according to another embodiment of the present disclosure; and
[0034] Fig.13 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0035] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0036] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0037] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0038] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but not be limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but not be limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). Those skilled in the art should also understand that any transitional conjunctions and / or phrases that substantially indicate two or more optional items, whether in the specification, claims, or drawings, should be understood to give the possibility of including one of these items, either of these items, or both of these items. For example, the phrase "A or B" should be understood to include the possibilities of "A" or "B", or "A and B".
[0039] An embodiment of the present disclosure provides a background generation method and system, the method comprising obtaining description information input by a user; determining at least one feature for describing a target background from the description information, wherein the target background is used to render a target object; and inputting the at least one feature into a target neural network, and generating the target background through the target neural network.
[0040] Figure 1 The exemplary system architecture to which the background generation method and system according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0041] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0042] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).
[0043] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0044] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0045] It should be noted that the background generation method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the background generation system provided in the embodiment of the present disclosure can generally be arranged in the server 105. The background generation method provided in the embodiment of the present disclosure can also be performed by a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Accordingly, the background generation system provided in the embodiment of the present disclosure can also be arranged in a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Alternatively, the background generation method provided in the embodiment of the present disclosure can also be performed by the terminal device 101, 102, or 103, or can also be performed by other terminal devices different from the terminal device 101, 102, or 103. Accordingly, the background generation system provided in the embodiment of the present disclosure can also be arranged in the terminal device 101, 102, or 103, or can be arranged in other terminal devices different from the terminal device 101, 102, or 103.
[0046] For example, the user inputs the description information on any one of the terminal devices 101, 102, or 103 (for example, the terminal device 101, but not limited thereto), or stores it on an external storage device and can be imported into the terminal device 101. Then, the terminal device 101 can locally execute the background generation method provided by the embodiment of the present disclosure, or send the description information to other terminal devices, servers, or server clusters, and the other terminal devices, servers, or server clusters that receive the description information execute the background generation method provided by the embodiment of the present disclosure.
[0047] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0048] Figure 2 The flowchart of the background generation method according to the embodiment of the present disclosure is schematically shown.
[0049] like Figure 2 As shown, the method includes operations S210 to S230.
[0050] In operation S210, description information input by a user is obtained.
[0051] According to an embodiment of the present disclosure, a user may input description information through an input device, including but not limited to a microphone, a keyboard, and other input devices. The description information may be a user's requirement for the target background that the user wants to obtain. For example, the description information is a night scene with a starry sky, white clouds, and a moon. From the description information, it can be concluded that the target background that the user wants to obtain is a night scene, and the requirement for the night scene is to have a starry sky, white clouds, and a moon.
[0052] In operation S220, at least one feature for describing a target background is determined from the description information, wherein the target background is used to render a target object.
[0053] According to an embodiment of the present disclosure, at least one feature used to describe the target background may be a theme style, an element, a color, a spatial layout, etc. For example, if the description information is a night scene with a starry sky, white clouds, and a moon, then the features used to describe the target background may be a starry sky, white clouds, a moon, and a night scene. The target background that the user wants to obtain may be used to render a target object, for example, it may be used to render a desktop image of an electronic device, or it may be used to decorate a rendered document, for example, as an illustration of a document.
[0054] In operation S230, at least one feature is input into the target neural network, and a target background is generated through the target neural network.
[0055] According to an embodiment of the present disclosure, the target neural network may generate a corresponding target background according to one or more features.
[0056] Figure 3 The flowchart of using a neural network to generate a background according to an embodiment of the present disclosure is schematically shown.
[0057] According to an embodiment of the present disclosure, taking the target background as a picture as an example, Figure 3 As shown, the description information input by the user is obtained, at least one feature for describing the target background is determined from the description information, and the at least one feature is input into a feature encoder. A feature vector can be generated through the feature encoder and input into a generator. The generator generates a background image that meets the requirements based on the feature vector, wherein the feature encoder and the generator can form a target neural network.
[0058] Figure 4 The figure schematically shows a background generated by using a neural network according to an embodiment of the present disclosure.
[0059] According to an embodiment of the present disclosure, the description information input by the user is a puppy in a night scene with a starry sky, white clouds and the moon. The background image generated by the neural network can be as follows: Figure 4 The scene shown.
[0060] Figure 5 The figure schematically shows a background generated by using a neural network according to another embodiment of the present disclosure.
[0061] According to an embodiment of the present disclosure, the description information input by the user is a person exercising in a park in the early morning, and the background image generated by the neural network can be as follows: Figure 5 The scene shown.
[0062] According to an embodiment of the present disclosure, by receiving the user's description information, one or more features for describing the target background are extracted from the description information, and the extracted one or more features are input into the target neural network. The target neural network can generate a corresponding target background according to the one or more features. Since the background image is not obtained by searching and matching based on existing pictures, but the corresponding background image is flexibly generated according to the user's requirements, it at least partially overcomes the technical problem in the related art that when the user needs to obtain a background including different materials, the user's needs cannot be flexibly responded to, thereby achieving the technical effect of improving user experience satisfaction and increasing user usage rate.
[0063] Reference below Figure 6 to Figure 8 , combined with specific embodiments Figure 2 The method shown is further explained.
[0064] Figure 6A flowchart of pre-training the target neural network according to an embodiment of the present disclosure is schematically shown.
[0065] like Figure 6 As shown, pre-training the target neural network includes operations S241-S242.
[0066] In operation S241, background material samples are acquired, wherein each background in the background material samples includes a plurality of basic elements, and each basic element is used to characterize a feature of the corresponding background.
[0067] In operation S242, a neural network is pre-trained based on the basic elements contained in each background in the background material sample to obtain a target neural network that can output a corresponding background according to one or more basic elements.
[0068] According to an embodiment of the present disclosure, during the neural network training process, the original picture in the background material sample can be divided into different parts (the sample of this part can be defined as T), such as theme style, elements, color, spatial layout, etc. These parts can be used as multiple basic elements of each background.
[0069] When pre-training the neural network based on the basic elements contained in each background in the background material samples, the different parts into which the original image is divided can be projected into a "hidden space" (the generated sample of this part can be defined as T'), and then a large number of image trainings are conducted to verify the accuracy of the T-T' correspondence, that is, to continuously verify the correctness of the "hidden space", thereby continuously iterating to ensure that the process from T-T' is not randomly generated, but maintains certain rules, thereby allowing the neural network containing the "hidden space" to gradually become perfect.
[0070] Through the embodiments of the present disclosure, by training a neural network, the machine can understand the needs of users and generate a picture background that meets the user's requirements based on the user's needs to meet the diverse needs of users.
[0071] According to an embodiment of the present disclosure, when each background in the background material sample is a picture background, the resolution of the picture background is greater than or equal to a preset value. For example, the resolution of the picture background is greater than 256*256.
[0072] Through the embodiments of the present disclosure, a higher resolution of the image background means that the detail information contained in each part of the image is more complete and rich, which can improve the accuracy of the background output by the neural network.
[0073] Figure 7 The flowchart of determining at least one feature for describing the target background from the description information according to an embodiment of the present disclosure is schematically shown.
[0074] like Figure 7 As shown, determining at least one feature for describing the target background from the description information includes operation S221 and operation S222.
[0075] In operation S221, the description information is segmented based on a semantic segmentation method to obtain one or more information segments.
[0076] In operation S222, at least one feature for describing the target background is determined from the one or more information segments.
[0077] According to an embodiment of the present disclosure, after receiving the description information input by the user, a trained neural network may perform semantic segmentation on the description information input by the user to obtain one or more information segments, from which features of the target background are extracted.
[0078] Through the embodiments of the present disclosure, multiple information fragments can be generated within a few milliseconds through the semantic segmentation method, and feature information can be determined from the information fragments, which can improve recognition efficiency and more efficiently generate image materials that are highly consistent with the text description.
[0079] Figure 8 The flowchart of the background generation method according to another embodiment of the present disclosure is schematically shown.
[0080] In the case where the target context includes multiple Figure 8 As shown, the background generating method further includes operations S250 to S270.
[0081] In operation S250, after a plurality of target backgrounds are generated by a target neural network, the plurality of target backgrounds are displayed.
[0082] In operation S260, a selection operation of the user is acquired.
[0083] In operation S270, in response to the selection operation, the target background targeted by the selection operation is taken as the final background.
[0084] According to an embodiment of the present disclosure, a variety of different target backgrounds can be generated based on the description information input by the user. For example, the description information input by the user is a dog in a night scene with a starry sky, white clouds and the moon, but the user does not specifically require the type of puppy, color, number, etc. Therefore, the neural network can determine different types of puppies based on the existing materials, thereby generating different target backgrounds. For example, the neural network generates a background describing a teddy and a background describing a Tibetan mastiff. After generating multiple backgrounds, the user can choose the background they like from them, which improves the user experience.
[0085] Through the embodiments of the present disclosure, multiple results generated by calculation are displayed to the user, and the user can independently select the most satisfactory one as the background pattern, which flexibly provides the user with more choices.
[0086] Fig. 9 The block diagram of the background generation system according to the embodiment of the present disclosure is schematically shown.
[0087] like Fig. 9 As shown, the background generation system 400 includes a first acquisition module 410 , a determination module 420 and a generation module 430 .
[0088] The first acquisition module 410 is used to acquire description information input by a user.
[0089] The determination module 420 is used to determine at least one feature for describing a target background from the description information, wherein the target background is used for rendering a target object.
[0090] The generation module 430 is used to input at least one feature into the target neural network and generate a target background through the target neural network.
[0091] According to an embodiment of the present disclosure, by receiving the user's description information, one or more features for describing the target background are extracted from the description information, and the extracted one or more features are input into the target neural network. The target neural network can generate a corresponding target background according to the one or more features. Since the background image is not obtained by searching and matching based on existing pictures, but the corresponding background image is flexibly generated according to the user's requirements, it at least partially overcomes the technical problem in the related art that when the user needs to obtain a background that meets certain requirements, the user's requirements cannot be flexibly responded to, thereby achieving the technical effect of improving user experience satisfaction and increasing user usage rate.
[0092] Fig.10 A block diagram of a background generation system according to another embodiment of the present disclosure is schematically shown.
[0093] like Fig.10 As shown, the background generation system 400 further includes a training module 440 for pre-training the target neural network. The training module 440 includes an acquisition unit 441 and a training unit 442 .
[0094] The acquisition unit 441 is used to acquire background material samples, wherein each background in the background material samples includes a plurality of basic elements, and each basic element is used to characterize a feature of the corresponding background.
[0095] The training unit 442 is used to pre-train a neural network based on the basic elements contained in each background in the background material sample, and obtain a target neural network that can output a corresponding background according to one or more basic elements.
[0096] Through the embodiments of the present disclosure, by training a neural network, the machine can understand the needs of users and generate a picture background that meets the user's requirements based on the user's needs to meet the diverse needs of users.
[0097] According to an embodiment of the present disclosure, when each background in the background material sample is a picture background, the resolution of the picture background is greater than or equal to a preset value.
[0098] According to the embodiments of the present disclosure, a higher resolution means that the detail information contained in each part of the image is more complete and richer, which can improve the accuracy of the background output by the neural network.
[0099] Fig.11 The block diagram of the determination module according to the embodiment of the present disclosure is schematically shown.
[0100] like Fig.11 As shown, the determination module 420 includes a segmentation unit 421 and a determination unit 422 .
[0101] The segmentation unit 421 is used to segment the description information based on the semantic segmentation system to obtain one or more information segments.
[0102] The determining unit 422 is configured to determine at least one feature for describing the target background from one or more information segments.
[0103] Through the embodiments of the present disclosure, multiple information fragments can be generated within a few milliseconds through the semantic segmentation method, and feature information can be determined from the information fragments, which can improve recognition efficiency and more efficiently generate image materials that are highly consistent with the text description.
[0104] Fig.12 A block diagram of a background generation system according to another embodiment of the present disclosure is schematically shown.
[0105] like Fig.12 As shown, the background generation system 400 further includes a display module 450 , a second acquisition module 460 and a response module 470 .
[0106] The display module 450 is used to display multiple target backgrounds after generating multiple target backgrounds through the target neural network.
[0107] The second acquisition module 460 is used to acquire the user's selection operation.
[0108] The response module 470 is used to respond to the selection operation and use the target background targeted by the selection operation as the final background.
[0109] Through the embodiments of the present disclosure, multiple results generated by calculation are displayed to the user, and the user can independently select the most satisfactory one as the background pattern, which flexibly provides the user with more choices.
[0110] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0111] For example, any multiple of the first acquisition module 410, the determination module 420, the generation module 430, the training module 440, the display module 450, the second acquisition module 460, the response module 470, the segmentation unit 421, the determination unit 422, the acquisition unit 441, and the training unit 442 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first acquisition module 410, the determination module 420, the generation module 430, the training module 440, the display module 450, the second acquisition module 460, the response module 470, the segmentation unit 421, the determination unit 422, the acquisition unit 441 and the training unit 442 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or can be implemented in any one of the three implementation methods of software, hardware and firmware, or in an appropriate combination of any of them. Alternatively, at least one of the first acquisition module 410, the determination module 420, the generation module 430, the training module 440, the display module 450, the second acquisition module 460, the response module 470, the segmentation unit 421, the determination unit 422, the acquisition unit 441 and the training unit 442 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is executed.
[0112] Fig.13 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Fig.13 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0113] like Fig.13As shown, the computer system 500 according to the embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0114] In RAM 503, various programs and data required for the operation of system 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other through bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0115] According to an embodiment of the present disclosure, the system 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0116] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0117] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0118] According to an embodiment of the present disclosure, a computer-readable storage medium may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical cable, radio frequency signal, etc., or any suitable combination of the above.
[0119] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 502 and / or the RAM 503 described above and / or one or more memories other than the ROM 502 and the RAM 503 .
[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession 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 or flow chart, and the combination of the boxes in the block diagram or flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0121] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0122] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A background generation method, comprising: Get the description information entered by the user; Determining at least one feature for describing a target background from the description information, wherein the target background is used for rendering a target object; Inputting the at least one feature into a target neural network, so that the target neural network generates the target background based on the at least one feature and different types of background materials corresponding to the at least one feature, wherein a resolution of a picture background corresponding to the target background is greater than or equal to a preset value; The target background includes multiple ones, and the method further includes: After generating a plurality of target backgrounds by the target neural network, displaying the plurality of target backgrounds; Get the user's selection operation; and In response to the selection operation, the target background targeted by the selection operation is used as the final background.
2. The method according to claim 1, wherein: The method further comprises: Pre-training the target neural network includes: Acquire background material samples, wherein each background in the background material samples includes a plurality of basic elements, and each basic element is used to characterize a feature of the corresponding background; and A neural network is pre-trained based on the basic elements contained in each background in the background material sample to obtain a target neural network that can output a corresponding background according to one or more basic elements.
3. The method according to claim 1, wherein: Determining at least one feature for describing the target background from the description information includes: Segmenting the description information based on a semantic segmentation method to obtain one or more information segments; and At least one feature describing the target context is determined from the one or more information segments.
4. A background generation system, comprising: A first acquisition module, used to acquire description information input by a user; a determination module, configured to determine at least one feature for describing a target background from the description information, wherein the target background is used for rendering a target object; A generating module, configured to input the at least one feature into a target neural network, so that the target neural network generates the target background based on the at least one feature and different types of background materials corresponding to the at least one feature, wherein a resolution of a picture background corresponding to the target background is greater than or equal to a preset value; The target background includes multiple ones, and the system further includes: A display module, configured to display the multiple target backgrounds after the multiple target backgrounds are generated by the target neural network; A second acquisition module is used to acquire a user's selection operation; and The response module is used to respond to the selection operation and use the target background targeted by the selection operation as the final background.
5. The system according to claim 4, wherein: The system further comprises: A training module, used for pre-training the target neural network, comprising: an acquisition unit, configured to acquire background material samples, wherein each background in the background material samples includes a plurality of basic elements, and each basic element is used to characterize a feature of the corresponding background; and The training unit is used to pre-train a neural network based on the basic elements contained in each background in the background material sample to obtain a target neural network that can output a corresponding background according to one or more basic elements.
6. The system according to claim 4, wherein: The determination module comprises: a segmentation unit, configured to segment the description information based on a semantic segmentation system to obtain one or more information segments; and A determination unit is used to determine at least one feature for describing the target background from the one or more information fragments.
7. A computer system comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the background generation method according to any one of claims 1 to 3.
8. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the background generation method according to any one of claims 1 to 3.
