Image processing method, electronic device, storage medium and computer program product

Through large model technology and image processing methods, combined with the body adaptation model and the face adaptation model, the problem of low generation efficiency and poor effect in image personalized generation is solved, and the facial and clothing characteristics of the person are retained in the image generation. Personalized processing improves generation efficiency and effect.

CN118658200APending Publication Date: 2024-09-17ALIBABA (CHINA) CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410688100.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the process of image personalized generation, the existing technology has problems of low generation efficiency and poor generation effect, especially in retaining facial attributes and clothing features of characters, resulting in the attenuation of similar attributes and being unable to meet the personalized needs of users.

Method used

By obtaining the target object image, posture guidance image and target text, large model technology is used to generate the target scene image to ensure that the input features and posture of the target object are retained during the generation process. The body adaptation model and the face adaptation model are used to conduct a two-stage process. Link processing, combined with the posture adaptation module, generates personalized images that meet expectations.

Benefits of technology

It improves the generation efficiency and effect in the process of image personalized generation, avoids the attenuation of similar attributes, realizes efficient and personalized generation of target scene images, and meets the personalized needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658200A
    Figure CN118658200A
Patent Text Reader

Abstract

The invention discloses an image processing method, electronic equipment, a storage medium and a computer program product, and relates to the technical field of large models and computers. The method comprises the steps that a target object image, a posture guiding image and a target text are acquired, the display content of the target object image at least comprises a designated part of a target object, and the target object image is used for guiding a to-be-generated target scene image to keep input features associated with the target object; the posture guide image is used for guiding a to-be-generated specified posture of the target object in the target scene image, and the target text is at least used for describing to-be-displayed specified content in the target scene image; and generating a target scene image based on the target object image, the posture guide image and the target text. The technical problems of low generation efficiency and poor generation effect in an image personalized generation process in related technologies are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of large model technology and computer technology, and specifically, to an image processing method, electronic device, storage medium and computer program product. Background Art

[0002] With the vigorous development of artificial intelligence (AI) generation technology, personalized generation demand has become a new hot spot. Personalized generation technology has a wide range of applications in multiple scenarios. For example, through personalized image generation, characters can be given rich and diverse appearances and placed in different environments. In related technologies, when performing personalized image generation, as the number of generation steps increases, similar attributes often decay, resulting in low image generation efficiency and generation effects that are difficult to meet user needs.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide an image processing method, an electronic device, a storage medium, and a computer program product to at least solve the technical problems of low generation efficiency and poor generation effect in the process of image personalization generation in the related technologies.

[0005] According to one aspect of an embodiment of the present application, an image processing method is provided, comprising: acquiring a target object image, a posture guiding image and a target text, wherein the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide a target scene image to be generated to retain input features associated with the target object, the posture guiding image is used to guide the target object in a specified posture to be generated in the target scene image, and the target text is used to describe at least specified content to be displayed in the target scene image; generating a target scene image based on the target object image, the posture guiding image and the target text.

[0006] According to another aspect of an embodiment of the present application, an image processing method is also provided, including: acquiring a user image, a posture guiding image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of a target user, the user image is used to guide a target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guiding image is used to guide the target user in a specified posture to be generated in a target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image; and a target fitting image is generated based on the user image, the posture guiding image and the fitting text.

[0007] According to another aspect of an embodiment of the present application, an image processing method is also provided, including: obtaining a data processing request through a first application programming interface; returning a data processing response through a second application programming interface; wherein the request data carried in the data processing request includes: a target object image, a posture guide image and a target text, and the response data carried in the data processing response includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image.

[0008] According to another aspect of an embodiment of the present application, an image processing method is also provided, including: obtaining a currently input data processing dialogue request; returning a data processing dialogue reply in response to the data processing dialogue request; wherein the request data carried in the data processing dialogue request includes: a target object image, a posture guide image and a target text, and the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, and the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image; and displaying the target scene image in a graphical user interface.

[0009] According to another aspect of the embodiments of the present application, an electronic device is further provided, including: a memory storing an executable program; and a processor for running the program, wherein when the program is run, any image processing method in the embodiments of the present application is executed.

[0010] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the image processing methods in the embodiments of the present application.

[0011] According to another aspect of the embodiments of the present application, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, it implements any one of the image processing methods in the embodiments of the present application.

[0012] In an embodiment of the present application, by acquiring a target object image, a posture guiding image and a target text, wherein the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to generate a specified posture in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image, and then the target scene image is generated based on the target object image, the posture guiding image and the target text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retaining the similar attributes of the target object image while generating the specified posture and the specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and then solving the technical problems of low generation efficiency and poor generation effect in the related technology in the image personalized generation process.

[0013] It is easy to notice that the above general description and the following detailed description are only for the purpose of exemplifying and explaining the present application, and do not constitute a limitation of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0015] Figure 1 is a schematic diagram of an application scenario of an image processing method according to an embodiment of the present application;

[0016] Figure 2 is a flowchart of an image processing method according to Embodiment 1 of the present application;

[0017] Figure 3 is a schematic diagram of an image processing method according to Embodiment 1 of the present application;

[0018] Figure 4 is a schematic diagram of another image processing method according to Embodiment 1 of the present application;

[0019] Figure 5 is a schematic diagram of another image processing method according to Embodiment 1 of the present application;

[0020] Figure 6 is a flowchart of an image processing method according to Embodiment 2 of the present application;

[0021] Figure 7is a flowchart of an image processing method according to Embodiment 3 of the present application;

[0022] Figure 8 is a flowchart of an image processing method according to Embodiment 4 of the present application;

[0023] Fig. 9 is a structural block diagram of an image processing device according to Embodiment 5 of the present application;

[0024] Fig.10 is a structural block diagram of another image processing device according to Embodiment 5 of the present application;

[0025] Fig.11 is a structural block diagram of another image processing device according to Embodiment 5 of the present application;

[0026] Fig.12 is a structural block diagram of another image processing device according to Embodiment 5 of the present application;

[0027] Fig.13 It is a structural block diagram of a computer terminal according to Example 6 of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] The technical solution provided in this application is mainly implemented by large-scale model technology. The large model here refers to a deep learning model with large-scale model parameters, which can usually contain hundreds of millions, tens of billions, hundreds of billions, trillions or even more than 10 trillion model parameters. The large model can also be called a cornerstone model / foundation model (Foundation Model). The large model is pre-trained through large-scale unlabeled corpus to produce a pre-trained model with more than 100 million parameters. This model can adapt to a wide range of downstream tasks, and the model has good generalization ability, such as large-scale language model (Large Language Model, LLM), multi-modal pre-training model (multi-modal pre-training model), etc.

[0031] It should be noted that when the large model is actually used, the pre-trained model can be fine-tuned by a small number of samples so that the large model can be applied to different tasks. For example, the large model can be widely used in natural language processing (Natural Language Processing, referred to as NLP), computer vision, image processing and other fields, and can be specifically applied to computer vision tasks such as visual question answering (Visual Question Answering, referred to as VQA), image description (Image Caption, referred to as IC), image generation, etc., and can also be widely used in text-based sentiment classification, text summary generation, machine translation and other natural language processing tasks. Therefore, the main application scenarios of the large model include but are not limited to digital assistants, intelligent robots, search, online education, office software, e-commerce, intelligent design, etc. In the embodiment of the present application, data processing by a large model in an image processing scenario is used as an example for explanation.

[0032] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:

[0033] Diffusion model: It is a deep generative model that can generate a variety of high-resolution images, such as stable diffusion technology. Its working principle is to add noise, such as Gaussian noise, to the available training data. This process is also called forward diffusion process, and then reverse the process, that is, denoising or reverse diffusion process to restore the data.

[0034] U-Net: A deep learning architecture that is widely used in image segmentation, image generation and other fields. It consists of an encoder and a decoder, where the encoder gradually reduces the resolution of the input image and extracts features, and the decoder gradually increases the resolution and generates segmentation results.

[0035] ControlNet: is a neural network architecture that enhances pre-trained image diffusion models with task-specific conditioning.

[0036] Self-attention: A widely used attention mechanism in neural network models that enables the model to focus on other parts of the input sequence to produce an output at a position. Its main purpose is to capture the dependencies within the input sequence. Its input is a single sequence.

[0037] Cross attention: An attention mechanism widely used in natural speech processing tasks, which enables one sequence to pay attention to another different sequence. Its main purpose is to capture the correlation between different sequences. Its input is two different sequences.

[0038] Related technologies are based on the diffusion model framework. The image-guided personalized generation technology is divided into two categories. One category requires fine-tuning of the diffusion model. The principle of this type of method is to input the input image into the network so that the network can recognize the new input, so that it can generate new images similar to the input when generating images. This also means that the entire network needs to be fine-tuned for each new input image, and multiple images are required for training. The disadvantages of this type of method are high training costs and poor scalability.

[0039] Another type of technology is the route of direct inference without fine-tuning. Its basic principle is to design an adaptation network that can effectively extract input image features, input it into the generation process of the diffusion model through the mutual attention mechanism, and then use a large amount of training data to train this adaptation network so that it has the ability to retain features. However, these methods currently have the following shortcomings: 1) When processing images, the clip feature extractor mainly converts the image into a semantic representation instead of directly extracting the attribute features of the face. Therefore, it cannot well reflect the features related to the input character's facial attributes, and the final generated result's character identification (ID) attribute similarity is insufficient; 2) These methods are all based on free pose generation scenarios, such as inputting a facial image and generating images of different backgrounds and styles under text control. If the control of the pose image is introduced, the similarity will be greatly attenuated; 3) These methods only focus on maintaining the ID attributes of the character's face, and cannot simultaneously retain the generation of clothing and facial features.

[0040] The common requirement in the image generation process is to retain the character ID attributes so that different characters can still be accurately distinguished in the output results. In the related art, when generating images, the focus is on free posture generation based on the input of the character's facial image. However, when it is necessary to generate characters with different postures through posture guidance, the phenomenon of similar attribute attenuation is often faced, which leads to low efficiency in image generation and the generation effect is difficult to meet user needs.

[0041] In summary, the related technologies have technical problems of low generation efficiency and poor generation effect in the process of image personalization generation. Currently, no effective solutions have been proposed for the above problems.

[0042] Example 1

[0043] According to an embodiment of the present application, an image processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0044] Considering the huge amount of model parameters of the large model and the limited computing resources of the mobile terminal, the above-mentioned image processing method provided in the embodiment of the present application can be applied to the following Figure 1 The application scenarios shown are not limited to these. Figure 1 In the application scenario shown, the large model is deployed in the server 10, and the server 10 can be connected to one or more client devices 20 through a local area network connection, a wide area network connection, an Internet connection, or other types of data networks. The client device 20 here may include but is not limited to: a smart phone, a tablet computer, a laptop computer, a PDA, a personal computer, a smart home device, a vehicle-mounted device, etc. The client device 20 can interact with the user through a graphical user interface to implement the call of the large model, thereby implementing the method provided in the embodiment of the present application.

[0045] In an embodiment of the present application, a system composed of a client device and a server can perform the following steps: the server obtains the currently input data processing dialogue request from the client, and then responds to the data processing dialogue request and returns a data processing dialogue reply to the client. The request data carried in the data processing dialogue request includes: a target object image, a posture guide image and a target text, and the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, and the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to generate a specified posture in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image, and finally the target scene image is displayed in the graphical user interface of the client. It should be noted that, if the operating resources of the client device can meet the deployment and operation conditions of the large model, the embodiment of the present application can be performed in the client device.

[0046] Under the above operating environment, this application provides Figure 2 The image processing method shown. Figure 2 1 is a flow chart of an image processing method according to Embodiment 1 of the present application. Figure 2 As shown, the method may include the following steps:

[0047] Step S21, obtaining a target object image, a posture guiding image and a target text, wherein the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image;

[0048] Step S22: generating a target scene image based on the target object image, the posture guide image and the target text.

[0049] The above-mentioned target object image is an image containing a designated part of the target object, and the designated part of the target object can be any part of the target object, such as the user's face, hands, clothing, etc. The target object image can be obtained by shooting and collecting through an image acquisition device, or can be obtained through an Internet image search engine. The target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, so as to maintain the features and morphology of the target object during the generation process, so as to ensure that the generated target scene image is associated with the input target object image. The target scene image to be generated retains the input features associated with the target object, such as retaining the facial features and clothing features associated with the target object in the target scene image. For example, the target object image shows a girl wearing a white shirt and smiling, and the girl's facial expression and clothing features can be maintained in the target scene image generated under the guidance of the target object image.

[0050] It should be noted that the input features of the target object retained in the target scene image in the embodiment of the present application are explained using facial features and clothing features as examples. The input features that need to be retained may also be other features that the user needs to retain, and the embodiment of the present application is not limited.

[0051] The above-mentioned posture guidance image is used to guide the target object to generate a specified posture in the target scene image, such as different human postures such as standing, sitting, and lying. In different scenes, different postures need to be specified to guide the target object so as to generate a target scene image that meets the personalized needs of the user. For example, if you need to generate an image of a person standing in an outdoor scene, you need to use a posture guidance image to guide the standing posture of the target object, so as to ensure that the generated target scene image meets expectations and achieves a personalized generation effect.

[0052] The target text is at least used to describe the designated content to be displayed in the target scene image. For example, the target text may describe the background content and clothing content to be displayed in the target scene image.

[0053] Exemplarily, in the process of generating a target scene image based on a target object image, a posture guiding image and a target text, firstly, an image recognition technology is used to identify the target object image, such as a person, an animal, an object, etc., and extract it. Then, the posture guiding image is used to correct the posture of the target object to ensure that the posture of the target object meets expectations. Then, according to the scene information described by the target text, the target object image and the corrected posture guiding image are synthesized with the scene elements using computer graphics technology to generate a target scene image. In the synthesis process, factors such as lighting, shadows, and perspective need to be considered to make the generated target scene image more realistic. In addition, the generated target scene image can also be further adjusted and optimized by image processing software to meet the needs and expectations of users.

[0054] Based on the above steps S21 to S22, by acquiring a target object image, a posture guiding image and a target text, wherein the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to generate a specified posture in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image, and then the target scene image is generated based on the target object image, the posture guiding image and the target text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retaining the similar attributes of the target object image while generating the specified posture and the specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the personalized image generation process, and then solving the technical problems of low generation efficiency and poor generation effect in the related technology in the personalized image generation process.

[0055] It should be noted that the image processing method in the embodiment of the present application can be applied but not limited to customized generation scenarios such as virtual fitting, virtual portrait photography, and video generation. This can give the character image a rich and diverse appearance and place it in different environments, while retaining the character's characteristic attributes to meet the user's personalized generation needs.

[0056] The image processing method in the embodiment of the present application is further introduced below.

[0057] In an optional embodiment, the input features include: clothing features and designated part features of the target object. In step S22, generating a target scene image based on the target object image, the posture guide image, and the target text includes:

[0058] Step S221, generating an adjusted guide image using the target object image and the posture guide image;

[0059] Step S222, generating an intermediate scene image according to the target object image, the target text and the adjusted guide image, wherein the intermediate scene image is used to describe the target object presenting a specified posture under the specified content and retaining clothing features;

[0060] Step S223, extracting a designated part image from the target object image;

[0061] Step S224: generating a target scene image based on the designated part image, the intermediate scene image and the adjusted guide image.

[0062] Specifically, the adjusted guiding image is generated using the target object image and the posture guiding image. The adjusted guiding image retains the basic morphological position information of the posture guiding image, and is fine-tuned in multiple dimensions such as body proportion, limb length, face size, and facial features according to the posture characteristics of the target object image. The basic morphological position information of the posture guiding image includes the coordinate positions of each key point in the image, for example, the position information of key points such as the head, shoulders, hands, waist, and feet in human posture recognition. The basic morphological position information can help the computer recognize and understand the posture and movement of the human body in the image. The adjusted guiding image is used as the input condition for the subsequent generation of portrait results, which helps to improve the image generation effect.

[0063] Taking the input features including clothing features and facial features of the target object as an example, further, an intermediate scene image is generated based on the target object image, the target text and the adjusted guide image. The intermediate scene image can be used to describe the target object presenting a specified posture under a specified background, and the clothing features in the target object image are retained in the intermediate scene image. The clothing features in the target object image may include color, style, pattern and material. For example, a red dress with a square collar and pattern design and a soft and smooth material, clothing features can help better identify and describe the clothing worn by the target object. Next, a facial image is extracted from the target object image, and a target scene image is generated based on the facial image, the intermediate scene image and the adjusted guide image.

[0064] Based on the above optional embodiments, an intermediate scene image is generated based on the target object image, the target text and the adjusted guide image, and then the designated part image is extracted from the target object image. Finally, the target scene image is generated based on the designated part image, the intermediate scene image and the adjusted guide image. By processing and adjusting the target object image, the target text and the posture guide image, an intermediate scene image that meets the requirements is generated, and at the same time, the designated part image in the target object image is accurately extracted to achieve fine processing and editing of the target object image, thereby improving image generation efficiency and generation effect.

[0065] In an optional embodiment, in step S221, generating an adjusted guide image using the target object image and the posture guide image includes:

[0066] Step S2211, using a posture extraction model to extract posture from the posture guidance image to obtain a posture corresponding to the posture guidance image;

[0067] Step S2212, obtaining the association relationship between the posture corresponding to the target object image and the posture corresponding to the posture guide image;

[0068] Step S2213: fine-tune the posture corresponding to the posture guide image based on the association relationship to generate an adjusted guide image.

[0069] Specifically, the posture extraction model can obtain the posture information corresponding to the posture guidance image by identifying and analyzing the key points and joint positions in the posture guidance image. The posture information may include the rotation angle of the body, the angle of the joints, etc.

[0070] Exemplarily, in the process of obtaining the association relationship between the posture corresponding to the target object image and the posture corresponding to the posture guidance image, firstly, the target object image and the posture guidance image are feature extracted, and then the feature points of the target object image and the posture guidance image are matched to find the correspondence between the two. Through the known feature point correspondence, the posture estimation algorithm can be used to estimate the posture relationship between the target object image and the posture guidance image, and the rotation matrix and translation matrix between the two can be obtained. According to the posture relationship estimated by the rotation matrix and the translation matrix, the target object image can be posture aligned to align it with the posture guidance image, so as to obtain the association relationship between the posture corresponding to the target object image and the posture corresponding to the posture guidance image.

[0071] Furthermore, the posture corresponding to the posture guide image is adaptively fine-tuned based on the association relationship to generate an adjusted guide image.

[0072] Exemplarily, the target object image and the posture guide image are input to the posture adaptive module to generate an adjusted guide image. The input of the posture adaptive module is the target object image and the posture guide image. The posture corresponding to the target object image is first extracted by the posture extraction model, and then the correlation between the posture corresponding to the target object image and the posture corresponding to the posture guide image is calculated. Based on the correlation, fine-tuning is adaptively performed on the basis of the posture guide image, so as to obtain a new guide map with the posture characteristics of the target user image, that is, the adjusted guide image. The adjusted guide map retains the basic morphological position information of the posture guide image, and is fine-tuned in multiple dimensions such as body proportions, limb length, face size, and facial features according to the posture characteristics of the target object image. The adjusted guide image is used as the input condition for the subsequent generation of portrait results, which helps to improve the generation effect of the ID.

[0073] Based on the above optional embodiments, the posture extraction model is used to extract the posture of the posture guidance image, so as to accurately obtain the correlation between the posture corresponding to the target object image and the posture corresponding to the posture guidance image. Through this correlation, the posture of the posture guidance image can be fine-tuned to generate an adjusted guidance image, so that the guidance image is more consistent with the posture of the target object, thereby improving the accuracy and effectiveness of the posture guidance image, and further improving the image generation effect.

[0074] In an optional embodiment, in step S222, generating an intermediate scene image according to the target object image, the target text, and the adjusted guide image includes:

[0075] Step S2221, using the object segmentation model to perform object segmentation on the target object image to obtain a segmented image, wherein the designated part is in an occluded state in the segmented image;

[0076] Step S2222, performing feature fusion on the segmented image, the designated part image and the target text to obtain a first fusion result;

[0077] Step S2223: Generate an intermediate scene image based on the target object image, the first fusion result, and the adjusted guide image.

[0078] Continuing with the example of the designated part being the face of a person, the object segmentation model is used to segment the target object image to obtain a segmented image. The segmented image is a human image with the background removed, and the face of the person is in a masked state in the segmented image. The object segmentation model can use various deep learning models to segment the target object image at the pixel level to obtain a segmented image. In this way, the target object can be accurately separated from the background, providing more accurate data for subsequent image processing and analysis.

[0079] The segmented image, the facial image and the target text are subjected to feature fusion to obtain a first fusion result, and then an intermediate scene image is generated based on the target object image, the first fusion result and the adjusted guide image.

[0080] Based on the above optional embodiments, the target object can be accurately segmented from the background through the object segmentation model, so that the segmented image only contains part of the target object, which is helpful for subsequent feature fusion and generation of intermediate scene images. Feature fusion can fuse the features of the segmented image, the specified part image and the target text, so as to extract richer target object features, making the generated intermediate scene image more realistic and artistic. The intermediate scene image is generated based on the target object image, the first fusion result and the adjusted guide image, which can retain the features of the target object and generate an intermediate scene image that meets the requirements more in combination with the information of the adjusted guide image, so as to achieve a better visual effect.

[0081] In an optional embodiment, in step S2222, feature fusion is performed on the segmented image, the designated part image, and the target text to obtain a first fusion result including:

[0082] Step S301, determining clothing features of the target object based on the segmented image;

[0083] Step S302, obtaining the designated part feature corresponding to the designated part image;

[0084] Step S303, performing text encoding on the target text to obtain a first text feature;

[0085] Step S304, performing cross attention calculation on the clothing features, the specified part features and the first text features to obtain a first fusion result.

[0086] Exemplarily, text encoding is performed on the target text, and the target text can be converted into a first text feature that can be processed by a computer. In natural language processing, commonly used text encoding methods include but are not limited to bag-of-words model, term frequency-inverse document frequency (TF-IDF) encoding, word embedding, etc. In the bag-of-words model, the words in the target text can be regarded as independent features, and the number of times each word appears in the text is counted to obtain a term frequency vector as the first text feature. In the TF-IDF encoding process, in addition to considering the frequency of the words, the importance of the words in the entire corpus is also considered, and the first text feature is obtained through TF-IDF encoding. In the word embedding process, each word is mapped to a vector representation in a low-dimensional space, and a pre-trained word embedding model can be used to obtain a word embedding representation of the target text.

[0087] For example, in the process of calculating the cross attention of the clothing features, the specified part features and the first text features, first, for each feature vector in the first text feature, the attention mechanism can be used to calculate the correlation between it and other features to obtain the cross attention weight, and then the cross attention weight is applied to each feature vector to obtain a weighted feature vector. The weighted feature vectors are then fused, which can be simply added or a more complex fusion method is used to obtain the first fusion result.

[0088] Based on the above optional embodiments, through image segmentation and feature extraction, combined with text encoding and cross-attention calculation, the clothing features of the target object, the features of the specified part and the first text features are fused, so that the clothing features of the target object can be more accurately identified, and through cross-attention calculation, the correlation analysis between different features can be achieved, so as to more comprehensively understand the characteristics of the target object, and further improve the accuracy and comprehensiveness of image generation and text understanding.

[0089] In an optional embodiment, in step S301, determining clothing features of the target object according to the segmented image includes:

[0090] Step S3011, extracting details from the segmented image to obtain clothing information of the target object;

[0091] Step S3012, performing dimensionality reduction mapping on the clothing information to obtain clothing features of the target object.

[0092] Specifically, by extracting details from the segmented image, the clothing information of the target object can be accurately obtained, including features such as style, color, and texture. By performing dimensionality reduction mapping on clothing information, complex clothing features can be converted into concise feature vectors, which is convenient for subsequent clothing classification, recommendation, and other tasks. The clothing features of the target object can be applied to smart shopping, fashion recommendations, virtual fitting, and other fields, providing users with more personalized and accurate clothing information and services.

[0093] Based on the above optional embodiments, the clothing information of the target object is obtained by extracting details from the segmented image, and then the clothing information is subjected to dimensionality reduction mapping, so as to quickly obtain the clothing features of the target object. This can realize automatic recognition and feature extraction of the target object's clothing, thereby realizing intelligent analysis and processing of the clothing information, and further improving the image generation efficiency.

[0094] In an optional embodiment, in step S302, obtaining the designated part feature corresponding to the designated part image includes:

[0095] Step S3021, performing image coding on the designated part image to obtain an image coding result;

[0096] Step S3022, performing dimensionality reduction mapping on the image encoding result to obtain the designated part feature corresponding to the designated part image.

[0097] Specifically, an image encoder is used to encode the facial image to obtain an image encoding result, and then a dimensionality reduction mapping is performed on the image encoding result to obtain facial features corresponding to the facial image.

[0098] Based on the above optional embodiments, by effectively extracting and encoding the features of the image of the specified part, a feature representation of the specified part is obtained, which helps to perform a more detailed analysis and understanding of the image of the specified part. Through dimensionality reduction mapping, the high-dimensional image encoding result can be converted into a lower-dimensional feature representation, thereby reducing the complexity and computational complexity of the data while retaining important feature information, thereby improving the processing efficiency and performance of the image.

[0099] In an optional embodiment, in step S224, generating the target scene image based on the designated part image, the intermediate scene image and the adjusted guide image includes:

[0100] Step S2241, performing face coding on the designated part image to obtain a face coding result;

[0101] Step S2242, performing dimensionality reduction mapping on the face encoding result to obtain the designated part feature corresponding to the designated part image;

[0102] Step S2243, generating a target scene image based on the intermediate scene image, the designated part features, and the adjusted guide image.

[0103] Specifically, face encoding is performed on the facial image to obtain a face encoding result, and then the face encoding result is subjected to dimensionality reduction mapping to obtain facial features corresponding to the facial image, and finally a target scene image is generated based on the intermediate scene image, the facial features and the adjusted guide image.

[0104] Based on the above optional embodiments, by performing face encoding on the designated part image to obtain the face encoding result, and then performing dimensionality reduction mapping on the face encoding result to obtain the designated part features corresponding to the designated part image, and finally generating the target scene image based on the intermediate scene image, the designated part features and the adjusted guide image, more accurate and natural image synthesis can be achieved, thereby further improving the image generation efficiency and generation effect.

[0105] In an optional embodiment, in step S2243, generating the target scene image based on the intermediate scene image, the designated part feature and the adjusted guide image includes:

[0106] Step S401, performing text encoding on designated words in the target text to obtain a second text feature, wherein the designated words are used to describe the generation quality of the target scene image;

[0107] Step S402, performing cross attention calculation on the designated part feature and the second text feature to obtain a second fusion result;

[0108] Step S403: generating a target scene image based on the intermediate scene image, the second fusion result, and the adjusted guide image.

[0109] Exemplarily, the designated words in the target text may be, but are not limited to, words such as "high quality" and "high definition" that describe the generation quality of the target scene image. The designated words in the target text are text-encoded to obtain a second text feature, a cross-attention calculation is performed on the facial feature and the second text feature to obtain a second fusion result, and a high-definition or high-quality target scene image is generated based on the intermediate scene image, the second fusion result, and the adjusted guide image.

[0110] Based on the above optional embodiment, by performing text encoding on the specified words in the target text, a second text feature is obtained, and then a cross-attention calculation is performed on the specified part feature and the second text feature to obtain a second fusion result. Finally, the target scene image is generated based on the intermediate scene image, the second fusion result and the adjusted guide image, thereby improving the accuracy and quality of image generation.

[0111] The image processing method in the embodiment of the present application is introduced below with reference to the accompanying drawings.

[0112] In the embodiment of the present application, the entire image generation chain is divided into two stages. The first stage generates a specified posture image of the target object in a specified background, that is, an intermediate scene image, based on the target text, the posture guidance image and the target object image. The clothing features of the target object are retained in the intermediate scene image. The second stage further generates a character image consistent with the input facial ID based on the specified part features of the target object image, such as facial features.

[0113] The image generation link in the embodiment of the present application involves three submodules, namely, a body adaptation model, a face adaptation model, and a posture adaptation module, wherein the body adaptation model and the face adaptation model can be obtained based on the diffusion model and using different networks and training strategies. By inputting different features into the pre-trained diffusion model mutual attention network, the target scene image to be generated can be guided to maintain the input features associated with the target object.

[0114] Figure 3 is a schematic diagram of an image processing method according to Embodiment 1 of the present application, such as Figure 3 As shown, after acquiring the target object image, the target object image is cropped to obtain a facial image, the facial image is passed through an image encoder to obtain an image encoding result, and the image encoding result is further sent to a mapping module to obtain facial features after dimensionality reduction mapping. The target object image is segmented using an object segmentation model to obtain a segmented image, in which the face of the target object is in an occluded state, and the detail extraction module is used to extract details from the segmented image to obtain the clothing information of the target object, and further the corresponding mapping module is used to perform dimensionality reduction mapping to obtain the clothing features of the target object. It should be noted that the above-mentioned mapping module can use different network designs, such as a fully connected network, a fully convolutional network, a transformer model, etc., which are not limited by the embodiments of the present application.

[0115] The training of the above body adaptation model only requires training Figure 3The mapping module in the model and the cross attention module corresponding to the clothing branch, and the other modules are pre-trained parameters, which remain fixed during the training process. Among them, the U-Net network uses the pre-trained stablediffusion 1.5 model, the detail extraction module uses the pre-trained model (DINOv2), and the image encoder uses the clip model. The network training follows the stablediffusion training method, and the sampling prediction noise (noise) method is used to train each module, and iterative optimization is performed through back propagation. In the inference stage, using the above-mentioned trained modules, the U-Net main network combined with the pre-trained posture ControlNet model is used to guide the posture generation, and a person image with a specified posture in a specified background and retaining the clothing features of the target user image can be obtained, that is, the intermediate scene image. The intermediate scene image will be used as the input of the face adaptation model for the next generation.

[0116] It should be noted that the pre-trained stable diffusion basic model can use different base models, and the image encoder, face encoder, and detail extraction module can use different models according to needs, but adaptation adjustments of different feature sizes are required, which is not limited in the embodiments of the present application. In the data processing process of training the body adaptation model, different enhancement strategies can be applied to the input image, such as using different scaling and cropping ratios when cropping.

[0117] Figure 4 is a schematic diagram of another image processing method according to Embodiment 1 of the present application, such as Figure 4 As shown, in the face adaptation model, the face encoder is used to encode the face image extracted from the target object image to obtain the face encoding result, and then the mapping module is used to reduce the dimension of the face encoding result to obtain the facial features corresponding to the face image, and the facial features are input as an independent branch into the cross attention module in the diffusion model U-Net structure, and fused with the second text features corresponding to the text attention module to obtain the second fusion result. Furthermore, the intermediate scene image output by the body adaptation model, the second fusion result and the adjusted guide image are used to generate the target scene image. The target scene image is a person image that retains the target object ID attribute, which not only meets the generation requirements of the specified background and the specified posture, but also retains the consistency of the clothing features and facial features corresponding to the target object image in the ID attribute.

[0118] The training of the face adaptation model only requires training Figure 4The mapping module in the image and the cross attention module corresponding to the face branch, and other modules are pre-trained parameters, which remain fixed during the training process. The U-Net network uses the pre-trained stablediffusion 1.5 model, and the face encoder uses a face feature extraction model pre-trained on massive face data. The entire network training follows the stablediffusion training method, and the sampling prediction noise method is used to train each module. In addition, the cosine loss function is added, that is, the face similarity distance between the input image and the predicted intermediate image is calculated, and finally iterative optimization is performed through back propagation. In the inference stage, the above-mentioned trained modules are used to guide the generation of facial features in the face area through the U-Net main network combined with the pre-trained posture ControlNet model, and finally a target scene image with an ID attribute that is consistent with the input target object image is obtained.

[0119] Figure 5 is a schematic diagram of another image processing method according to Embodiment 1 of the present application, such as Figure 5 As shown, a target object image, a posture guide image and a target text are obtained, wherein the display content of the target object image includes at least: the face of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to generate a specified posture in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image. The target object image and the posture guide image are input into the posture adaptation module to generate an adjusted guide image. In the body adaptation model, an intermediate scene image is generated based on the target object image, the target text and the adjusted guide image. In the face adaptation model, a target scene image is generated based on the facial image, the intermediate scene image and the adjusted guide image.

[0120] In an embodiment of the present application, by designing a lightweight adaptation network, a personalized generation scheme can be implemented without fine-tuning direct inference under the premise of single image input. By designing a two-stage link under the body adaptation model and the face adaptation module, on the one hand, it can ensure the synchronous retention of clothing and face ID features in the target scene image, and on the other hand, it also reduces the attenuation effect of posture guidance on face similarity to a certain extent, so that the extracted clothing features and face features can be fully applied to the generation process, ensuring the high similarity between the generation result and the input image. In addition, by introducing the adjustment of the posture adaptation module, the coordination and rationality of the body posture of the generation result can be guaranteed, and at the same time, the guidance of the facial features is closer to the target object image, which helps to improve the generation effect of facial details.

[0121] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0122] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including several instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0124] Example 2

[0125] According to an embodiment of the present application, an image processing method is also provided. Figure 6 is a flowchart of an image processing method according to Embodiment 2 of the present application, such as Figure 6 As shown, the method may include the following steps:

[0126] Step S61, obtaining a user image, a posture guiding image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guiding image is used to guide the target user to a specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image;

[0127] Step S62: generating a target fitting image based on the user image, the posture guide image and the fitting text.

[0128] Based on the above steps S61 to S62, by acquiring a user image, a posture guide image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guide image is used to guide the target user in the specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image, and then the target fitting image is generated based on the user image, the posture guide image and the fitting text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retain the similar attributes of the target object image while generating the specified posture and specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and then solving the technical problems of low generation efficiency and poor generation effect in the related technology in the image personalized generation process.

[0129] In an optional embodiment, in step S62, generating a target fitting image based on the user image, the posture guide image and the fitting text includes:

[0130] Step S621, generating an adjusted guide image using the user image and the posture guide image;

[0131] Step S622, generating an intermediate fitting image according to the user image, the fitting text and the adjusted guide image, wherein the intermediate fitting image is used to describe the target user presenting a specified posture in the target clothing;

[0132] Step S623, extracting a facial image from the user image;

[0133] Step S624: generating a target fitting image based on the facial image, the intermediate fitting image, and the adjusted guide image.

[0134] Specifically, the user image and the posture guide image are used to generate an adjusted guide image. The adjusted guide image retains the basic morphological position information of the posture guide image, and is fine-tuned in multiple dimensions such as body proportions, limb length, face size, and facial features according to the posture characteristics of the user image. The basic morphological position information of the posture guide image includes the coordinate positions of each key point in the image, for example, the position information of key points such as the head, shoulders, hands, waist, and feet in human posture recognition. The basic morphological position information can help the computer recognize and understand the posture and movement of the human body in the image. The adjusted guide image is used as the input condition for the subsequent generation of portrait results, which helps to improve the image generation effect.

[0135] Furthermore, an intermediate fitting image is generated based on the user image, the fitting text and the adjusted guide image. The intermediate fitting image can be used to describe the target object presenting a specified posture in the target clothing. The target clothing has specific clothing features, which may include color, style, pattern and material. Next, a facial image is extracted from the user image, and a target fitting image is generated based on the facial image, the intermediate fitting image and the adjusted guide image.

[0136] Based on the above optional embodiments, an adjusted guide image is generated by utilizing a user image and a posture guide image, and then an intermediate fitting image is generated based on the user image, fitting text and the adjusted guide image. Subsequently, a facial image is extracted from the user image, and finally a target fitting image is generated based on the facial image, the intermediate fitting image and the adjusted guide image, thereby improving image generation efficiency and generation effect.

[0137] For the parts not described in detail in the above embodiments of the present application, please refer to the relevant description of Embodiment 1 and will not be described in detail here.

[0138] Example 3

[0139] According to an embodiment of the present application, an image processing method is also provided. Figure 7 is a flowchart of an image processing method according to Embodiment 3 of the present application, such as Figure 7 As shown, the method may include the following steps:

[0140] Step S71, obtaining a data processing request through a first application programming interface;

[0141] Step S72, returning a data processing response through a second application programming interface; wherein the request data carried in the data processing request includes: a target object image, a posture guide image and a target text, and the response data carried in the data processing response includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, and the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is used to at least describe the specified content to be displayed in the target scene image.

[0142] Based on the above steps S71 to S72, a data processing request is obtained through the first application programming interface, and then a data processing response is returned through the second application programming interface; wherein the request data carried in the data processing request includes: a target object image, a posture guide image and a target text, and the response data carried in the data processing response includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, and the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to generate a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, effectively avoiding the situation of similar attribute attenuation, and retaining the similar attributes of the target object image while generating the specified posture and the specified content in the target scene image, thereby achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and thus solving the technical problems of low generation efficiency and poor generation effect in the related technology in the image personalized generation process.

[0143] The first application programming interface and the second application programming interface may be the same application programming interface or different application programming interfaces. In an optional embodiment, the interface parameters in the first application programming interface and the second application programming interface may include but are not limited to: interface global identifier, interface signature key, interface timestamp, interface request identifier, system call credential identifier, etc. The first application programming interface may use GET or POST as the interface request method to obtain the file processing request. The second application programming interface may use JSON format to feedback the file processing response.

[0144] For the parts not described in detail in the above embodiments of the present application, please refer to the relevant description of Embodiment 1 and will not be described in detail here.

[0145] Example 4

[0146] According to an embodiment of the present application, an image processing method is also provided. Figure 8 is a flowchart of an image processing method according to Embodiment 4 of the present application, such as Figure 8 As shown, the method may include the following steps:

[0147] Step S81, obtaining the currently input data processing session request;

[0148] Step S82, in response to the data processing dialogue request, returning a data processing dialogue reply; wherein the request data carried in the data processing dialogue request includes: a target object image, a posture guiding image and a target text, and the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guiding image and the target text, and the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image;

[0149] Step S83: display the target scene image in the graphical user interface.

[0150] Based on the above steps S81 to S83, by obtaining the currently input data processing dialogue request, and then responding to the data processing dialogue request, a data processing dialogue reply is returned; wherein the request data carried in the data processing dialogue request includes: a target object image, a posture guide image and a target text, and the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, and the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, and the posture guide image is used to guide the target object in the target scene image. The specified posture to be generated in the target scene image, the target text is at least used to describe the specified content to be displayed in the target scene image, and finally the target scene image is displayed in the graphical user interface, thereby retaining the input features associated with the target object in the personalized generated target scene image, and retaining the similar attributes of the target object image while generating the specified posture and the specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the process of personalized image generation, and then solving the technical problems of low generation efficiency and poor generation effect in the process of personalized image generation in related technologies.

[0151] For the parts not described in detail in the above embodiments of the present application, please refer to the relevant description of Embodiment 1 and will not be described in detail here.

[0152] Example 5

[0153] According to an embodiment of the present application, an image processing device for implementing the above-mentioned image processing method is also provided. Fig. 9 is a structural block diagram of an image processing device according to Embodiment 5 of the present application, such as Fig. 9 As shown, the device comprises:

[0154] An acquisition module 901 is used to acquire a target object image, a posture guiding image and a target text, wherein the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image;

[0155] The generating module 902 is used to generate a target scene image based on the target object image, the posture guiding image and the target text.

[0156] Optionally, the generation module 902 is also used to: generate an adjusted guide image using the target object image and the posture guide image; generate an intermediate scene image based on the target object image, the target text and the adjusted guide image, wherein the intermediate scene image is used to describe the target object presenting a specified posture under specified content and retaining clothing features; extract a specified part image from the target object image; and generate a target scene image based on the specified part image, the intermediate scene image and the adjusted guide image.

[0157] Optionally, the generation module 902 is also used to: use a posture extraction model to extract the posture of the posture guidance image to obtain the posture corresponding to the posture guidance image; obtain the association relationship between the posture corresponding to the target object image and the posture corresponding to the posture guidance image; based on the association relationship, fine-tune the posture corresponding to the posture guidance image to generate an adjusted guidance image.

[0158] Optionally, the generation module 902 is also used to: use an object segmentation model to perform object segmentation on the target object image to obtain a segmented image, wherein the designated part is in an occluded state in the segmented image; perform feature fusion on the segmented image, the designated part image and the target text to obtain a first fusion result; and generate an intermediate scene image based on the target object image, the first fusion result and the adjusted guide image.

[0159] Optionally, the generation module 902 is also used to: determine the clothing features of the target object based on the segmented image; obtain the specified part features corresponding to the specified part image; perform text encoding on the target text to obtain the first text features; perform cross-attention calculation on the clothing features, the specified part features and the first text features to obtain the first fusion result.

[0160] Optionally, the generating module 902 is further used to: extract details from the segmented image to obtain clothing information of the target object; and perform dimensionality reduction mapping on the clothing information to obtain clothing features of the target object.

[0161] Optionally, the generating module 902 is further used to: perform image encoding on the designated part image to obtain an image encoding result; and perform dimensionality reduction mapping on the image encoding result to obtain designated part features corresponding to the designated part image.

[0162] Optionally, the generation module 902 is also used to: perform face encoding on the designated part image to obtain a face encoding result; perform dimensionality reduction mapping on the face encoding result to obtain designated part features corresponding to the designated part image; and generate a target scene image based on the intermediate scene image, the designated part features and the adjusted guide image.

[0163] Optionally, the generation module 902 is also used to: perform text encoding on specified words in the target text to obtain a second text feature, wherein the specified words are used to describe the generation quality of the target scene image; perform cross-attention calculation on the specified part feature and the second text feature to obtain a second fusion result; and generate the target scene image based on the intermediate scene image, the second fusion result and the adjusted guide image.

[0164] In an embodiment of the present application, by acquiring a target object image, a posture guiding image and a target text, wherein the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to generate a specified posture in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image, and then the target scene image is generated based on the target object image, the posture guiding image and the target text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retaining the similar attributes of the target object image while generating the specified posture and the specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and then solving the technical problems of low generation efficiency and poor generation effect in the related technology in the image personalized generation process.

[0165] It should be noted that the acquisition module 901 and the generation module 902 correspond to steps S21 to S22 in Example 1, and the examples and application scenarios implemented by the two modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory and processed by one or more processors, and the above-mentioned modules may also be run in a computer terminal as part of the device.

[0166] According to an embodiment of the present application, an image processing device for implementing the above-mentioned image processing method is also provided. Fig.10 is a structural block diagram of another image processing device according to Embodiment 5 of the present application, such as Fig.10 As shown, the device comprises:

[0167] The acquisition module 1001 is used to acquire a user image, a posture guiding image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guiding image is used to guide the target user to a specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image;

[0168] The generating module 1002 is used to generate a target fitting image based on the user image, the posture guide image and the fitting text.

[0169] Optionally, the generation module 1002 is also used to: generate an adjusted guide image using the user image and the posture guide image; generate an intermediate fitting image based on the user image, fitting text and the adjusted guide image, wherein the intermediate fitting image is used to describe the target user presenting a specified posture in the target clothing; extract a facial image from the user image; and generate a target fitting image based on the facial image, the intermediate fitting image and the adjusted guide image.

[0170] In an embodiment of the present application, by acquiring a user image, a posture guide image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guide image is used to guide the target user in the specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image, and then the target fitting image is generated based on the user image, the posture guide image and the fitting text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retaining the similar attributes of the target object image while generating the specified posture and specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and then solving the technical problems of low generation efficiency and poor generation effect in the image personalized generation process of the related technology.

[0171] It should be noted that the acquisition module 1001 and the generation module 1002 correspond to steps S61 to S62 in Embodiment 2, and the examples and application scenarios implemented by the two modules and the corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 2. It should be noted that the modules or units may be hardware components or software components stored in a memory and processed by one or more processors, and the modules may also be part of a device and run in a computer terminal.

[0172] According to an embodiment of the present application, an image processing device for implementing the above-mentioned image processing method is also provided. Fig.11 is a structural block diagram of another image processing device according to Embodiment 5 of the present application, such as Fig.11 As shown, the device comprises:

[0173] An acquisition module 1101 is used to acquire a data processing request through a first application programming interface;

[0174] The returning module 1102 is used to return a data processing response through a second application programming interface;

[0175] Among them, the request data carried in the data processing request includes: a target object image, a posture guide image and a target text; the response data carried in the data processing response includes: a target scene image; the target scene image is generated based on the target object image, the posture guide image and the target text; the display content of the target object image includes at least: a specified part of the target object; the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object; the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image; and the target text is used to at least describe the specified content to be displayed in the target scene image.

[0176] In an embodiment of the present application, by acquiring a user image, a posture guide image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guide image is used to guide the target user in the specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image, and then the target fitting image is generated based on the user image, the posture guide image and the fitting text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retaining the similar attributes of the target object image while generating the specified posture and specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and then solving the technical problems of low generation efficiency and poor generation effect in the image personalized generation process of the related technology.

[0177] It should be noted that the acquisition module 1101 and the return module 1102 correspond to steps S71 to S72 in Example 3, and the examples and application scenarios implemented by the two modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Example 3. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory and processed by one or more processors, and the above-mentioned modules may also be run in a computer terminal as part of a device.

[0178] According to an embodiment of the present application, an image processing device for implementing the above-mentioned image processing method is also provided. Fig.12 is a structural block diagram of another image processing device according to Embodiment 5 of the present application, such as Fig.12 As shown, the device comprises:

[0179] An acquisition module 1201 is used to acquire a currently input data processing session request;

[0180] A return module 1202 is used to return a data processing dialogue reply in response to the data processing dialogue request;

[0181] The request data carried in the data processing dialogue request includes: a target object image, a posture guiding image and a target text; the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guiding image and the target text; the display content of the target object image includes at least: a specified part of the target object; the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object; the posture guiding image is used to guide the target object to a specified posture to be generated in the target scene image; and the target text is used to describe at least the specified content to be displayed in the target scene image;

[0182] The display module 1203 is used to display the target scene image in the graphical user interface.

[0183] By acquiring a user image, a posture guiding image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guiding image is used to guide the target user to a specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image, and then the target fitting image is generated based on the user image, the posture guiding image and the fitting text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retaining the similar attributes of the target object image while generating the specified posture and specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and then solving the technical problems of low generation efficiency and poor generation effect in the related technology in the image personalized generation process.

[0184] It should be noted that the acquisition module 1201, the return module 1202 and the display module 1203 correspond to steps S81 to S83 in Example 4, and the three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 4. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory and processed by one or more processors, and the above-mentioned modules may also be part of a device and run in a computer terminal.

[0185] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.

[0186] Example 6

[0187] The embodiment of the present application may provide a computer terminal, which may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced by a terminal device such as a mobile terminal.

[0188] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.

[0189] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the image processing method: obtaining a target object image, a posture guide image and a target text, wherein the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image; generating the target scene image based on the target object image, the posture guide image and the target text.

[0190] Optionally, Fig.13 is a structural block diagram of a computer terminal according to Embodiment 6 of the present application. Fig.13 As shown, the computer terminal may include: one or more (only one is shown in the figure) processors 132, a memory 134, a storage controller, and a peripheral interface, wherein the peripheral interface is connected to a radio frequency module, an audio module, and a display.

[0191] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the image processing method and device in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned image processing method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0192] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain a target object image, a posture guide image and a target text, wherein the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is used to at least describe the specified content to be displayed in the target scene image; generate the target scene image based on the target object image, the posture guide image and the target text.

[0193] Optionally, the processor may also execute program code for the following steps: generating an adjusted guide image using the target object image and the posture guide image; generating an intermediate scene image based on the target object image, the target text and the adjusted guide image, wherein the intermediate scene image is used to describe the target object presenting a specified posture under specified content and retaining clothing features; extracting a specified part image from the target object image; generating a target scene image based on the specified part image, the intermediate scene image and the adjusted guide image.

[0194] Optionally, the processor may also execute the program code of the following steps: extracting the posture of the posture guidance image using a posture extraction model to obtain the posture corresponding to the posture guidance image; obtaining the association between the posture corresponding to the target object image and the posture corresponding to the posture guidance image; and fine-tuning the posture corresponding to the posture guidance image based on the association to generate an adjusted guidance image.

[0195] Optionally, the processor may also execute the program code of the following steps: performing object segmentation on the target object image using an object segmentation model to obtain a segmented image, wherein the designated part is in an occluded state in the segmented image; performing feature fusion on the segmented image, the designated part image and the target text to obtain a first fusion result; and generating an intermediate scene image based on the target object image, the first fusion result and the adjusted guide image.

[0196] Optionally, the processor may also execute program codes of the following steps: determining clothing features of the target object based on the segmented image; obtaining designated part features corresponding to the designated part image; performing text encoding on the target text to obtain a first text feature; performing cross-attention calculation on the clothing features, designated part features and the first text feature to obtain a first fusion result.

[0197] Optionally, the processor may also execute program codes of the following steps: extracting details from the segmented image to obtain clothing information of the target object; and performing dimensionality reduction mapping on the clothing information to obtain clothing features of the target object.

[0198] Optionally, the processor may also execute program codes of the following steps: performing image encoding on the designated part image to obtain an image encoding result; performing dimensionality reduction mapping on the image encoding result to obtain designated part features corresponding to the designated part image.

[0199] Optionally, the processor may also execute the program code of the following steps: performing face encoding on the designated part image to obtain a face encoding result; performing dimensionality reduction mapping on the face encoding result to obtain designated part features corresponding to the designated part image; and generating a target scene image based on the intermediate scene image, the designated part features, and the adjusted guide image.

[0200] Optionally, the processor may also execute the program code of the following steps: performing text encoding on designated words in the target text to obtain a second text feature, wherein the designated words are used to describe the generation quality of the target scene image; performing cross-attention calculation on designated part features and the second text feature to obtain a second fusion result; and generating the target scene image based on the intermediate scene image, the second fusion result, and the adjusted guide image.

[0201] Optionally, the processor may also execute program code for the following steps: acquiring a user image, a posture guiding image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guiding image is used to guide the target user in a specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image; and generating the target fitting image based on the user image, the posture guiding image and the fitting text.

[0202] Optionally, the processor may also execute program codes of the following steps: generating an adjusted guide image using a user image and a posture guide image; generating an intermediate fitting image based on the user image, fitting text and the adjusted guide image, wherein the intermediate fitting image is used to describe the target user presenting a specified posture in the target clothing; extracting a facial image from the user image; generating a target fitting image based on the facial image, the intermediate fitting image and the adjusted guide image.

[0203] Optionally, the processor may also execute program code for the following steps: obtaining a data processing request through a first application programming interface; returning a data processing response through a second application programming interface; wherein the request data carried in the data processing request includes: a target object image, a posture guide image and a target text, and the response data carried in the data processing response includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image.

[0204] Optionally, the processor may also execute program code for the following steps: obtaining a currently input data processing dialogue request; returning a data processing dialogue reply in response to the data processing dialogue request; wherein the request data carried in the data processing dialogue request includes: a target object image, a posture guide image and a target text, and the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image; and displaying the target scene image in a graphical user interface.

[0205] According to an embodiment of the present application, a target object image, a posture guiding image and a target text are obtained, wherein the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to generate a specified posture in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image, and then the target scene image is generated based on the target object image, the posture guiding image and the target text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retain the similar attributes of the target object image while generating the specified posture and the specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and thus solving the technical problems of low generation efficiency and poor generation effect in the related technology in the image personalized generation process.

[0206] Those skilled in the art will appreciate that the structure shown in the figure is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other terminal devices. Fig.13 It does not limit the structure of the above electronic device. For example, the computer terminal may also include Fig.13 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig.13 Different configurations are shown.

[0207] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0208] Example 7

[0209] The embodiment of the present application further provides a computer-readable storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the image processing method provided in the first embodiment.

[0210] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0211] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: obtaining a target object image, a posture guide image and a target text, wherein the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain input features associated with the target object, the posture guide image is used to guide the target object in a specified posture to be generated in the target scene image, and the target text is used to describe at least specified content to be displayed in the target scene image; generating a target scene image based on the target object image, the posture guide image and the target text.

[0212] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: generating an adjusted guide image using a target object image and a posture guide image; generating an intermediate scene image based on the target object image, the target text and the adjusted guide image, wherein the intermediate scene image is used to describe the target object presenting a specified posture under specified content and retaining clothing features; extracting a specified part image from the target object image; generating a target scene image based on the specified part image, the intermediate scene image and the adjusted guide image.

[0213] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: extracting the posture of the posture guidance image using a posture extraction model to obtain the posture corresponding to the posture guidance image; obtaining the association relationship between the posture corresponding to the target object image and the posture corresponding to the posture guidance image; and fine-tuning the posture corresponding to the posture guidance image based on the association relationship to generate an adjusted guidance image.

[0214] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: performing object segmentation on the target object image using an object segmentation model to obtain a segmented image, wherein the designated part is in an occluded state in the segmented image; performing feature fusion on the segmented image, the designated part image, and the target text to obtain a first fusion result; and generating an intermediate scene image based on the target object image, the first fusion result, and the adjusted guide image.

[0215] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: determining clothing features of the target object based on the segmented image; obtaining designated part features corresponding to the designated part image; performing text encoding on the target text to obtain a first text feature; performing cross-attention calculations on the clothing features, designated part features, and the first text features to obtain a first fusion result.

[0216] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: extracting details from the segmented image to obtain clothing information of the target object; and performing dimensionality reduction mapping on the clothing information to obtain clothing features of the target object.

[0217] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: performing image encoding on the designated part image to obtain an image encoding result; performing dimensionality reduction mapping on the image encoding result to obtain designated part features corresponding to the designated part image.

[0218] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: performing face encoding on the designated part image to obtain a face encoding result; performing dimensionality reduction mapping on the face encoding result to obtain designated part features corresponding to the designated part image; and generating a target scene image based on the intermediate scene image, the designated part features, and the adjusted guide image.

[0219] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: performing text encoding on specified words in the target text to obtain a second text feature, wherein the specified words are used to describe the generation quality of the target scene image; performing cross-attention calculation on the specified part feature and the second text feature to obtain a second fusion result; and generating the target scene image based on the intermediate scene image, the second fusion result, and the adjusted guide image.

[0220] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: acquiring a user image, a posture guide image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guide image is used to guide the target user in a specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image; generating the target fitting image based on the user image, the posture guide image and the fitting text.

[0221] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: generating an adjusted guide image using a user image and a posture guide image; generating an intermediate fitting image based on the user image, fitting text and the adjusted guide image, wherein the intermediate fitting image is used to describe the target user presenting a specified posture in the target clothing; extracting a facial image from the user image; and generating a target fitting image based on the facial image, the intermediate fitting image and the adjusted guide image.

[0222] Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: obtaining a data processing request through a first application programming interface; returning a data processing response through a second application programming interface; wherein the request data carried in the data processing request includes: a target object image, a posture guide image and a target text, and the response data carried in the data processing response includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image.

[0223] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: obtaining a currently input data processing dialogue request; returning a data processing dialogue reply in response to the data processing dialogue request; wherein the request data carried in the data processing dialogue request includes: a target object image, a posture guide image and a target text, and the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image; and displaying the target scene image in a graphical user interface.

[0224] According to an embodiment of the present application, a target object image, a posture guiding image and a target text are obtained, wherein the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to generate a specified posture in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image, and then the target scene image is generated based on the target object image, the posture guiding image and the target text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retain the similar attributes of the target object image while generating the specified posture and the specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and thus solving the technical problems of low generation efficiency and poor generation effect in the related technology in the image personalized generation process.

[0225] Example 8

[0226] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product may include a computer program, and the computer program implements the method provided in the embodiment when executed by a processor.

[0227] Optionally, the computer program included in the above-mentioned computer program product is executed by a processor to perform the following steps: acquiring a target object image, a posture guide image and a target text, wherein the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image; generating the target scene image based on the target object image, the posture guide image and the target text.

[0228] Optionally, the computer program included in the above-mentioned computer program product is used by the processor to execute the following steps: generate an adjusted guide image using the target object image and the posture guide image; generate an intermediate scene image based on the target object image, the target text and the adjusted guide image, wherein the intermediate scene image is used to describe the target object presenting a specified posture under specified content and retaining clothing features; extract a specified part image from the target object image; and generate a target scene image based on the specified part image, the intermediate scene image and the adjusted guide image.

[0229] Optionally, the computer program included in the above-mentioned computer program product is used by the processor to execute the following steps: use a posture extraction model to extract the posture of the posture guidance image to obtain the posture corresponding to the posture guidance image; obtain the association relationship between the posture corresponding to the target object image and the posture corresponding to the posture guidance image; based on the association relationship, fine-tune the posture corresponding to the posture guidance image to generate an adjusted guidance image.

[0230] Optionally, the computer program included in the above-mentioned computer program product is used by the processor to execute the following steps: use an object segmentation model to perform object segmentation on the target object image to obtain a segmented image, wherein the designated part is in an occluded state in the segmented image; perform feature fusion on the segmented image, the designated part image and the target text to obtain a first fusion result; and generate an intermediate scene image based on the target object image, the first fusion result and the adjusted guide image.

[0231] Optionally, the computer program included in the above-mentioned computer program product is used by the processor to execute the following steps: determine the clothing features of the target object based on the segmented image; obtain the designated part features corresponding to the designated part image; perform text encoding on the target text to obtain a first text feature; perform cross-attention calculation on the clothing features, the designated part features and the first text features to obtain a first fusion result.

[0232] Optionally, the computer program included in the above-mentioned computer program product is used by a processor to execute the following steps: extract details from the segmented image to obtain clothing information of the target object; and perform dimensionality reduction mapping on the clothing information to obtain clothing features of the target object.

[0233] Optionally, the computer program included in the above-mentioned computer program product is used by a processor to execute the following steps: performing image encoding on the designated part image to obtain an image encoding result; performing dimensionality reduction mapping on the image encoding result to obtain designated part features corresponding to the designated part image.

[0234] Optionally, the computer program included in the above-mentioned computer program product is used by the processor to execute the following steps: perform face encoding on the designated part image to obtain a face encoding result; perform dimensionality reduction mapping on the face encoding result to obtain designated part features corresponding to the designated part image; and generate a target scene image based on the intermediate scene image, the designated part features and the adjusted guide image.

[0235] Optionally, the computer program included in the above-mentioned computer program product is used by the processor to execute the following steps: text encoding of specified words in the target text to obtain a second text feature, wherein the specified words are used to describe the generation quality of the target scene image; cross-attention calculation of the specified part feature and the second text feature to obtain a second fusion result; and generation of the target scene image based on the intermediate scene image, the second fusion result and the adjusted guide image.

[0236] Optionally, the computer program included in the above-mentioned computer program product is executed by the processor to perform the following steps: acquiring a user image, a posture guide image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of the target user, the user image is used to guide the target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guide image is used to guide the target user in a specified posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image; and generating the target fitting image based on the user image, the posture guide image and the fitting text.

[0237] Optionally, the computer program included in the above-mentioned computer program product is used by the processor to execute the following steps: generate an adjusted guide image using the user image and the posture guide image; generate an intermediate fitting image based on the user image, fitting text and the adjusted guide image, wherein the intermediate fitting image is used to describe the target user presenting a specified posture in the target clothing; extract a facial image from the user image; and generate a target fitting image based on the facial image, the intermediate fitting image and the adjusted guide image.

[0238] Optionally, the computer program included in the above-mentioned computer program product is executed by the processor to perform the following steps: obtain a data processing request through a first application programming interface; return a data processing response through a second application programming interface; wherein the request data carried in the data processing request includes: a target object image, a posture guide image and a target text, and the response data carried in the data processing response includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, and the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image.

[0239] Optionally, the computer program included in the above-mentioned computer program product is executed by the processor in the following steps: obtaining a currently input data processing dialogue request; returning a data processing dialogue reply in response to the data processing dialogue request; wherein the request data carried in the data processing dialogue request includes: a target object image, a posture guide image and a target text, and the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, and the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image; and displaying the target scene image in a graphical user interface.

[0240] According to an embodiment of the present application, a target object image, a posture guiding image and a target text are obtained, wherein the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to generate a specified posture in the target scene image, and the target text is used to describe at least the specified content to be displayed in the target scene image, and then the target scene image is generated based on the target object image, the posture guiding image and the target text, thereby being able to retain the input features associated with the target object in the personalized generated target scene image, and retain the similar attributes of the target object image while generating the specified posture and the specified content in the target scene image, effectively avoiding the attenuation of similar attributes, and achieving the purpose of efficiently and personalized generation of the target scene image, thereby achieving the technical effect of improving the generation efficiency and generation effect in the image personalized generation process, and thus solving the technical problems of low generation efficiency and poor generation effect in the related technology in the image personalized generation process.

[0241] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0242] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0243] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0244] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0245] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0246] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0247] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An image processing method, characterized in that: include: Acquire a target object image, a posture guiding image and a target text, wherein the display content of the target object image at least includes: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guiding image is used to guide the target object to a specified posture to be generated in the target scene image, and the target text is used to at least describe the specified content to be displayed in the target scene image; The target scene image is generated based on the target object image, the posture guide image, and the target text.

2. The image processing method according to claim 1, characterized in that: The input features include: clothing features and designated part features of the target object, and generating the target scene image based on the target object image, the posture guide image and the target text includes: generating an adjusted guide image using the target object image and the posture guide image; generating an intermediate scene image according to the target object image, the target text, and the adjusted guide image, wherein the intermediate scene image is used to describe that the target object presents the specified posture under the specified content and retains the clothing features; Extracting a designated part image from the target object image; The target scene image is generated based on the designated part image, the intermediate scene image, and the adjusted guide image.

3. The image processing method according to claim 2, characterized in that: Generating the adjusted guide image using the target object image and the posture guide image includes: Using a posture extraction model to perform posture extraction on the posture guidance image to obtain a posture corresponding to the posture guidance image; Acquire an association relationship between a posture corresponding to the target object image and a posture corresponding to the posture guide image; The posture corresponding to the posture guide image is fine-tuned based on the association relationship to generate the adjusted guide image.

4. The image processing method according to claim 2, characterized in that: Generating the intermediate scene image according to the target object image, the target text, and the adjusted guide image includes: Performing object segmentation on the target object image using an object segmentation model to obtain a segmented image, wherein the designated part is in an occluded state in the segmented image; Performing feature fusion on the segmented image, the designated part image and the target text to obtain a first fusion result; The intermediate scene image is generated based on the target object image, the first fusion result, and the adjusted guide image.

5. The image processing method according to claim 4, characterized in that: Performing feature fusion on the segmented image, the designated part image, and the target text to obtain the first fusion result includes: Determining clothing features of the target object based on the segmented image; Acquire the designated part feature corresponding to the designated part image; Performing text encoding on the target text to obtain a first text feature; A cross-attention calculation is performed on the clothing feature, the designated part feature, and the first text feature to obtain the first fusion result.

6. The image processing method according to claim 5, characterized in that: Determining the clothing features of the target object according to the segmented image includes: Extracting details from the segmented image to obtain clothing information of the target object; Perform dimensionality reduction mapping on the clothing information to obtain the clothing features of the target object.

7. The image processing method according to claim 5, characterized in that: Acquiring the designated part feature corresponding to the designated part image includes: Performing image coding on the designated part image to obtain an image coding result; Perform dimensionality reduction mapping on the image encoding result to obtain the designated part feature corresponding to the designated part image.

8. The image processing method according to claim 2, characterized in that: Generating the target scene image based on the designated part image, the intermediate scene image, and the adjusted guide image includes: Performing face coding on the designated part image to obtain a face coding result; Performing dimensionality reduction mapping on the face encoding result to obtain a designated part feature corresponding to the designated part image; The target scene image is generated based on the intermediate scene image, the designated part feature, and the adjusted guide image.

9. The image processing method according to claim 8, characterized in that: Generating the target scene image based on the intermediate scene image, the designated part feature, and the adjusted guide image includes: Performing text encoding on designated words in the target text to obtain a second text feature, wherein the designated words are used to describe the generation quality of the target scene image; Performing cross attention calculation on the designated part feature and the second text feature to obtain a second fusion result; The target scene image is generated based on the intermediate scene image, the second fusion result, and the adjusted guide image.

10. An image processing method, characterized in that: include: Acquire a user image, a posture guiding image and a fitting text, wherein the display content of the user image includes: the face and initial clothing of a target user, the user image is used to guide a target fitting image to be generated to retain the facial features and initial clothing features of the target user, the posture guiding image is used to guide the target user to perform a designated posture to be generated in the target fitting image, and the fitting text is used to describe the target clothing to be displayed in the target fitting image; The target fitting image is generated based on the user image, the posture guide image, and the fitting text.

11. The image processing method according to claim 10, characterized in that: Generating the target fitting image based on the user image, the posture guide image and the fitting text includes: generating an adjusted guide image using the user image and the posture guide image; generating an intermediate fitting image according to the user image, the fitting text and the adjusted guide image, wherein the intermediate fitting image is used to describe the target user presenting the specified posture in the target clothing; extracting a facial image from the user image; The target fitting image is generated based on the facial image, the intermediate fitting image, and the adjusted guide image.

12. An image processing method, characterized in that: include: Obtaining a data processing request through a first application programming interface; returning a data processing response via a second application programming interface; Among them, the request data carried in the data processing request includes: a target object image, a posture guide image and a target text, and the response data carried in the data processing response includes: a target scene image, the target scene image is generated based on the target object image, the posture guide image and the target text, and the display content of the target object image includes at least: a specified part of the target object, the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object, the posture guide image is used to guide the target object to generate a specified posture in the target scene image, and the target text is at least used to describe the specified content to be displayed in the target scene image.

13. An image processing method, characterized in that: include: Get the currently input data processing session request; In response to the data processing session request, returning a data processing session reply; The request data carried in the data processing dialogue request includes: a target object image, a posture guiding image and a target text; the information carried in the data processing dialogue reply includes: a target scene image, the target scene image is generated based on the target object image, the posture guiding image and the target text; the display content of the target object image includes at least: a specified part of the target object; the target object image is used to guide the target scene image to be generated to retain the input features associated with the target object; the posture guiding image is used to guide the target object to a specified posture to be generated in the target scene image; and the target text is used to describe at least the specified content to be displayed in the target scene image; The target scene image is displayed in a graphical user interface.

14. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the program executes the image processing method described in any one of claims 1 to 13 when running.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute the image processing method according to any one of claims 1 to 13.

16. A computer program product, characterized in that The invention comprises a computer program, which implements the image processing method according to any one of claims 1 to 13 when being executed by a processor.

Citation Information

Cited By

  • Image generation method and program product

    CN118864653A

  • Text-guided controllable portrait generation method and system based on diffusion model

    CN119444933A

  • Specified standing posture prompt graph generation method and system and millimeter wave self-service scanning security check method and system

    CN119810252A