CN117115287A - Image generation method, device, electronic equipment and readable storage medium - Google Patents
Image generation method, device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN117115287A CN117115287A CN202311079293.2A CN202311079293A CN117115287A CN 117115287 A CN117115287 A CN 117115287A CN 202311079293 A CN202311079293 A CN 202311079293A CN 117115287 A CN117115287 A CN 117115287A
- Authority
- CN
- China
- Prior art keywords
- image
- feature map
- electronic device
- foreground
- mask
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0464—Convolutional networks [CNN, ConvNet]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Biophysics (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Image Processing (AREA)
Abstract
本申请公开了一种图像生成方法、装置、电子设备及可读存储介质,属于图像处理技术领域。其中,本申请实施例提供的图像生成方法包括:向第二电子设备发送第一图像对应的第一特征图;该第一图像包括:前景图像和第一背景图像;该第一特征图用于第二电子设备生成第二特征图;从第二电子设备接收第二特征图,并根据第二特征图生成第二背景图像;该第二背景图像和第一背景图像的图像内容不同;基于前景图像和第二背景图像,生成第二图像。
This application discloses an image generation method, device, electronic equipment and readable storage medium, which belongs to the technical field of image processing. Among them, the image generation method provided by the embodiment of the present application includes: sending a first feature map corresponding to the first image to the second electronic device; the first image includes: a foreground image and a first background image; the first feature map is used to The second electronic device generates a second feature map; receives the second feature map from the second electronic device, and generates a second background image according to the second feature map; the second background image and the first background image have different image contents; based on the foreground image and a second background image to generate a second image.
Description
技术领域Technical field
本申请属于图像处理技术领域,具体涉及一种图像生成方法、装置、电子设备及可读存储介质。This application belongs to the field of image processing technology, and specifically relates to an image generation method, device, electronic equipment and readable storage medium.
背景技术Background technique
目前,为了避免用户隐私的泄露,可以在电子设备中配置人工智能生成内容(Artificial Intelligence Generated Content,AIGC)大模型,这样在用户需求基于拍摄的用户图像生成内容更加丰富的用户图像时,用户无需将拍摄的用户图像发送至其他设备,而是可以直接触发电子设备将拍摄的用户图像输入至该AIGC大模型,以使得AIGC大模型可以对拍摄的用户图像进行处理,以生成用户需求的内容更加丰富的用户图像,从而用户可以得到需求的用户图像。Currently, in order to avoid the leakage of user privacy, artificial intelligence generated content (AIGC) large models can be configured in electronic devices. In this way, when the user needs to generate a user image with richer content based on the captured user image, the user does not need to Instead of sending the captured user image to other devices, the electronic device can be directly triggered to input the captured user image into the AIGC large model, so that the AIGC large model can process the captured user image to generate more content that the user needs. Rich user images so that users can get the user images they need.
但是,由于在电子设备将拍摄的用户图像输入至AIGC大模型之后,该AIGC大模型可能需要较长时间的计算才可以完成对拍摄的用户图像进行的处理,以生成用户需求的内容更加丰富的用户图像,因此,导致在生成用户需求的用户图像的过程中的耗时较长,如此,导致电子设备生成用户需求的图像的效率较低。However, after the electronic device inputs the captured user image into the AIGC large model, the AIGC large model may require a long time of calculation to complete the processing of the captured user image to generate richer content required by the user. The user image, therefore, results in a longer time-consuming process in generating the user image required by the user, thus causing the electronic device to be less efficient in generating the image required by the user.
发明内容Contents of the invention
本申请实施例的目的是提供一种图像生成方法、装置、电子设备及可读存储介质,能够解决电子设备生成用户需求的图像的效率较低的问题。The purpose of the embodiments of the present application is to provide an image generation method, device, electronic device and readable storage medium, which can solve the problem of low efficiency of electronic devices in generating images required by users.
第一方面,本申请实施例提供了一种图像生成方法,应用于第一电子设备,该方法包括:向第二电子设备发送第一图像对应的第一特征图;该第一图像包括:前景图像和第一背景图像;该第一特征图用于第二电子设备生成第二特征图;从第二电子设备接收第二特征图,并根据第二特征图生成第二背景图像;该第二背景图像和第一背景图像的图像内容不同;基于前景图像和第二背景图像,生成第二图像。In a first aspect, embodiments of the present application provide an image generation method, applied to a first electronic device. The method includes: sending a first feature map corresponding to a first image to a second electronic device; the first image includes: a foreground image and the first background image; the first feature map is used by the second electronic device to generate a second feature map; the second feature map is received from the second electronic device, and the second background image is generated according to the second feature map; the second The background image and the first background image have different image contents; a second image is generated based on the foreground image and the second background image.
第二方面,本申请实施例提供了一种图像生成方法,应用于第二电子设备,该方法包括:In a second aspect, embodiments of the present application provide an image generation method applied to a second electronic device. The method includes:
从第一电子设备接收第一图像对应的第一特征图;该第一图像包括:前景图像和第一背景图像;将第一特征图输入至第一模型,得到第一模型输出的第二特征图;该第二特征图是第一模型对第一特征图进行处理生成的;向第一电子设备发送第二特征图;该第二特征图用于第一电子设备生成第二背景图像,并基于前景图像和第二背景图像,生成第二图像;该第二背景图像和第一背景图像的图像内容不同。Receive the first feature map corresponding to the first image from the first electronic device; the first image includes: a foreground image and a first background image; input the first feature map to the first model to obtain the second feature output by the first model Figure; the second feature map is generated by processing the first feature map by the first model; sending the second feature map to the first electronic device; the second feature map is used by the first electronic device to generate a second background image, and A second image is generated based on the foreground image and the second background image; the second background image and the first background image have different image contents.
第三方面,本申请实施例提供了一种图像生成装置,该图像生成装置为第一图像生成装置,该第一图像生成装置包括:发送模块、接收模块以及处理模块。其中,发送模块,用于向第二图像生成装置发送第一图像对应的第一特征图;该第一图像包括:前景图像和第一背景图像;该第一特征图用于第二图像生成装置生成第二特征图。接收模块,用于从第二图像生成装置接收第二特征图。处理模块,用于根据接收模块接收的第二特征图生成第二背景图像;该第二背景图像和第一背景图像的图像内容不同;并基于前景图像和第二背景图像,生成第二图像。In a third aspect, embodiments of the present application provide an image generating device. The image generating device is a first image generating device. The first image generating device includes: a sending module, a receiving module and a processing module. Wherein, the sending module is used to send the first feature map corresponding to the first image to the second image generating device; the first image includes: a foreground image and a first background image; the first feature map is used for the second image generating device Generate a second feature map. A receiving module, configured to receive the second feature map from the second image generating device. A processing module configured to generate a second background image according to the second feature map received by the receiving module; the second background image and the first background image have different image contents; and generate a second image based on the foreground image and the second background image.
第四方面,本申请实施例提供了一种图像生成装置,该图像生成装置为第二图像生成装置,该第二图像生成装置包括:接收模块、处理模块以及发送模块。其中,接收模块,用于从第一图像生成装置接收第一图像对应的第一特征图;该第一图像包括:前景图像和第一背景图像。处理模块,用于将接收模块接收的第一特征图输入至第一模型,得到第一模型输出的第二特征图;该第二特征图是第一模型对第一特征图进行处理生成的。发送模块,用于向第一图像生成装置发送处理模块生成的第二特征图;该第二特征图用于第一图像生成装置生成第二背景图像,并基于前景图像和第二背景图像,生成第二图像,该第二背景图像和第一背景图像的图像内容不同。In a fourth aspect, embodiments of the present application provide an image generating device. The image generating device is a second image generating device. The second image generating device includes: a receiving module, a processing module and a sending module. Wherein, the receiving module is used to receive the first feature map corresponding to the first image from the first image generating device; the first image includes: a foreground image and a first background image. The processing module is configured to input the first feature map received by the receiving module into the first model to obtain the second feature map output by the first model; the second feature map is generated by processing the first feature map by the first model. A sending module, configured to send the second feature map generated by the processing module to the first image generating device; the second feature map is used by the first image generating device to generate a second background image, and based on the foreground image and the second background image, generate The second image has different image content from the first background image.
第五方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤,或实现如第二方面所述的方法的步骤。In a fifth aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are processed by the processor. When the processor is executed, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤,或实现如第二方面所述的方法的步骤。In a sixth aspect, embodiments of the present application provide a readable storage medium, which stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. , or implement the steps of the method described in the second aspect.
第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法的步骤,或实现如第二方面所述的方法的步骤。In a seventh aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. The steps of the method described in the second aspect, or the steps of implementing the method described in the second aspect.
第八方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤,或实现如第二方面所述的方法的步骤。In an eighth aspect, embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement the steps of the method described in the first aspect, or to implement the method as described in the first aspect. The steps of the method described in the second aspect.
在本申请实施例中,第一电子设备可以向第二电子设备发送第一图像对应的第一特征图,该第一图像包括前景图像和第一背景图像,该第一特征图用于第二电子设备生成第二特征图,以使得第二电子设备可以接收该第一特征图,并将该第一特征图输入至第一模型,得到该第一模型对该第一特征图进行处理生成的第二特征图,这样第二电子设备可以向第一电子设备发送该第二特征图,以使得第一电子设备可以根据该第二特征图生成第二背景图像,该第二背景图像和第一背景图像的图像内容不同,并基于前景图像和第二背景图像,生成第二图像。由于第一电子设备可以向算力较大的第二电子设备发送第一特征图,这样在第二电子设备将该第一特征图输入至第一模型之后,该第一模型仅需较短时间的计算便可以完成对第一特征图的处理,以生成第二特征图,以使得第一电子设备可以根据该第二特征图,快速地生成与第一背景图像的图像内容不同的第二背景图像,而无需第一电子设备进行计算生成该第二背景图像,因此,可以减少生成第二背景图像的耗时,从而第一电子设备可以快速地基于前景图像和该第二背景图像生成用户需求的第二图像;并且地,由于在生成用户需求的第二图像的过程中,第一电子设备和第二电子设备之间传输是第一特征图和第二特征图,而不是第一图像和第二背景图像,因此,可以避免在生成用户需求的第二图像的过程中出现第一图像或第二背景图像的泄露的情况;如此,可以在避免用户隐私的泄露的情况下,提高第一电子设备生成用户需求的图像的效率。In this embodiment of the present application, the first electronic device may send a first feature map corresponding to the first image to the second electronic device. The first image includes a foreground image and a first background image. The first feature map is used for the second electronic device. The electronic device generates the second feature map so that the second electronic device can receive the first feature map and input the first feature map to the first model to obtain the first feature map generated by the first model. the second feature map, so that the second electronic device can send the second feature map to the first electronic device, so that the first electronic device can generate a second background image based on the second feature map, and the second background image and the first The background image has different image contents, and the second image is generated based on the foreground image and the second background image. Since the first electronic device can send the first feature map to the second electronic device with greater computing power, after the second electronic device inputs the first feature map into the first model, the first model only needs a shorter time The calculation can complete the processing of the first feature map to generate the second feature map, so that the first electronic device can quickly generate a second background that is different from the image content of the first background image based on the second feature map. image without the need for the first electronic device to perform calculations to generate the second background image. Therefore, the time-consuming process of generating the second background image can be reduced, so that the first electronic device can quickly generate user requirements based on the foreground image and the second background image. The second image of The second background image, therefore, can avoid the leakage of the first image or the second background image in the process of generating the second image required by the user; in this way, the first image can be improved while avoiding the leakage of user privacy. The efficiency with which an electronic device generates images required by the user.
附图说明Description of drawings
图1是本申请实施例提供的图像生成方法的流程示意图之一;Figure 1 is one of the flow diagrams of the image generation method provided by the embodiment of the present application;
图2是本申请实施例提供的图像生成方法的流程示意图之二;Figure 2 is the second schematic flowchart of the image generation method provided by the embodiment of the present application;
图3是本申请实施例提供的图像生成方法的流程示意图之三;Figure 3 is the third schematic flowchart of the image generation method provided by the embodiment of the present application;
图4是本申请实施例提供的图像生成方法的流程示意图之四;Figure 4 is the fourth schematic flowchart of the image generation method provided by the embodiment of the present application;
图5是本申请实施例提供的第一图像生成装置的结构示意图;Figure 5 is a schematic structural diagram of a first image generation device provided by an embodiment of the present application;
图6是本申请实施例提供的第二图像生成装置的结构示意图;Figure 6 is a schematic structural diagram of a second image generation device provided by an embodiment of the present application;
图7是本申请实施例提供的电子设备的硬件结构示意图之一;Figure 7 is one of the schematic diagrams of the hardware structure of the electronic device provided by the embodiment of the present application;
图8是本申请实施例提供的电子设备的硬件结构示意图之二;Figure 8 is a second schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application;
图9是本申请实施例提供的服务器的硬件结构示意图。Figure 9 is a schematic diagram of the hardware structure of a server provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一图像可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first image may be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
本申请的说明书和权利要求书中的术语“至少一个(项)”、“至少之一”等指其包含对象中的任意一个、任意两个或两个以上的组合。例如,a、b、c中的至少一个(项),可以表示:“a”、“b”、“c”、“a和b”、“a和c”、“b和c”以及“a、b和c”,其中a,b,c可以是单个,也可以是多个。同理,“至少两个(项)”是指两个或两个以上,其表达的含义与“至少一个(项)”类似。The terms "at least one (item)", "at least one", etc. in the description and claims of this application refer to any one, any two or a combination of more than two of the included objects. For example, at least one (item) of a, b, c can represent: "a", "b", "c", "a and b", "a and c", "b and c" and "a , b and c", where a, b, c can be single or multiple. Similarly, "at least two (items)" refers to two or more than two, and its meaning is similar to "at least one (item)".
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的图像生成方法、装置、电子设备及可读存储介质进行详细地说明。The image generation method, device, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请实施例提供的图像生成方法,执行主体可以为第一图像生成装置和第二图像生成装置,或者第一电子设备和第二电子设备,或者第一电子设备和第二电子设备中的功能模块或实体。本申请实施例中以第一电子设备和第二电子设备执行图像生成方法为例,说明本申请实施例提供的图像生成方法的。For the image generation method provided by the embodiments of the present application, the execution subject may be the first image generation device and the second image generation device, or the first electronic device and the second electronic device, or the functions in the first electronic device and the second electronic device. module or entity. In the embodiment of the present application, the image generation method performed by the first electronic device and the second electronic device is used as an example to illustrate the image generation method provided by the embodiment of the present application.
图1示出了本申请实施例提供的一种图像生成方法的流程图。如图1所示,本申请实施例提供的图像生成方法可以包括下述的步骤101至步骤106。Figure 1 shows a flow chart of an image generation method provided by an embodiment of the present application. As shown in Figure 1, the image generation method provided by the embodiment of the present application may include the following steps 101 to 106.
步骤101、第一电子设备向第二电子设备发送第一图像对应的第一特征图。Step 101: The first electronic device sends the first feature map corresponding to the first image to the second electronic device.
在本申请的一些实施例中,上述第一电子设备可以为用户使用的电子设备,例如,第一电子设备可以为手机、电脑、平板电脑等。上述第二电子设备可以为以下任一项:其他用户使用的电子设备、服务器等。In some embodiments of the present application, the first electronic device may be an electronic device used by a user. For example, the first electronic device may be a mobile phone, a computer, a tablet, etc. The above-mentioned second electronic device may be any of the following: electronic devices used by other users, servers, etc.
在本申请的一些实施例中,上述第二电子设备的算力大于第一电子设备的算力。In some embodiments of the present application, the computing power of the second electronic device is greater than the computing power of the first electronic device.
在本申请的一些实施例中,上述第一图像可以为第一电子设备通过摄像头拍摄得到的图像,或从其他设备接收的图像。例如,第一图像可以为第一电子设备通过摄像头拍摄得到的4K图像。In some embodiments of the present application, the above-mentioned first image may be an image captured by the first electronic device through a camera, or an image received from other devices. For example, the first image may be a 4K image captured by the first electronic device through a camera.
本申请实施例中,上述第一图像包括:前景图像和第一背景图像;上述第一特征图用于第二电子设备生成第二特征图。In the embodiment of the present application, the above-mentioned first image includes: a foreground image and a first background image; the above-mentioned first feature map is used by the second electronic device to generate a second feature map.
可以理解,第一图像是由前景图像和第一背景图像构成的。It can be understood that the first image is composed of a foreground image and a first background image.
在本申请的一些实施例中,上述前景图像中可以包括以下至少一项:人物图像、前景物图像。需要说明的是,上述“人物图像”可以理解为:在前景图像中的人物所在的图像区域。上述“前景物图像”可以理解为:在前景图像中的物体所在的图像区域,该物体可以包括以下至少一项:动物、景物等。In some embodiments of the present application, the foreground image may include at least one of the following: a person image and a foreground object image. It should be noted that the above-mentioned "person image" can be understood as: the image area where the person in the foreground image is located. The above-mentioned "foreground object image" can be understood as: the image area where the object in the foreground image is located, and the object may include at least one of the following: animals, scenery, etc.
在本申请的一些实施例中,上述第一特征图可以第一电子设备通过第二模型对第一图像进行特征提取得到的特征图。其中,该第二模型可以为卷积网络模型。In some embodiments of the present application, the above-mentioned first feature map may be a feature map obtained by extracting features from the first image by the first electronic device through the second model. Wherein, the second model may be a convolutional network model.
下面将举例说明第一电子设备得到第一特征图的具体方案。The following will illustrate a specific solution for the first electronic device to obtain the first feature map.
在本申请的一些实施例中,结合图1,如图2所示,在上述步骤101之前,本申请实施例提供的图像生成方法还可以包括下述的步骤201。In some embodiments of the present application, as shown in Figure 2 in conjunction with Figure 1, before the above step 101, the image generation method provided by the embodiment of the present application may also include the following step 201.
步骤201、第一电子设备将第一图像输入至编码器中,得到编码器输出的第一特征图。Step 201: The first electronic device inputs the first image into the encoder to obtain the first feature map output by the encoder.
本申请实施例中,上述第一特征图是编码器对第一图像进行编码得到的。In the embodiment of the present application, the above-mentioned first feature map is obtained by encoding the first image by the encoder.
在本申请的一些实施例中,上述编码器具体可以为:卷积网络模型中的变分自编码器(VariationalAuto Encoder,VAE)。In some embodiments of the present application, the above-mentioned encoder may specifically be: a variational autoencoder (VAE) in a convolutional network model.
可选地,上述VAE可以为:第一电子设备对预设的卷积网络模型进行训练得到的。可以理解,第一电子设备中的VAE与其他设备中的VAE不同,即其他设备通过VAE无法解码得到可视的图像。Optionally, the above VAE may be obtained by training a preset convolutional network model by the first electronic device. It can be understood that the VAE in the first electronic device is different from the VAE in other devices, that is, other devices cannot decode and obtain visible images through VAE.
在本申请的一些实施例中,上述第一特征图的尺寸小于第一图像。可以理解,传输第一特征图所需的数据量小于传输第一图像所需的数据量。In some embodiments of the present application, the size of the above-mentioned first feature map is smaller than the first image. It can be understood that the amount of data required to transmit the first feature map is smaller than the amount of data required to transmit the first image.
本申请实施例中,第一电子设备可以通过VAE,将第一图像编码成的隐空间特征,即第一特征图,该第一特征图在其他设备上无法被解码成可视的图像,因此,可以避免用户的隐私泄露。In the embodiment of the present application, the first electronic device can encode the first image into latent space features, that is, the first feature map, through VAE. The first feature map cannot be decoded into a visible image on other devices. Therefore, , which can avoid user privacy leakage.
如此可知,由于第一电子设备可以通过编码器将第一图像编码成一定尺寸的第一特征图,这样在向第二电子设备发送第一特征图之后,该第一特征图无法在第二电子设备和其他设备中的任一个上被解码成可视的图像,因此,可以在节省传输资源的情况下,避免用户的隐私泄露,如此,可以在提高传输效率的情况下,提高第一电子设备的安全性。It can be seen that since the first electronic device can encode the first image into a first feature map of a certain size through the encoder, after sending the first feature map to the second electronic device, the first feature map cannot be displayed on the second electronic device. The first electronic device can be decoded into a visible image on any one of the devices and other devices. Therefore, the user's privacy can be avoided while saving transmission resources. In this way, the first electronic device can be improved while improving transmission efficiency. security.
在本申请的一些实施例中,上述第二特征图具体可以为其他背景图像对应的特征图。其中,该其他背景图像可以为下述实施例中的第二背景图像,该其他背景图像和第一背景图像的图像内容不同,该图像内容可以包括以下至少一项:图像色条、图像风格、图像景物等,该图像风格可以包括以下至少一项:图像的色彩、图像的色调、内容的布局等。In some embodiments of the present application, the above-mentioned second feature map may specifically be a feature map corresponding to other background images. Wherein, the other background image may be the second background image in the following embodiments. The image content of the other background image is different from that of the first background image. The image content may include at least one of the following: image color bar, image style, Image scenery, etc., the image style may include at least one of the following: image color, image tone, content layout, etc.
可以理解,其他背景图像和第一背景图像的图像结构相似,且其他背景图像的内容更加丰富。It can be understood that the other background images have similar image structures to the first background image, and the content of the other background images is richer.
在本申请的一些实施例中,在用户需求基于第一多媒体文件生成内容更加丰富的第二多媒体文件的情况下,用户可以触发第一电子设备选中第一多媒体文件,以使得第一电子设备可以获取该第一图像对应的第一特征图,并通过第一应用程序向第二电子设备发送该第一特征图。In some embodiments of the present application, when the user needs to generate a second multimedia file with richer content based on the first multimedia file, the user can trigger the first electronic device to select the first multimedia file to The first electronic device can obtain the first feature map corresponding to the first image, and send the first feature map to the second electronic device through the first application program.
可选地,该第一多媒体文件可以为以下任一项:第一图像、第一视频,在该第一多媒体文件为第一视频的情况下,该第一图像可以为第一视频的多帧图像中的任意一帧图像。该第一多媒体文件可以为第一电子设备的摄像头拍摄得到的多媒体文件,或从其他设备接收的多媒体文件。Optionally, the first multimedia file may be any of the following: a first image or a first video. In the case where the first multimedia file is a first video, the first image may be a first Any one of the multiple frames of the video. The first multimedia file may be a multimedia file captured by the camera of the first electronic device, or a multimedia file received from other devices.
可选地,该第二多媒体文件可以为以下任一项:其他图像、第二视频,该其他图像可以为下述实施例中的第二图像,在该第二多媒体文件为第二视频的情况下,该其他图像可以为第二视频的多帧图像中,与第一图像对应的播放时间戳相同的一帧图像。Optionally, the second multimedia file may be any of the following: other images or a second video. The other images may be the second images in the following embodiments, where the second multimedia file is the second image. In the case of a second video, the other image may be an image among multiple frames of the second video that has the same playback timestamp corresponding to the first image.
可选地,该第一应用程序可以为以下任一项:聊天类应用程序、图像处理类应用程序等、拍摄类应用程序等。Optionally, the first application may be any of the following: a chatting application, an image processing application, a shooting application, etc.
在本申请的一些实施例中,第一电子设备还可以向第二电子设备发送第一信息,该第一信息用于与第一特征图生成第二特征图。其中,该第一信息可以包括以下至少一项:第一图像对应的深度图、第一文本数据;示例性地,该第一信息包括第一图像对应的深度图和第一文本数据。可以理解,第二电子设备可以基于第一信息和第一特征图,生成第二特征图。In some embodiments of the present application, the first electronic device may also send first information to the second electronic device, where the first information is used to generate a second feature map together with the first feature map. The first information may include at least one of the following: a depth map corresponding to the first image and first text data; for example, the first information includes a depth map corresponding to the first image and first text data. It can be understood that the second electronic device can generate the second feature map based on the first information and the first feature map.
可选地,上述第一信息用于第二电子设备确定上述其他背景图像的图像内容。Optionally, the first information is used by the second electronic device to determine the image content of the other background images.
可选地,在第一图像为第一电子设备通过摄像头拍摄得到的图像的情况下,在拍摄第一图像时,第一电子设备还可以通过第一电子设备的飞行时间(Time OfFlight,TOF)传感器Sensor采集得到的上述深度图。在第一图像为第一电子设备从其他设备接收的图像的情况下,第一电子设备还可以从其他设备接收上述深度图。Optionally, in the case where the first image is an image captured by the first electronic device through a camera, when capturing the first image, the first electronic device may also capture a time of flight (TOF) of the first electronic device. The above depth map collected by the sensor Sensor. In the case where the first image is an image received by the first electronic device from another device, the first electronic device may also receive the above-mentioned depth map from the other device.
可选地,上述第一文本数据具体可以为用户在第一电子设备中输入的文本数据。Optionally, the above-mentioned first text data may specifically be text data input by the user in the first electronic device.
步骤102、第二电子设备从第一电子设备接收第一图像对应的第一特征图。Step 102: The second electronic device receives the first feature map corresponding to the first image from the first electronic device.
在本申请的一些实施例中,上述第二电子设备的算力大于第一电子设备的算力。In some embodiments of the present application, the computing power of the second electronic device is greater than the computing power of the first electronic device.
本申请实施例中,上述第一图像包括:前景图像和第一背景图像。In this embodiment of the present application, the above-mentioned first image includes: a foreground image and a first background image.
步骤103、第二电子设备将第一特征图输入至第一模型,得到第一模型输出的第二特征图。Step 103: The second electronic device inputs the first feature map to the first model to obtain the second feature map output by the first model.
本申请实施例中,上述第二特征图是第一模型对第一特征图进行处理生成的。In the embodiment of the present application, the above-mentioned second feature map is generated by processing the first feature map by the first model.
可以理解,由于第二电子设备的算力大于第一电子设备的算力,因此,在第二电子设备将第一特征图输入至第一模型之后,第一模型可以快速地对第一特征图进行处理,以快速地生成并输出第二特征图。It can be understood that since the computing power of the second electronic device is greater than that of the first electronic device, after the second electronic device inputs the first feature map to the first model, the first model can quickly calculate the first feature map. Processing is performed to quickly generate and output the second feature map.
在本申请的一些实施例中,上述第一模型具体可以为:人工智能生成内容(Artificial Intelligence Generated Content,AIGC)大模型。In some embodiments of the present application, the above-mentioned first model may specifically be: an artificial intelligence generated content (Artificial Intelligence Generated Content, AIGC) large model.
需要说明的是,针对AIGC大模型对第一特征图进行处理生成第二特征图的说明,可以参考相关技术中的具体描述,本申请实施例在此不予赘述。It should be noted that, for the description of processing the first feature map to generate the second feature map for the AIGC large model, reference can be made to the specific description in the related art, and the embodiments of the present application will not be repeated here.
在一种示例中,第二电子设备可以直接将第一特征图输入至第一模型,以得到第一模型输出的第二特征图。In one example, the second electronic device can directly input the first feature map to the first model to obtain the second feature map output by the first model.
在另一种示例中,第二电子设备可以先得到上述第一图像中前景图像在第一特征图中对应的特征区域,并根据该前景图像在第一特征图中对应的特征区域,得到第一背景图像在第一特征图中对应的特征区域,然后再将第一背景图像在第一特征图中对应的特征区域输入至第一模型,以得到第一模型输出的第二特征图。In another example, the second electronic device may first obtain the feature area corresponding to the foreground image in the first feature map in the first image, and obtain the feature area corresponding to the foreground image in the first feature map. A feature area corresponding to a background image in the first feature map is then input into the first model to obtain a second feature map output by the first model.
可选地,第二电子设备可以采用显著性目标检测(Salient Object Detection,SOD)算法对第一特征图进行检测,以确定前景图像在第一特征图中对应的特征区域。或者,第二电子设备可以从第一电子设备接收一个信息,该信息指示人物图像在第一图像中的位置,从而第二电子设备可以根据该信息,确定前景图像在第一特征图中对应的特征区域。Optionally, the second electronic device may use a Salient Object Detection (SOD) algorithm to detect the first feature map to determine the corresponding feature area of the foreground image in the first feature map. Alternatively, the second electronic device may receive a piece of information from the first electronic device indicating the position of the person image in the first image, so that the second electronic device can determine the corresponding position of the foreground image in the first feature map based on the information. Characteristic area.
需要说明的是,针对上述SOD算法的说明,可以参考相关技术中的具体描述,本申请实施例在此不予赘述。It should be noted that for the description of the above-mentioned SOD algorithm, reference may be made to the specific descriptions in related technologies, and the embodiments of the present application will not be repeated here.
在本申请的一些实施例中,第二电子设备还可以从第一电子设备接收第一信息,从而第二电子设备可以将第一特征图和第一信息输入至第一模型,得到第一模型输出的第二特征图。其中,该第一信息可以包括以下至少一项:第一图像对应的深度图、第一文本数据,该第一信息用于第一模型确定上述其他背景图像的图像内容;示例性地,该第一信息包括第一图像对应的深度图和第一文本数据。In some embodiments of the present application, the second electronic device can also receive the first information from the first electronic device, so that the second electronic device can input the first feature map and the first information to the first model to obtain the first model. The second feature map of the output. Wherein, the first information may include at least one of the following: a depth map corresponding to the first image, and first text data. The first information is used by the first model to determine the image content of the other background images; for example, the third One piece of information includes a depth map corresponding to the first image and first text data.
可选地,在第一信息中不包括第一图像对应的深度图的情况下,第二电子设备可以先采用单目深度估计模块对第一特征图进行检测,以得到第一图像对应的深度图,然后再将第一特征图、第一图像对应的深度图以及第一文本数据输入至第一模型,以得到第二特征图。Optionally, when the first information does not include the depth map corresponding to the first image, the second electronic device may first use a monocular depth estimation module to detect the first feature map to obtain the depth corresponding to the first image. image, and then input the first feature map, the depth map corresponding to the first image, and the first text data into the first model to obtain the second feature map.
需要说明的是,针对上述深度图和第一文本数据的说明,可以参考上述实施例中的具体描述,本申请实施例在此不再赘述。It should be noted that for the description of the depth map and the first text data, reference may be made to the specific descriptions in the above embodiments, and the embodiments of the present application will not be repeated here.
步骤104、第二电子设备向第一电子设备发送第二特征图。Step 104: The second electronic device sends the second feature map to the first electronic device.
本申请实施例中,上述第二特征图用于第一电子设备生成第二背景图像,并基于前景图像和第二背景图像,生成第二图像,该第二背景图像和第一背景图像的图像内容不同。In the embodiment of the present application, the above-mentioned second feature map is used by the first electronic device to generate a second background image, and generate a second image based on the foreground image and the second background image. The second background image and the first background image are The content is different.
步骤105、第一电子设备从第二电子设备接收第二特征图,并根据第二特征图生成第二背景图像。Step 105: The first electronic device receives the second feature map from the second electronic device, and generates a second background image based on the second feature map.
本申请实施例中,上述第二背景图像和第一背景图像的图像内容不同。In this embodiment of the present application, the image content of the second background image and the first background image are different.
在本申请的一些实施例中,上述第二背景图像可以为第一电子设备通过上述第二模型对第二特征图进行处理生成的图像。In some embodiments of the present application, the second background image may be an image generated by the first electronic device by processing the second feature map through the second model.
下面将举例说明第一电子设备生成第二背景图像的具体方案。A specific solution for the first electronic device to generate the second background image will be described below with an example.
在本申请的一些实施例中,结合图1,如图3所示,上述步骤105具体可以通过下述的步骤105a实现。In some embodiments of the present application, as shown in FIG. 3 in conjunction with FIG. 1 , the above step 105 may be implemented through the following step 105a.
步骤105a、第一电子设备从第二电子设备接收第二特征图,并将第二特征图输入至第一电子设备的解码器中,得到解码器输出的第二背景图像。Step 105a: The first electronic device receives the second feature map from the second electronic device, and inputs the second feature map into the decoder of the first electronic device to obtain a second background image output by the decoder.
本申请实施例中,上述第二背景图像是解码器对第二特征图进行解码得到的。In the embodiment of the present application, the above-mentioned second background image is obtained by decoding the second feature map by the decoder.
在本申请的一些实施例中,上述解码器可以为上述VAE。In some embodiments of the present application, the above-mentioned decoder may be the above-mentioned VAE.
在本申请的一些实施例中,上述第二特征图的尺寸小于第二背景图像。可以理解,传输第二特征图所需的数据量小于传输第二背景图像所需的数据量。In some embodiments of the present application, the size of the above-mentioned second feature map is smaller than the second background image. It can be understood that the amount of data required to transmit the second feature map is smaller than the amount of data required to transmit the second background image.
如此可知,由于仅第一电子设备可以通过解码器将第二特征图解码成第二背景图像,而第二电子设备和其他设备无法将第二特征图解码成可视的图像,因此,可以避免用户的隐私泄露,如此,可以提高第一电子设备的安全性。It can be seen that since only the first electronic device can decode the second feature map into a second background image through the decoder, but the second electronic device and other devices cannot decode the second feature map into a visible image, therefore, it can be avoided The user's privacy is leaked, thus, the security of the first electronic device can be improved.
步骤106、第一电子设备基于前景图像和第二背景图像,生成第二图像。Step 106: The first electronic device generates a second image based on the foreground image and the second background image.
在本申请的一些实施例中,第一电子设备可以将前景图像和第二背景图像进行融合,以生成第二图像。In some embodiments of the present application, the first electronic device may fuse the foreground image and the second background image to generate the second image.
可选地,第一电子设备可以在第二背景图像上叠加前景图像,以将前景图像和第二背景图像进行融合。Optionally, the first electronic device may superimpose the foreground image on the second background image to fuse the foreground image and the second background image.
本申请实施例中,由于第一图像的前景图像中的人物和物体常为用户所需求的人物和物体,即用户可能不需求前景图像中的人物和物体发生变化,因此,第一电子设备可以基于前景图像和第二背景图像,生成第二图像,该第二图像中的人物和物体与第一图像中的前景图像中的人物和物体完全相同。In the embodiment of the present application, since the characters and objects in the foreground image of the first image are often the characters and objects required by the user, that is, the user may not require the characters and objects in the foreground image to change. Therefore, the first electronic device can Based on the foreground image and the second background image, a second image is generated, and the characters and objects in the second image are exactly the same as the characters and objects in the foreground image in the first image.
本申请实施例提供一种图像生成方法,第一电子设备可以向第二电子设备发送第一图像对应的第一特征图,该第一图像包括前景图像和第一背景图像,该第一特征图用于第二电子设备生成第二特征图,以使得第二电子设备可以接收该第一特征图,并将该第一特征图输入至第一模型,得到该第一模型对该第一特征图进行处理生成的第二特征图,这样第二电子设备可以向第一电子设备发送该第二特征图,以使得第一电子设备可以根据该第二特征图生成第二背景图像,该第二背景图像和第一背景图像的图像内容不同,并基于前景图像和第二背景图像,生成第二图像。由于第一电子设备可以向算力较大的第二电子设备发送第一特征图,这样在第二电子设备将该第一特征图输入至第一模型之后,该第一模型仅需较短时间的计算便可以完成对第一特征图的处理,以生成第二特征图,以使得第一电子设备可以根据该第二特征图,快速地生成与第一背景图像的图像内容不同的第二背景图像,而无需第一电子设备进行计算生成该第二背景图像,因此,可以减少生成第二背景图像的耗时,从而第一电子设备可以快速地基于前景图像和该第二背景图像生成用户需求的第二图像;并且,由于在生成用户需求的第二图像的过程中,第一电子设备和第二电子设备之间传输是第一特征图和第二特征图,而不是第一图像和第二背景图像,因此,可以避免在生成用户需求的第二图像的过程中出现第一图像或第二背景图像的泄露的情况;如此,可以在避免用户隐私的泄露的情况下,提高第一电子设备生成用户需求的图像的效率。Embodiments of the present application provide an image generation method. A first electronic device can send a first feature map corresponding to a first image to a second electronic device. The first image includes a foreground image and a first background image. The first feature map Used by the second electronic device to generate the second feature map, so that the second electronic device can receive the first feature map and input the first feature map to the first model to obtain the first model's response to the first feature map The generated second feature map is processed, so that the second electronic device can send the second feature map to the first electronic device, so that the first electronic device can generate a second background image according to the second feature map, and the second background image The image content of the image and the first background image are different, and the second image is generated based on the foreground image and the second background image. Since the first electronic device can send the first feature map to the second electronic device with greater computing power, after the second electronic device inputs the first feature map into the first model, the first model only needs a shorter time The calculation can complete the processing of the first feature map to generate the second feature map, so that the first electronic device can quickly generate a second background that is different from the image content of the first background image based on the second feature map. image without the need for the first electronic device to perform calculations to generate the second background image. Therefore, the time-consuming process of generating the second background image can be reduced, so that the first electronic device can quickly generate user requirements based on the foreground image and the second background image. The second image of Therefore, it is possible to avoid the leakage of the first image or the second background image in the process of generating the second image required by the user; in this way, the first electronic image can be improved while avoiding the leakage of the user's privacy. The efficiency with which the device generates the images required by the user.
下面将举例说明第二电子设备生成第二特征图的具体方案。The following will illustrate a specific solution for the second electronic device to generate the second feature map.
在本申请的一些实施例中,上述前景图像中包括人物图像。可选地,结合图1,如图4所示,在上述步骤103之前,本申请实施例提供的图像生成方法还可以包括下述的步骤301至步骤304,且上述步骤103具体可以通过下述的步骤103a和步骤103b实现。In some embodiments of the present application, the foreground image includes a character image. Optionally, in conjunction with Figure 1, as shown in Figure 4, before the above step 103, the image generation method provided by the embodiment of the present application may also include the following steps 301 to 304, and the above step 103 may be specifically performed by the following Steps 103a and 103b are implemented.
步骤301、第一电子设备根据第一图像,确定第一掩模图像。Step 301: The first electronic device determines the first mask image based on the first image.
需要说明的是,针对步骤101和步骤301的执行顺序,本申请实施例在此不作限定。在一种示例中,可以先执行步骤101,再执行步骤301;在另一种示例中,可以先执行步骤301,再执行步骤101;在又一种示例中,可以在执行步骤101的同时,执行步骤301。图4中是以先执行步骤101,再执行步骤301进行示意的。It should be noted that the embodiment of the present application does not limit the execution order of step 101 and step 301 here. In one example, step 101 can be performed first, and then step 301 can be performed; in another example, step 301 can be performed first, and then step 101 can be performed; in yet another example, while step 101 can be performed, Execute step 301. In Figure 4, step 101 is executed first, and then step 301 is executed.
本申请实施例中,上述第一掩模图像指示人物图像在第一图像中的位置。In the embodiment of the present application, the above-mentioned first mask image indicates the position of the character image in the first image.
在本申请的一些实施例中,上述第一掩模图像中的各个像素点分别与第一图像中的一个像素点对应,且在第一掩模图像中,与上述人物图像中的像素点对应的像素点的像素值可以为“1”,与其他图像中的像素点对应的像素点的像素值可以为“0”。In some embodiments of the present application, each pixel point in the first mask image corresponds to a pixel point in the first image, and in the first mask image, each pixel point in the first mask image corresponds to a pixel point in the person image. The pixel value of the pixel point can be "1", and the pixel value of the pixel point corresponding to the pixel point in other images can be "0".
在本申请的一些实施例中,第一电子设备可以通过人像分割算法模块,采用人像分割算法对第一图像进行计算,以确定第一掩模图像。In some embodiments of the present application, the first electronic device may use the portrait segmentation algorithm module to calculate the first image to determine the first mask image.
需要说明的是,针对上述人像分割算法的说明,可以参考相关技术中的具体描述,本申请实施例在此不予赘述。It should be noted that for the description of the above portrait segmentation algorithm, reference may be made to the specific descriptions in related technologies, and the embodiments of the present application will not be repeated here.
步骤302、第一电子设备向第二电子设备发送第一掩模图像。Step 302: The first electronic device sends the first mask image to the second electronic device.
本申请实施例中,上述第一掩模图像用于第二电子设备确定前景图像在第一特征图中对应的第一特征区域。In this embodiment of the present application, the above-mentioned first mask image is used by the second electronic device to determine the first feature area corresponding to the foreground image in the first feature map.
本申请实施例中,上述第二特征图是第二电子设备根据第一背景图像在第一特征图中对应的第二特征区域生成的,该第二特征区域是第二电子设备根据第一特征区域确定的。In the embodiment of the present application, the above-mentioned second feature map is generated by the second electronic device based on the second feature area corresponding to the first background image in the first feature map. The second feature area is generated by the second electronic device based on the first feature. area determined.
本申请实施例中,由于第一电子设备的算力有限,这样第一电子设备可能需要较长的时间才能确定前景图像在第一图像中的位置,因此,第一电子设备可以先快速地确定第一掩模图像,并向第二电子设备发送该第一掩模图像,以使得算力较大的第二电子设备可以确定前景图像在第一特征图中对应的第一特征区域。In the embodiment of the present application, due to the limited computing power of the first electronic device, it may take a long time for the first electronic device to determine the position of the foreground image in the first image. Therefore, the first electronic device can quickly determine the position of the foreground image in the first image. The first mask image is sent to the second electronic device, so that the second electronic device with greater computing power can determine the first feature area corresponding to the foreground image in the first feature map.
步骤303、第二电子设备从第一电子设备接收第一掩模图像。Step 303: The second electronic device receives the first mask image from the first electronic device.
本申请实施例中,上述第一掩模图像指示人物图像在第一图像中的位置。In the embodiment of the present application, the above-mentioned first mask image indicates the position of the character image in the first image.
步骤304、第二电子设备基于第一掩模图像,确定前景图像在第一特征图中对应的第一特征区域。Step 304: The second electronic device determines the first feature area corresponding to the foreground image in the first feature map based on the first mask image.
在本申请的一些实施例中,上述前景图像可以包括人物图像和前景物图像,从而第二电子设备可以先基于第一掩模图像,确定人物图像在第一特征图中对应的特征区域,然后再对第一特征图进行检测,以确定前景物图像在第一特征图中对应的特征区域,从而第二电子设备可以根据人物图像和前景物图像在第一特征图中对应的特征区域,确定前景图像在第一特征图中对应的第一特征区域。In some embodiments of the present application, the foreground image may include a person image and a foreground object image, so that the second electronic device may first determine the characteristic area corresponding to the person image in the first feature map based on the first mask image, and then The first feature map is then detected to determine the corresponding feature area of the foreground object image in the first feature map, so that the second electronic device can determine the corresponding feature area of the person image and the foreground object image in the first feature map. The first feature area corresponding to the foreground image in the first feature map.
在本申请的一些实施例中,上述前景图像中还包括前景物图像。可选地,上述步骤304具体可以通过下述的步骤304a和步骤304b实现。In some embodiments of the present application, the foreground image also includes a foreground object image. Optionally, the above step 304 can be specifically implemented through the following steps 304a and 304b.
步骤304a、第二电子设备根据第一掩模图像,从第一特征图中确定人物图像在第一特征图中对应的第三特征区域。Step 304a: The second electronic device determines the third feature area corresponding to the person image in the first feature map from the first feature map based on the first mask image.
在本申请的一些实施例中,第二电子设备可以先根据第一掩模图像中像素值为“1”的像素点的位置,确定第一特征图中对应的像素点的位置,然后再将该第一特征图中对应的像素点所处的区域,确定为第三特征区域。In some embodiments of the present application, the second electronic device may first determine the position of the corresponding pixel in the first feature map based on the position of the pixel with a pixel value of “1” in the first mask image, and then The area where the corresponding pixel point in the first feature map is located is determined as the third feature area.
步骤304b、第二电子设备将第三特征区域和前景物图像在第一特征图中对应的第四特征区域,确定为第一特征区域。Step 304b: The second electronic device determines the third feature area and the fourth feature area corresponding to the foreground object image in the first feature map as the first feature area.
在本申请的一些实施例中,第二电子设备可以先通过前景分割模块,采用SOD算法对第一特征图进行检测,以确定第四特征区域,然后再将第三特征区域和该第四特征区域所构成的区域,确定为第一特征区域。In some embodiments of the present application, the second electronic device may first use the foreground segmentation module to detect the first feature map using the SOD algorithm to determine the fourth feature area, and then combine the third feature area and the fourth feature The area constituted by the area is determined as the first characteristic area.
如此可知,由于第二电子设备可以根据第一掩模图像,准确地从第一特征图中确定前景图像中的人物图像在第一特征图中对应的第三特征区域,这样电子设备可以根据该第三特征区域和前景物图像在第一特征图中对应的第四特征区域,准确地确定前景图像在第一特征图中对应的第一特征区域。It can be seen from this that since the second electronic device can accurately determine the third feature area corresponding to the person image in the foreground image in the first feature map from the first feature map based on the first mask image, the electronic device can thus determine based on the first feature map. The third feature area and the fourth feature area corresponding to the foreground image in the first feature map accurately determine the first feature area corresponding to the foreground image in the first feature map.
步骤103a、第二电子设备从第一特征图中获取除第一特征区域外的第二特征区域。Step 103a: The second electronic device obtains the second feature area except the first feature area from the first feature map.
本申请实施例中,上述第二特征区域为第一背景图像在第一特征图中对应的特征区域。In the embodiment of the present application, the above-mentioned second feature area is the corresponding feature area of the first background image in the first feature map.
在本申请的一些实施例中,第二电子设备可以先将第一特征区域中的各个特征点的特征值设置为“0”,然后再随机设置该第一特征区域中的各个特征点的特征值,从而可以得到第二特征区域。In some embodiments of the present application, the second electronic device may first set the feature value of each feature point in the first feature area to "0", and then randomly set the feature value of each feature point in the first feature area. value, so that the second characteristic area can be obtained.
步骤103b、第二电子设备将第二特征区域输入至第一模型,得到第一模型输出的第二特征图。Step 103b: The second electronic device inputs the second feature region into the first model to obtain a second feature map output by the first model.
本申请实施例中,为了避免第二背景图像中存在第一图像的前景图像中的人物和物体,进而避免第二图像中出现重影的情况,第一电子设备可以通过第一掩模图像向第二电子设备指示前景图像中的人物图像在第一图像中的位置,以使得第二电子设备可以根据该位置,确定前景图像在第一特征图中对应的第一特征区域,并从第一特征图中删除该第一特征区域,从而第二电子设备通过第一模型生成的第二特征图中不存在前景图像对应的特征区域,进而第二背景图像中不存在该前景图像中的人物和物体。In the embodiment of the present application, in order to avoid the presence of people and objects in the foreground image of the first image in the second background image, and thereby avoid ghost images in the second image, the first electronic device can use the first mask image to The second electronic device indicates the position of the person image in the foreground image in the first image, so that the second electronic device can determine the first feature area corresponding to the foreground image in the first feature map based on the position, and obtain the corresponding first feature area from the first feature map. The first feature area is deleted from the feature map, so that the feature area corresponding to the foreground image does not exist in the second feature map generated by the second electronic device through the first model, and further, the person and person in the foreground image do not exist in the second background image. object.
如此可知,由于第一电子设备可以向第二电子设备发送第一掩模图像,以使得第二电子设备可以确定前景图像在第一特征图中对应的第一特征区域,并从第一特征图获取除第一特征区域外的第二特征区域,因此,在第二电子设备将第二特征区域输入至第一模型之后,可以得到不包括前景图像对应的特征区域的第二特征图,即第一电子设备生成的第二背景图像中不存在该前景图像中的人物和物体,因此,可以避免生成的第二图像中出现重影的情况;并且地,由于可以通过第一电子设备和第二电子设备来确定前景图像在第一特征图中对应的第一特征区域,而不是仅通过第一电子设备来确定,因此,可以减少确定该第一特征区域的耗时,从而可以减少生成第二特征图的耗时;如此,可以在进一步提高第一电子设备生成用户需求的第二图像的质量的同时,减少生成该第二图像的耗时。It can be seen from this that the first electronic device can send the first mask image to the second electronic device, so that the second electronic device can determine the first feature area corresponding to the foreground image in the first feature map, and obtain the first feature map from the first feature map. Obtain the second feature area except the first feature area. Therefore, after the second electronic device inputs the second feature area to the first model, a second feature map that does not include the feature area corresponding to the foreground image can be obtained, that is, the second feature map can be obtained. The characters and objects in the foreground image do not exist in the second background image generated by an electronic device. Therefore, ghost images in the generated second image can be avoided; and further, since the first electronic device and the second The electronic device determines the first feature area corresponding to the foreground image in the first feature map instead of only determining it through the first electronic device. Therefore, the time-consuming process of determining the first feature area can be reduced, thereby reducing the generation of the second feature area. The time consuming of the feature map; in this way, the quality of the second image generated by the first electronic device required by the user can be further improved, while the time consuming of generating the second image can be reduced.
本申请实施例中,在第二电子设备接收第一掩模图像之后,第二电子设备还可以根据前景物图像在第一特征图中对应的特征区域,更新第一掩模图像,更新后的第一掩模图像指示前景图像在第一图像中的位置,从而第一电子设备可以基于更新的第一掩模图像,准确地对前景图像和第二背景图像进行融合,以得到用户需求的第二图像,下面将举例说明。In the embodiment of the present application, after the second electronic device receives the first mask image, the second electronic device can also update the first mask image according to the feature area corresponding to the foreground object image in the first feature map. The updated The first mask image indicates the position of the foreground image in the first image, so that the first electronic device can accurately fuse the foreground image and the second background image based on the updated first mask image to obtain the third image required by the user. Two images, examples will be given below.
在本申请的一些实施例中,上述前景图像中还包括前景物图像。可选地,在上述步骤303之后,本申请实施例提供的图像生成方法还可以包括下述的步骤401至步骤404,且上述步骤106具体可以通过下述的步骤106a实现。In some embodiments of the present application, the foreground image also includes a foreground object image. Optionally, after the above step 303, the image generation method provided by the embodiment of the present application may also include the following steps 401 to 404, and the above step 106 may be specifically implemented through the following step 106a.
步骤401、第二电子设备根据前景物图像在第一特征图中对应的第四特征区域,确定第三掩模图像。Step 401: The second electronic device determines a third mask image based on the fourth feature area corresponding to the foreground object image in the first feature map.
本申请实施例中,上述第三掩模图像指示前景物图像在第一图像中的位置。In the embodiment of the present application, the above-mentioned third mask image indicates the position of the foreground object image in the first image.
需要说明的是,针对第二电子设备确定第四特征区域的说明,可以参考上述实施例中的具体描述,本申请实施例在此不再赘述。It should be noted that, for the description of determining the fourth characteristic area by the second electronic device, reference may be made to the specific description in the above embodiments, and the embodiments of the present application will not be repeated here.
在本申请的一些实施例中,上述第三掩模图像中的各个像素点分别与第一图像中的一个像素点对应,且在第三掩模图像中,与上述前景物图像中的像素点对应的像素点的像素值可以为“1”,与其他图像中的像素点对应的像素点的像素值可以为“0”。In some embodiments of the present application, each pixel point in the third mask image corresponds to a pixel point in the first image, and in the third mask image, each pixel point in the foreground object image corresponds to The pixel value of the corresponding pixel point may be "1", and the pixel value of the pixel point corresponding to the pixel point in other images may be "0".
在本申请的一些实施例中,第二电子设备可以根据第四特征区域中的每个特征点的位置,确定第一图像中对应的像素点的位置,然后再根据对应的像素点所处区域的位置,确定前景物图像在第一图像中的位置,并根据该位置生成第三掩模图像。In some embodiments of the present application, the second electronic device can determine the location of the corresponding pixel point in the first image based on the location of each feature point in the fourth feature area, and then determine the location of the corresponding pixel point based on the area where the corresponding pixel point is located. position, determine the position of the foreground object image in the first image, and generate a third mask image based on the position.
步骤402、第二电子设备根据第一掩模图像和第三掩模图像,生成第二掩模图像。Step 402: The second electronic device generates a second mask image based on the first mask image and the third mask image.
本申请实施例中,上述第二掩模图像指示前景图像在第一图像中的位置。In this embodiment of the present application, the above-mentioned second mask image indicates the position of the foreground image in the first image.
在本申请的一些实施例中,第二电子设备可以将第一掩模图像和第二掩模图像进行叠加,以生成第二掩模图像。In some embodiments of the present application, the second electronic device may superimpose the first mask image and the second mask image to generate the second mask image.
步骤403、第二电子设备向第一电子设备发送第二掩模图像。Step 403: The second electronic device sends the second mask image to the first electronic device.
本申请实施例中,上述第二掩模图像用于第一电子设备对前景图像和第二背景图像进行融合,得到第二图像。In the embodiment of the present application, the above-mentioned second mask image is used by the first electronic device to fuse the foreground image and the second background image to obtain the second image.
步骤404、第一电子设备从第二电子设备接收第二掩模图像。Step 404: The first electronic device receives the second mask image from the second electronic device.
本申请实施例中,上述第二掩模图像指示前景图像在第一图像中的位置,该第二掩模图像是第二电子设备基于第一掩模图像确定的。In the embodiment of the present application, the above-mentioned second mask image indicates the position of the foreground image in the first image, and the second mask image is determined by the second electronic device based on the first mask image.
步骤106a、第一电子设备基于第二掩模图像,对前景图像和第二背景图像进行融合,得到第二图像。Step 106a: The first electronic device fuses the foreground image and the second background image based on the second mask image to obtain a second image.
在本申请的一些实施例中,第一电子设备可以先将第二掩模图像和第一图像相乘,以得到第三图像,该第三图像中仅包括前景图像,且该第三图像的尺寸和第一图像的尺寸相同,从而第一电子设备可以直接在第二背景图像上叠加该第三图像,以生成第二图像。In some embodiments of the present application, the first electronic device may first multiply the second mask image and the first image to obtain a third image. The third image only includes a foreground image, and the third image has The size is the same as that of the first image, so that the first electronic device can directly superimpose the third image on the second background image to generate the second image.
如此可知,由于第二电子设备还可以确定指示前景物图像在第一图像中的位置的第三掩模图像,并根据该第三掩模图像和第一掩模图像,生成指示前景图像在第一图像中的位置,这样在第一电子设备基于该第二掩模图像,对前景图像和第二背景图像进行融合之后,前景图像在第二图像中的位置与在第一图像中的位置可以相匹配,因此,可以避免前景图像在该两个图像中的位置不匹配而导致第二图像的构图发生变化,从而用户无需再次对第二图像进行调整,如此,可以进一步提高第一电子设备生成用户需求的图像的效率。It can be seen from this that the second electronic device can also determine the third mask image indicating the position of the foreground image in the first image, and generate a third mask image indicating the position of the foreground image in the first image based on the third mask image and the first mask image. A position in an image, so that after the first electronic device fuses the foreground image and the second background image based on the second mask image, the position of the foreground image in the second image can be the same as the position in the first image. Therefore, it can be avoided that the position of the foreground image in the two images does not match, causing the composition of the second image to change, so that the user does not need to adjust the second image again. In this way, the generation of the first electronic device can be further improved. Efficiency of images required by users.
本申请实施例提供的图像生成方法,执行主体可以为图像生成装置。本申请实施例中以图像生成装置执行图像生成方法为例,说明本申请实施例提供的图像生成装置的。For the image generation method provided by the embodiments of the present application, the execution subject may be an image generation device. In the embodiments of the present application, an image generation device executing an image generation method is used as an example to illustrate the image generation device provided by the embodiments of the present application.
图5示出了本申请实施例中涉及的图像生成装置的一种可能的结构示意图,该图像生成装置为第一图像生成装置。如图5所示,本申请实施例提供的第一图像生成装置50可以包括:发送模块51、接收模块52以及处理模块53。FIG. 5 shows a possible structural schematic diagram of the image generation device involved in the embodiment of the present application. The image generation device is a first image generation device. As shown in FIG. 5 , the first image generation device 50 provided by the embodiment of the present application may include: a sending module 51 , a receiving module 52 and a processing module 53 .
其中,发送模块51,用于向第二图像生成装置发送第一图像对应的第一特征图;该第一图像包括:前景图像和第一背景图像;该第一特征图用于第二图像生成装置生成第二特征图。接收模块52,用于从第二图像生成装置接收第二特征图。处理模块53,用于根据接收模块52接收的第二特征图生成第二背景图像;该第二背景图像和第一背景图像的图像内容不同;并基于前景图像和第二背景图像,生成第二图像。Among them, the sending module 51 is used to send the first feature map corresponding to the first image to the second image generation device; the first image includes: a foreground image and a first background image; the first feature map is used to generate the second image The device generates a second feature map. The receiving module 52 is configured to receive the second feature map from the second image generating device. The processing module 53 is configured to generate a second background image according to the second feature map received by the receiving module 52; the image contents of the second background image and the first background image are different; and based on the foreground image and the second background image, generate a second background image. image.
本申请实施例提供一种图像生成装置,由于第一图像生成装置可以向算力较大的第二图像生成装置发送第一特征图,这样在第二图像生成装置将该第一特征图输入至第一模型之后,该第一模型仅需较短时间的计算便可以完成对第一特征图的处理,以生成第二特征图,以使得第一图像生成装置可以根据该第二特征图,快速地生成与第一背景图像的图像内容不同的第二背景图像,而无需第一图像生成装置进行计算生成该第二背景图像,因此,可以减少生成第二背景图像的耗时,从而第一图像生成装置可以快速地基于前景图像和该第二背景图像生成用户需求的第二图像;并且地,由于在生成用户需求的第二图像的过程中,第一图像生成装置和第二图像生成装置之间传输是第一特征图和第二特征图,而不是第一图像和第二背景图像,因此,可以避免在生成用户需求的第二图像的过程中出现第一图像或第二背景图像的泄露的情况;如此,可以在避免用户隐私的泄露的情况下,提高第一图像生成装置生成用户需求的图像的效率。Embodiments of the present application provide an image generation device. Since the first image generation device can send a first feature map to a second image generation device with greater computing power, the second image generation device inputs the first feature map to After the first model, the first model only needs a short time of calculation to complete the processing of the first feature map to generate the second feature map, so that the first image generating device can quickly generate the second feature map based on the second feature map. Generate a second background image that is different in image content from the first background image without requiring the first image generating device to perform calculations to generate the second background image. Therefore, the time-consuming process of generating the second background image can be reduced, so that the first image The generating device can quickly generate the second image required by the user based on the foreground image and the second background image; and, because in the process of generating the second image required by the user, between the first image generating device and the second image generating device The transmission between is the first feature map and the second feature map, rather than the first image and the second background image. Therefore, the leakage of the first image or the second background image during the process of generating the second image required by the user can be avoided. situation; in this way, the efficiency of the first image generating device in generating images required by the user can be improved while avoiding leakage of user privacy.
在一种可能的实现方式中,上述前景图像中包括人物图像。上述处理模块53,还用于在接收模块52从第二图像生成装置接收第二特征图之前,根据第一图像,确定第一掩模图像;该第一掩模图像指示人物图像在第一图像中的位置。上述发送模块51,还用于向第二图像生成装置发送处理模块53确定的第一掩模图像;该第一掩模图像用于第二图像生成装置确定前景图像在第一特征图中对应的第一特征区域。其中,上述第二特征图是第二图像生成装置根据第一背景图像在第一特征图中对应的第二特征区域生成的,该第二特征区域是第二图像生成装置根据第一特征区域确定的。In a possible implementation, the foreground image includes a person image. The above-mentioned processing module 53 is also used to determine the first mask image based on the first image before the receiving module 52 receives the second feature map from the second image generation device; the first mask image indicates that the character image is in the first image. location in. The above-mentioned sending module 51 is also used to send the first mask image determined by the processing module 53 to the second image generation device; the first mask image is used by the second image generation device to determine the corresponding position of the foreground image in the first feature map. The first characteristic area. Wherein, the above-mentioned second feature map is generated by the second image generating device based on the second feature area corresponding to the first background image in the first feature map, and the second feature area is determined by the second image generating device based on the first feature area. of.
在一种可能的实现方式中,上述接收模块52,还用于在发送模块51向第二图像生成装置发送第一掩模图像之后,从第二图像生成装置接收第二掩模图像;该第二掩模图像指示前景图像在第一图像中的位置,该第二掩模图像是第二图像生成装置基于第一掩模图像确定的。上述处理模块53,具体用于基于接收模块接收的第二掩模图像,对前景图像和第二背景图像进行融合,得到第二图像。In a possible implementation, the above-mentioned receiving module 52 is also configured to receive the second mask image from the second image generating device after the sending module 51 sends the first mask image to the second image generating device; The second mask image indicates the position of the foreground image in the first image, and the second mask image is determined by the second image generating device based on the first mask image. The above-mentioned processing module 53 is specifically used to fuse the foreground image and the second background image based on the second mask image received by the receiving module to obtain the second image.
在一种可能的实现方式中,上述处理模块53,还用于在发送模块51向第二图像生成装置发送第一图像对应的第一特征图之前,将第一图像输入至第一图像生成装置50的编码器中,得到编码器输出的第一特征图;该第一特征图是编码器对第一图像进行编码得到的。In a possible implementation, the above-mentioned processing module 53 is also used to input the first image to the first image generation device before the sending module 51 sends the first feature map corresponding to the first image to the second image generation device. In the encoder of 50, the first feature map output by the encoder is obtained; the first feature map is obtained by encoding the first image by the encoder.
在一种可能的实现方式中,上述处理模块53,具体用于将第二特征图输入至第一图像生成装置50的解码器中,得到解码器输出的第二背景图像;该第二背景图像是解码器对第二特征图进行解码得到的。In a possible implementation, the above-mentioned processing module 53 is specifically configured to input the second feature map into the decoder of the first image generation device 50 to obtain a second background image output by the decoder; the second background image It is obtained by decoding the second feature map by the decoder.
本申请实施例中的图像生成装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性地,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(mobile internet device,MID)、增强现实(augmentedreality,AR)/虚拟现实(virtualreality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobilepersonalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(network attached storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The image generating device in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal. Illustratively, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile internet device (MID), or an augmented reality (AR)/virtual reality (VR) device. , robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., and can also be used for servers, network attached storage (NAS), personal Computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc. are not specifically limited in the embodiments of this application.
本申请实施例中的图像生成装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The image generation device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
本申请实施例提供的图像生成装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The image generation device provided by the embodiments of the present application can implement various processes implemented by the method embodiments of Figures 1 to 4. To avoid repetition, they will not be described again here.
图6示出了本申请实施例中涉及的图像生成装置的一种可能的结构示意图,该图像生成装置为第二图像生成装置。如图6所示,本申请实施例提供的第二图像生成装置60可以包括:接收模块61、处理模块62以及发送模块63。FIG. 6 shows a possible structural diagram of the image generation device involved in the embodiment of the present application, where the image generation device is a second image generation device. As shown in FIG. 6 , the second image generation device 60 provided by the embodiment of the present application may include: a receiving module 61 , a processing module 62 and a sending module 63 .
其中,接收模块61,用于从第一图像生成装置接收第一图像对应的第一特征图;该第一图像包括:前景图像和第一背景图像。处理模块62,用于将接收模块61接收的第一特征图输入至第一模型,得到第一模型输出的第二特征图;该第二特征图是第一模型对第一特征图进行处理生成的。发送模块63,用于向第一图像生成装置发送处理模块62生成的第二特征图;该第二特征图用于第一图像生成装置生成第二背景图像,并基于前景图像和第二背景图像,生成第二图像,该第二背景图像和第一背景图像的图像内容不同。Among them, the receiving module 61 is used to receive the first feature map corresponding to the first image from the first image generating device; the first image includes: a foreground image and a first background image. The processing module 62 is used to input the first feature map received by the receiving module 61 into the first model to obtain the second feature map output by the first model; the second feature map is generated by processing the first feature map by the first model. of. The sending module 63 is used to send the second feature map generated by the processing module 62 to the first image generating device; the second feature map is used by the first image generating device to generate a second background image, and is based on the foreground image and the second background image. , generate a second image, the second background image and the first background image have different image contents.
本申请实施例提供一种图像生成装置,由于第一图像生成装置可以向算力较大的第二图像生成装置发送第一特征图,这样在第二图像生成装置将该第一特征图输入至第一模型之后,该第一模型仅需较短时间的计算便可以完成对第一特征图的处理,以生成第二特征图,以使得第一图像生成装置可以根据该第二特征图,快速地生成与第一背景图像的图像内容不同的第二背景图像,而无需第一图像生成装置进行计算生成该第二背景图像,因此,可以减少生成第二背景图像的耗时,从而第一图像生成装置可以快速地基于前景图像和该第二背景图像生成用户需求的第二图像;并且地,由于在生成用户需求的第二图像的过程中,第一图像生成装置和第二图像生成装置之间传输是第一特征图和第二特征图,而不是第一图像和第二背景图像,因此,可以避免在生成用户需求的第二图像的过程中出现第一图像或第二背景图像的泄露的情况;如此,可以在避免用户隐私的泄露的情况下,提高第一图像生成装置生成用户需求的图像的效率。Embodiments of the present application provide an image generation device. Since the first image generation device can send a first feature map to a second image generation device with greater computing power, the second image generation device inputs the first feature map to After the first model, the first model only needs a short time of calculation to complete the processing of the first feature map to generate the second feature map, so that the first image generating device can quickly generate the second feature map based on the second feature map. Generate a second background image that is different in image content from the first background image without requiring the first image generating device to perform calculations to generate the second background image. Therefore, the time-consuming process of generating the second background image can be reduced, so that the first image The generating device can quickly generate the second image required by the user based on the foreground image and the second background image; and, because in the process of generating the second image required by the user, between the first image generating device and the second image generating device The transmission between is the first feature map and the second feature map, rather than the first image and the second background image. Therefore, the leakage of the first image or the second background image during the process of generating the second image required by the user can be avoided. situation; in this way, the efficiency of the first image generating device in generating images required by the user can be improved while avoiding leakage of user privacy.
在一种可能的实现方式中,上述前景图像中包括人物图像。上述接收模块61,还用于在处理模块62将第一特征图输入至第一模型,得到第一模型输出的第二特征图之前,从第一图像生成装置接收第一掩模图像;该第一掩模图像指示人物图像在第一图像中的位置。上述处理模块62,还用于基于接收模块61接收的第一掩模图像,确定前景图像在第一特征图中对应的第一特征区域。上述处理模块62,具体用于从第一特征图中获取除第一特征区域外的第二特征区域,该第二特征区域为第一背景图像在第一特征图中对应的特征区域,并将第二特征区域输入至第一模型,得到第一模型输出的第二特征图。In a possible implementation, the foreground image includes a person image. The above-mentioned receiving module 61 is also used to receive the first mask image from the first image generation device before the processing module 62 inputs the first feature map to the first model and obtains the second feature map output by the first model; A mask image indicates the position of the person image in the first image. The above-mentioned processing module 62 is also used to determine the first feature area corresponding to the foreground image in the first feature map based on the first mask image received by the receiving module 61 . The above-mentioned processing module 62 is specifically used to obtain a second feature area other than the first feature area from the first feature map. The second feature area is the corresponding feature area of the first background image in the first feature map, and The second feature region is input to the first model to obtain a second feature map output by the first model.
在一种可能的实现方式中,上述前景图像中还包括前景物图像。上述处理模块62,具体用于根据第一掩模图像,从第一特征图中确定人物图像在第一特征图中对应的第三特征区域;并将第三特征区域和前景物图像在第一特征图中对应的第四特征区域,确定为第一特征区域。In a possible implementation, the foreground image also includes a foreground object image. The above-mentioned processing module 62 is specifically used to determine the third feature area corresponding to the person image in the first feature map from the first feature map according to the first mask image; and combine the third feature area and the foreground object image in the first feature map. The corresponding fourth feature area in the feature map is determined as the first feature area.
在一种可能的实现方式中,上述前景图像中还包括前景物图像。上述处理模块62,还用于在接收模块61从第一图像生成装置接收第一掩模图像之后,根据前景物图像在第一特征图中对应的第四特征区域,确定第三掩模图像;该第三掩模图像指示前景物图像在第一图像中的位置;并根据第一掩模图像和第三掩模图像,生成第二掩模图像;该第二掩模图像指示前景图像在第一图像中的位置。上述发送模块63,还用于向第一图像生成装置发送处理模块62生成的第二掩模图像;该第二掩模图像用于第一图像生成装置对前景图像和第二背景图像进行融合,得到第二图像。In a possible implementation, the foreground image also includes a foreground object image. The above-mentioned processing module 62 is also configured to determine the third mask image according to the fourth feature area corresponding to the foreground object image in the first feature map after the receiving module 61 receives the first mask image from the first image generation device; The third mask image indicates the position of the foreground image in the first image; and a second mask image is generated based on the first mask image and the third mask image; the second mask image indicates the position of the foreground image in the first image. A location in an image. The above-mentioned sending module 63 is also used to send the second mask image generated by the processing module 62 to the first image generating device; the second mask image is used by the first image generating device to fuse the foreground image and the second background image, Get the second image.
本申请实施例中的图像生成装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性地,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(mobile internet device,MID)、增强现实(augmentedreality,AR)/虚拟现实(virtualreality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobilepersonalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(network attached storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The image generating device in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal. Illustratively, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile internet device (MID), or an augmented reality (AR)/virtual reality (VR) device. , robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., and can also be used for servers, network attached storage (NAS), personal Computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc. are not specifically limited in the embodiments of this application.
本申请实施例中的图像生成装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The image generation device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
本申请实施例提供的图像生成装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The image generation device provided by the embodiments of the present application can implement various processes implemented by the method embodiments of Figures 1 to 4. To avoid repetition, they will not be described again here.
在本申请的一些实施中,如图7所示,本申请实施例还提供一种电子设备70,包括处理器71和存储器72,存储器72上存储有可在所述处理器71上运行的程序或指令,该程序或指令被处理器71执行时实现上述图像生成方法实施例的各个过程步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。In some implementations of the present application, as shown in Figure 7, the embodiment of the present application also provides an electronic device 70, including a processor 71 and a memory 72. The memory 72 stores programs that can run on the processor 71. or instructions. When executed by the processor 71, the program or instructions implement each process step of the above image generation method embodiment and can achieve the same technical effect. To avoid duplication, they will not be described again here.
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图8为实现本申请实施例的一种电子设备的硬件结构示意图,该电子设备为第一电子设备。FIG. 8 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application. The electronic device is a first electronic device.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
其中,射频单元101,用于向第二电子设备发送第一图像对应的第一特征图;该第一图像包括:前景图像和第一背景图像;该第一特征图用于第二电子设备生成第二特征图;并从第二电子设备接收第二特征图,并根据第二特征图生成第二背景图像;该第二背景图像和第一背景图像的图像内容不同。Among them, the radio frequency unit 101 is used to send the first feature map corresponding to the first image to the second electronic device; the first image includes: a foreground image and a first background image; the first feature map is used for the second electronic device to generate a second feature map; and receiving the second feature map from the second electronic device, and generating a second background image based on the second feature map; the image content of the second background image and the first background image are different.
处理器110,用于基于前景图像和第二背景图像,生成第二图像。The processor 110 is configured to generate a second image based on the foreground image and the second background image.
本申请实施例提供一种电子设备,由于第一电子设备可以向算力较大的第二电子设备发送第一特征图,这样在第二电子设备将该第一特征图输入至第一模型之后,该第一模型仅需较短时间的计算便可以完成对第一特征图的处理,以生成第二特征图,以使得第一电子设备可以根据该第二特征图,快速地生成与第一背景图像的图像内容不同的第二背景图像,而无需第一电子设备进行计算生成该第二背景图像,因此,可以减少生成第二背景图像的耗时,从而第一电子设备可以快速地基于前景图像和该第二背景图像生成用户需求的第二图像;并且地,由于在生成用户需求的第二图像的过程中,第一电子设备和第二电子设备之间传输是第一特征图和第二特征图,而不是第一图像和第二背景图像,因此,可以避免在生成用户需求的第二图像的过程中出现第一图像或第二背景图像的泄露的情况;如此,可以在避免用户隐私的泄露的情况下,提高第一电子设备生成用户需求的图像的效率。Embodiments of the present application provide an electronic device. Since the first electronic device can send a first feature map to a second electronic device with greater computing power, after the second electronic device inputs the first feature map into the first model , the first model only needs a short calculation time to complete the processing of the first feature map to generate the second feature map, so that the first electronic device can quickly generate the first feature map based on the second feature map. A second background image with different image content does not require the first electronic device to perform calculations to generate the second background image. Therefore, the time-consuming process of generating the second background image can be reduced, so that the first electronic device can quickly generate the second background image based on the foreground image. The image and the second background image generate a second image required by the user; and, during the process of generating the second image required by the user, the first feature map and the second electronic device are transmitted between the first electronic device and the second electronic device. two feature maps instead of the first image and the second background image. Therefore, the leakage of the first image or the second background image in the process of generating the second image required by the user can be avoided; in this way, the user can avoid the leakage of the first image or the second background image. In the case of privacy leakage, the efficiency of the first electronic device in generating images required by the user is improved.
在本申请的一些实施例中,上述前景图像中包括人物图像。In some embodiments of the present application, the foreground image includes a character image.
处理器110,还用于根据第一图像,确定第一掩模图像;该第一掩模图像指示人物图像在第一图像中的位置。The processor 110 is further configured to determine a first mask image according to the first image; the first mask image indicates the position of the person image in the first image.
射频单元101,还用于向第二电子设备发送第一掩模图像;该第一掩模图像用于第二电子设备确定前景图像在第一特征图中对应的第一特征区域。The radio frequency unit 101 is also configured to send a first mask image to the second electronic device; the first mask image is used by the second electronic device to determine the first feature area corresponding to the foreground image in the first feature map.
其中,上述第二特征图是第二电子设备根据第一背景图像在第一特征图中对应的第二特征区域生成的,该第二特征区域是第二电子设备根据第一特征区域确定的。Wherein, the above-mentioned second feature map is generated by the second electronic device based on the second feature area corresponding to the first background image in the first feature map, and the second feature area is determined by the second electronic device based on the first feature area.
在本申请的一些实施例中,射频单元101,还用于从第二电子设备接收第二掩模图像;该第二掩模图像指示前景图像在第一图像中的位置,该第二掩模图像是第二电子设备基于第一掩模图像确定的。In some embodiments of the present application, the radio frequency unit 101 is also used to receive a second mask image from a second electronic device; the second mask image indicates the position of the foreground image in the first image, and the second mask image The image is determined by the second electronic device based on the first mask image.
处理器110,具体用于基于第二掩模图像,对前景图像和第二背景图像进行融合,得到第二图像。The processor 110 is specifically configured to fuse the foreground image and the second background image based on the second mask image to obtain the second image.
在本申请的一些实施例中,处理器110,还用于将第一图像输入至第一电子设备的编码器中,得到编码器输出的第一特征图;该第一特征图是编码器对第一图像进行编码得到的。In some embodiments of the present application, the processor 110 is also configured to input the first image into the encoder of the first electronic device to obtain the first feature map output by the encoder; the first feature map is the encoder pair The first image is encoded.
在本申请的一些实施例中,处理器110,具体用于将第二特征图输入至第一电子设备的解码器中,得到解码器输出的第二背景图像;该第二背景图像是解码器对第二特征图进行解码得到的。In some embodiments of the present application, the processor 110 is specifically configured to input the second feature map into the decoder of the first electronic device to obtain a second background image output by the decoder; the second background image is the decoder Obtained by decoding the second feature map.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(graphicsprocessing unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072 . Touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(doubledatarate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(directrambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 109 may include volatile memory or nonvolatile memory, or memory 109 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (doubledatarate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) ) and direct memory bus random access memory (directrambus RAM, DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
处理器110可包括一个或多个处理单元;可选地,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 110 .
图9为实现本申请实施例的一种服务器的硬件结构示意图。Figure 9 is a schematic diagram of the hardware structure of a server that implements an embodiment of the present application.
该服务器能实现图1至图4所示的实施例中第二电子设备对应的图像生成方法的细节,并达到相同的效果。如图9所示,服务器80包括:处理器81、存储器82及存储在存储器82上并可在处理器上运行的计算机程序,服务器80中的各个组件通过总线系统83耦合在一起。可理解,总线系统83用于实现这些组件之间的连接通信。该计算机程序被处理器执行时实现如上述实施例中的图像生成方法的各个过程步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。The server can implement the details of the image generation method corresponding to the second electronic device in the embodiment shown in Figures 1 to 4, and achieve the same effect. As shown in FIG. 9 , the server 80 includes: a processor 81 , a memory 82 and a computer program stored on the memory 82 and executable on the processor. The various components in the server 80 are coupled together through a bus system 83 . It can be understood that the bus system 83 is used to implement connection communication between these components. When the computer program is executed by the processor, it implements each process step of the image generation method in the above embodiment, and can achieve the same technical effect. To avoid duplication, it will not be described again here.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图像生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above image generation method embodiment is implemented, and the same can be achieved. The technical effects will not be repeated here to avoid repetition.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述图像生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above image generation method embodiment. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述图像生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above image generation method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311079293.2A CN117115287A (en) | 2023-08-25 | 2023-08-25 | Image generation method, device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311079293.2A CN117115287A (en) | 2023-08-25 | 2023-08-25 | Image generation method, device, electronic equipment and readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117115287A true CN117115287A (en) | 2023-11-24 |
Family
ID=88801613
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311079293.2A Pending CN117115287A (en) | 2023-08-25 | 2023-08-25 | Image generation method, device, electronic equipment and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117115287A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117440172A (en) * | 2023-12-20 | 2024-01-23 | 江苏金融租赁股份有限公司 | Picture compression method and device |
| CN117710527A (en) * | 2023-12-13 | 2024-03-15 | 北京百度网讯科技有限公司 | Image processing methods, devices and products based on artificial intelligence large models |
| CN118194881A (en) * | 2024-04-16 | 2024-06-14 | 摩尔线程智能科技(北京)有限责任公司 | Text generation system and method |
-
2023
- 2023-08-25 CN CN202311079293.2A patent/CN117115287A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117710527A (en) * | 2023-12-13 | 2024-03-15 | 北京百度网讯科技有限公司 | Image processing methods, devices and products based on artificial intelligence large models |
| CN117710527B (en) * | 2023-12-13 | 2025-08-26 | 北京百度网讯科技有限公司 | Image processing method, device and product based on artificial intelligence large model |
| CN117440172A (en) * | 2023-12-20 | 2024-01-23 | 江苏金融租赁股份有限公司 | Picture compression method and device |
| CN117440172B (en) * | 2023-12-20 | 2024-03-19 | 江苏金融租赁股份有限公司 | Picture compression method and device |
| CN118194881A (en) * | 2024-04-16 | 2024-06-14 | 摩尔线程智能科技(北京)有限责任公司 | Text generation system and method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN117115287A (en) | Image generation method, device, electronic equipment and readable storage medium | |
| CN108961157A (en) | Picture processing method, picture processing device and terminal equipment | |
| CN106445344A (en) | Screenshot processing method and device | |
| CN112532882A (en) | Image display method and device | |
| CN112099714B (en) | Screenshot method, device, electronic device and readable storage medium | |
| CN116893792A (en) | Screen projection control method, device and electronic equipment | |
| CN112230831A (en) | Image processing method and device | |
| WO2023169361A1 (en) | Information recommendation method and apparatus and electronic device | |
| CN113721876A (en) | Screen projection processing method and related equipment | |
| US20240184434A1 (en) | Display method and apparatus | |
| TWI767225B (en) | Anchor point sharing method and apparatus, system, electronic device and computer-readable storage medium | |
| CN113709370A (en) | Image generation method and device, electronic equipment and readable storage medium | |
| CN113347356A (en) | Shooting method, shooting device, electronic equipment and storage medium | |
| WO2024055194A1 (en) | Virtual object generation method, and codec training method and apparatus thereof | |
| CN117274097A (en) | Image processing methods, devices, electronic equipment and media | |
| CN114357554B (en) | Model rendering method, rendering device, terminal, server and storage medium | |
| CN111984173B (en) | Expression package generation method and device | |
| CN115866314A (en) | Video playing method and device thereof | |
| CN115080946A (en) | Password input method and input device | |
| CN113810624A (en) | Video generation method and device and electronic equipment | |
| CN117115056A (en) | Image generation method, model training method, device, electronic equipment and media | |
| CN115052107B (en) | Shooting method, device, electronic device and medium | |
| CN114500445B (en) | Communication record acquisition method, device, electronic device and storage medium | |
| CN117676228A (en) | Information display method, device, electronic equipment and readable storage medium | |
| CN113360938A (en) | Data transmission method and device and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |