Method for making water drop object dynamic graph according to generative artificial intelligence and computing device
Through generative artificial intelligence technology, Lora and SVD models are used to generate animations of water drop objects from static images, solving the problem of high threshold for animation production for small and medium-sized businesses, achieving efficient and convenient display of the freshness of fruits and vegetables, and improving product conversion Rate.
Patent Information
- Application Number
- CN202410694530.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional animation production has a high threshold for small and medium-sized businesses and is difficult to simplify and automate. As a result, it is difficult to effectively display the freshness of time-sensitive products such as fruits and vegetables, affecting conversion rates.
Using generative artificial intelligence technology, pre-trained Lora models and SVD models, combined with local redrawing technology, are used to generate animations of water drop objects from static images, simplifying the animation production process and improving image conversion efficiency and quality.
It achieves the convenient, economical and efficient generation of vivid water drop object animations, reduces the production threshold and cost, improves the expressiveness of product freshness, and is suitable for product display on e-commerce platforms.
Smart Images

Figure CN118735795A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of e-commerce and artificial intelligence technology, and in particular to a method and computing device for producing a water drop object animated image based on generative artificial intelligence. Background Art
[0002] When merchants on e-commerce platforms put new products on the shelves for sale, especially when selling products such as fruits and vegetables that require high timeliness and freshness, it may be difficult to fully convey important information such as the freshness, color richness, and texture of the products by relying solely on static images. Dynamic images can more vividly show the juiciness, tenderness, surface gloss, and overall freshness of fruits and vegetables, which helps to enhance consumers' perception of product quality and thus improve conversion rates.
[0003] However, traditional GIF production usually involves the use of a series of professional skills and software tools such as photography, editing, and post-production special effects, which has a high threshold for many small and medium-sized businesses. It is crucial to find a simplified, automated, and cost-effective GIF production solution, which will not only help improve the product display effect of the merchant, but also benefit the overall product quality presentation of the entire e-commerce platform.
[0004] Therefore, a method is needed to conveniently and concisely create a water drop object animation based on a static image. Summary of the invention
[0005] The present application aims to provide a method and computing device for producing water drop object animated images based on generative artificial intelligence, providing businesses and creative workers with a more convenient, economical and efficient solution, simplifying the process of animated image production, improving image conversion efficiency, and making the presented water drop object animated images more vivid and attractive.
[0006] According to one aspect of the present application, a method for producing a water drop object animated image based on generative artificial intelligence is provided, comprising:
[0007] Get a static picture of the scene containing the subject object;
[0008] Obtaining a main object picture and a main object picture with a mask from the scene static picture;
[0009] Using the static image of the scene as a first layer, using the main object image with a mask as a second layer, and combining the first layer with the second layer to obtain a static image of the scene with a mask;
[0010] Generate water drops in the mask area of the static image of the scene with the mask, and use the static image of the scene with water drops on the edge of the main object as the third layer;
[0011] Processing the preset water drop transparent bottom picture according to the main object picture to obtain a matching water drop picture corresponding to the position of the water drop and the main object, and using it as the fourth layer;
[0012] The third layer is combined with the fourth layer, and a water drop object animation is obtained through a pre-trained SVD model, in which water droplets are dripping from the edge of the main object and water droplets are flowing in the middle of the main object.
[0013] According to some embodiments, obtaining a main object image and a main object image with a mask from the scene static image includes:
[0014] Cutting out the static picture of the scene to obtain a main object picture;
[0015] Performing edge detection on the main object image to obtain a main object image with colored edge points;
[0016] A main object picture with a mask is obtained from the main object picture with colored edge points.
[0017] According to some embodiments, obtaining a main object picture with a mask from the main object picture with colored edge points includes:
[0018] A specified proportion of pixels are diffused outward from the edge point, and mask pixels are added to the diffused area.
[0019] According to some embodiments, generating water drops in a masked area of the masked scene static picture includes:
[0020] The prompt word is input into the pre-trained Lora model, and the mask area of the static picture of the scene with the mask is partially redrawn based on the image-text generation function to generate a static picture of the scene with water droplets in the mask area.
[0021] According to some embodiments, the preset water drop transparent bottom picture is processed according to the main object picture to obtain a matching water drop picture corresponding to the position of the water drop and the main object, including:
[0022] Performing edge detection on the main object image to determine the position of the main object in the scene static image;
[0023] The preset water drop transparent bottom picture is processed according to the position, and the water drop is retained only in the area corresponding to the main object, so as to obtain a matching water drop picture corresponding to the position of the water drop and the main object.
[0024] According to some embodiments, the method of making a water drop object animated image based on generative artificial intelligence also includes: using pictures with water drops or water drops to pre-train the Lora model.
[0025] According to some embodiments, using pictures with water drops or water drops to pre-train the Lora model includes:
[0026] The Lora model is trained using an existing large image model.
[0027] According to some embodiments, the method for producing a water drop object animated image based on generative artificial intelligence further includes: returning the generated water drop object animated image to the client for use by the client.
[0028] According to another aspect of the present application, a computer program product is provided, comprising:
[0029] A computer program, which implements any of the above methods when executed by a processor.
[0030] According to another aspect of the present application, there is provided a computing device, comprising:
[0031] Processor; and
[0032] A memory stores a computer program, and when the computer program is executed by the processor, the method described in any one of the above items is implemented.
[0033] According to another aspect of the present application, a non-transitory computer-readable storage medium is provided, on which computer-readable instructions are stored. When the instructions are executed by a processor, any of the above methods is implemented.
[0034] According to some embodiments, edge masks are added to static images, edge water drops are redrawn, middle surface water drops are produced, and finally the layers are merged to generate water drop flow effect diagrams. The present application separately produces and then merges the water drop effects on the middle surface and edges of the static image, which can ensure the true consistency of the product while having better effects. Generative artificial intelligence technology is used to realize the automated production of water drop flow dynamic effect diagrams that are full of freshness for product objects, which not only simplifies the traditional cumbersome manual design process, but also greatly improves the efficiency and high quality of images.
[0035] According to the embodiments of the present application, based on generative artificial intelligence technology, the customized Lora model is trained using high-quality raindrop image materials to significantly improve the accuracy and authenticity of the waterdrop object animation. The model can better understand and learn the complex details and dynamic changes of raindrops flowing on the surfaces of different materials. Using a pre-trained SVD model can better understand and learn the complex details and dynamic changes of raindrops flowing on the surfaces of different materials than relying solely on traditional video generation technology.
[0036] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for describing the embodiments are briefly introduced below.
[0038] Figure 1 A flow chart of a method for producing a water drop object animation based on generative artificial intelligence according to an example embodiment is shown.
[0039] Figure 2 A schematic diagram is shown of creating a water drop object animation based on a static picture of an apple according to generative artificial intelligence according to an example embodiment.
[0040] Figure 3 A system architecture for producing a water drop object animation according to some embodiments is shown.
[0041] Figure 4 A schematic diagram showing the composition of a stable diffusion low-rank adaptation model in a system architecture for producing a water drop object animation according to some embodiments.
[0042] Figure 5 A schematic diagram showing the composition of a stable video diffusion model in a system architecture for producing a water drop object animation according to some embodiments.
[0043] Figure 6 A block diagram of a computing device is shown according to an exemplary embodiment. DETAILED DESCRIPTION
[0044] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0045] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0046] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0047] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0048] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.
[0049] 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 relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0050] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.
[0051] When merchants on e-commerce platforms put new products on the shelves for sale, they often only upload static images of the products. This is especially true for fruit and vegetable products. Using only static images of the products cannot effectively express the freshness of the products. Turning products into animated images is a common way to express the freshness of the products, but traditional animated image production is often time-consuming and labor-intensive, and most small and medium-sized merchants do not have the corresponding production capabilities. Therefore, there is an urgent need for a solution that can quickly produce animated images of fresh fruits and vegetables.
[0052] To this end, this application proposes a method for producing water drop object animations based on generative artificial intelligence. Through the Lora model and SVD model, combined with local redrawing technology, a solution for producing water drop object animations based on static images is constructed, which can enhance the freshness of the product expression at a very low cost.
[0053] Before describing the embodiments of the present application, some terms or concepts involved in the embodiments of the present application are explained.
[0054] AIGC: Generative artificial intelligence refers to the technology based on artificial intelligence technical methods such as generative adversarial networks and large pre-trained models, which generates relevant content with appropriate generalization capabilities through learning and recognition of existing data. The core idea of AIGC technology is to use artificial intelligence algorithms to generate content with certain creativity and quality.
[0055] Diffusion model: A model that introduces noise information during the learning image attenuation process. Currently, it is a typical representative of large models and is widely used in image generation tasks.
[0056] Stable Diffusion (SD): A text-to-image model that uses deep learning technology to transform text to images. It is based on latent diffusion models (LDMs) and can receive a text description input by the user, and then create an image of the corresponding content based on the description.
[0057] Lora model: It is an extension of the Stable Diffusion model, allowing users to fine-tune the Stable Diffusion model with a small amount of customized data to generate images with a specific style or theme. Lora (Low-Rank Adaptation: Low-Rank Adaptation Model) means that the fine-tuning is achieved by modifying the low-order structure of the parameters in the model, rather than retraining the entire huge model parameters. The Lora model allows users to annotate and emphasize certain unique features, and can be regarded as a special type of feature annotation tool.
[0058] The working principle of the SD Lora model is to introduce a low-rank adaptation mechanism based on the pre-trained large language model, so that the model can quickly adapt to new tasks or styles with a small number of samples while maintaining the original performance.
[0059] Stable Video Diffusion, also known as the SVD model, is a large-scale video generation model that can achieve the conversion from static images to dynamic videos by adding a temporal layer to the latent diffusion model used for 2D image synthesis and fine-tuning it on a high-quality video dataset to generate a smooth and coherent sequence of video frames. This model can not only generate new videos from text prompts, but also convert static images into dynamic videos, realizing the generation of images to videos.
[0060] Finetune is the process of retraining a pre-trained model for a specific task. After a basic model has been preliminarily trained on a large-scale dataset and has acquired general feature representation capabilities, some or all of the model's weights can be further adjusted to better suit the needs of a specific scenario or task.
[0061] Local redrawing technology: This is a powerful feature in the Stable Diffusion model that allows users to precisely control specific areas of the image to generate or modify content in AI. The core principle of this technology is based on the concepts of diffusion model and conditional generation, combined with a masking mechanism to achieve the erasure and reconstruction of part of the original image content.
[0062] Large model: A large model is a deep learning model with a huge network size. It can effectively process a large amount of data and obtain accurate prediction results. A large model is characterized by a large scale of model parameters, which are usually in the billions or even hundreds of billions. The performance (accuracy) of the model is usually closely related to the scale of the model parameters. The larger the scale of the model parameters, the stronger the model's learning ability.
[0063] Large Language Model (LLM), also known as large language model, is an artificial intelligence model designed to understand and generate human language. Large language models are trained on large amounts of text data and can perform a wide range of tasks, including text summarization, translation, sentiment analysis, etc. Large language models are large in scale, containing billions or even hundreds of billions of parameters, and are able to learn complex patterns in language data. Large language models are usually based on deep learning architectures.
[0064] The exemplary embodiments of the present application are described below in conjunction with the accompanying drawings.
[0065] Figure 1 A flow chart showing a method for generating a water drop object animation using generative artificial intelligence according to an example embodiment.
[0066] The water droplets in this article should be understood in a broad sense, for example, may include water droplets, dew drops, etc.
[0067] See also Figure 1 , in S101, a static image containing a main object is obtained.
[0068] According to the example embodiment, a static image containing a subject object is obtained, and the scene static image may include but is not limited to fruit and vegetable food and / or flowers and natural landscapes. For fruit and vegetable products, adding crystal clear water drops can make the fruit look fresher and juicier; for flower images, water drops on petals can enhance their tender feeling and add natural beauty; and in natural landscape images, such as leaves, grass or scenery after rain, the presence of water drops can create a vibrant atmosphere.
[0069] In S103, a main object picture and a main object picture with a mask are obtained from the scene static picture.
[0070] According to an example embodiment, the scene static picture is cut out to obtain a main object picture, edge detection is performed on the main object picture to obtain a main object picture with colored edge points, and a masked main object picture is obtained from the main object picture with colored edge points.
[0071] According to some embodiments, a tool or intelligent algorithm is selected to perform cutout, such as based on color, contour, deep learning, etc., to separate the main object from the original static image, and an edge detection algorithm is applied to the cutout main object image to identify and highlight the outline of the main object. The result of such processing will show the edge of the main object, marked with different colors for easy distinction, retain and highlight the color information of the edge of the main object, and form an image with colored edge points.
[0072] After obtaining the main object image with colored edge points, diffusion processing can be performed on these edge points as required, and mask pixels can be added to the diffusion area.
[0073] In S105, the static image of the scene is used as a first layer, the main object image with a mask is used as a second layer, and the first layer and the second layer are combined to obtain a static image of the scene with a mask.
[0074] According to some embodiments, the static image of the scene is used as the first layer, which is usually a background image or an original scene, and is a complete static image; the image of the subject object with a mask is used as the second layer, and the second layer contains the subject object that has been processed by edge point diffusion and added with a mask. In the second layer, the subject object is visible, and the mask determines the degree of mixing between the subject and the background of the image. The transparent area in the mask allows the first layer below to be displayed. Due to the existence of the mask, the edge of the subject will have a gradual or smooth transition effect, making the subject seem to be integrated into the scene of the first layer.
[0075] The first layer and the second layer are combined to obtain a static image of the scene with a mask. The static image of the scene with a mask can naturally embed the main object into the background scene, and the edge fusion effect is controlled by the mask, so as to achieve a more delicate image synthesis. The visual effect can be further optimized by adjusting the opacity, feathering and other layer blending modes of the mask.
[0076] In S107, water drops are generated in the mask area of the static image of the scene with the mask, and the static image of the scene with the water drops on the edge of the main object is used as the third layer.
[0077] According to the example embodiment, a pre-trained Lora model is used to generate water drops in the mask area of the static image of the scene with a mask, and based on the text-image neural network, in combination with the pre-trained Lora model, a trained Lora model is used to automatically generate a water drop effect that matches the scene according to the input prompt words. The mask area of the static image of the scene with a mask is partially redrawn, which can be done through prompt words, to generate a static image of the scene with water drops in the mask area, and the static image of the scene with water drops on the edge of the main object is used as the third layer.
[0078] The Lora model can generate multiple static images of water drops in batches, and the water drop images include but are not limited to water drops and / or water drops and / or raindrops. The Lora model is trained using images with water drops or water drops, so that the Lora model can learn details such as the shape of water drops, reflection and refraction characteristics under lighting conditions, and the way of integration with the surrounding environment. The generated water drop images are combined with the original masked images to create a natural and realistic superposition effect.
[0079] In S109, the preset water drop transparent bottom picture is processed according to the main object picture to obtain a matching water drop picture corresponding to the position of the water drop and the main object, and the matching water drop picture is used as the fourth layer.
[0080] According to the exemplary embodiment, a transparent picture with water drops is arranged on the second layer, and the water drops are only retained in the main body area to obtain a static picture of the main body with water drops, and the obtained matching water drop picture corresponding to the position of the water drops and the main object is used as the fourth layer. The water drop part in the preset water drop transparent bottom picture is visible, and the background is transparent, that is, it will not block the content of the main object picture below.
[0081] In S111, the third layer and the fourth layer are merged, and a water drop object animation in which water droplets are dripping from the edge of the main object and water droplets are flowing in the middle of the main object is obtained through a pre-trained SVD model.
[0082] According to the example embodiment, as described above, the third layer is a static picture of the scene with water droplets on the edge of the main object, and the fourth layer is a matching water droplet picture corresponding to the position of the water droplets and the main object. The two are combined and masked to ensure that the water droplets on the edge and the water droplets flowing in the middle can be accurately superimposed on the main object, creating a rich and delicate visual effect.
[0083] Through the pre-trained SVD model, a dynamic image of water drops dripping from the edge of the object and water drops flowing in the middle of the object is obtained. The SVD model is trained with high-quality video materials of raindrops flowing, and Fintune is performed based on the SVD model to obtain a new self-trained video model.
[0084] This application is based on a method for producing water droplet object animations using generative artificial intelligence. It generates animations from static scene images. Compared with the traditional or early version of the Stable Diffusion model, the use of a self-trained video model can obtain a more smooth, natural and stable dynamic effect of water droplets flowing. It has higher visual fidelity and stronger temporal coherence. At the same time, through self-supervised learning, the model can learn how to generate realistic rain and water droplet effects on unseen product surface types, improving the generalization ability of the model.
[0085] Figure 2 A schematic diagram is shown of creating a water drop object animation based on a static picture of an apple according to generative artificial intelligence according to an example embodiment.
[0086] The method for making a water drop object animation based on generative artificial intelligence proposed in this application, see Figure 2 The static picture of the scene takes an apple as an example to illustrate the process of making a dynamic picture of an apple with water droplets.
[0087] According to the example embodiment, edge detection is first performed, and the edge area is partially redrawn to obtain a layer with dew on the edge of the main body. In this example embodiment, a static image of a scene containing an apple is uploaded, and the main object of the product is cut out using the cutout technology, the main object apple in the picture is separated from the background, a mask is added around the main body, and the obtained main apple part picture is edge detected, all pixels of the picture are traversed to obtain edge points with color, and then the edge points are diffused outward by a specified proportion of pixels, and mask pixels are added to the diffused area, so as to obtain a masked apple main object picture, and a transparency gradient mask is added around the separated apple to simulate the natural transition between the apple and the background; the masked main body is pasted back to the original picture, the masked apple main object picture is used as the upper layer, and the static image of the apple is used as the bottom layer, and the two layers are merged using a Python script to obtain a masked apple scene static picture, and the masked object is placed back to the original image to make it look like it is still in the original environment, and the static picture is partially redrawn, and some parts of the image are redrawn to obtain a picture of the apple edge with water droplets.
[0088] According to the exemplary embodiment, after the middle body position is detected, the preset transparent bottom dew picture is combined with the cut-out product body part picture, and water drops are added to the middle part of the body, thereby obtaining a layer with dew in the middle of the body. The preset transparent bottom dew can add a layer of "dew" effect with variable transparency on the object, and the variable "dew" effect can be achieved by adjusting the transparency of the pixels, retaining the dew in the middle of the body, and ensuring that the "dew" effect in the center area of the object remains intact.
[0089] Furthermore, the two layers are merged, that is, the layer with the "dew" effect of the dew in the middle of the main body is merged with the original image of the partial redrawing of the static image, and the static image of the product scene with a mask is used as the lower layer, and the water droplets in the middle of the main body are used as the upper layer to form a new composite image, which retains both the dew in the middle and the dew on the edge, and finally obtains a picture of dew dripping on the edge of the apple and dew flowing in the middle of the product. Generate animated images based on the self-training model, and use the self-trained Lora model to convert static images into dynamic GIFs or other animation formats, so that the "dew" effect looks like it is moving.
[0090] Through the above operations, users can use generative artificial intelligence technology to transform ordinary static images into visually attractive dynamic water drop effect animations. The generated water drop object animation is returned to the client for customers to use, so as to enhance the freshness of the product. Merchants do not need to hire special designers or photographers to manually create the animation, and can quickly obtain product animations that can express the freshness of the product, which greatly reduces the manpower and time costs.
[0091] According to the technical solution of the embodiment of the present application, the most cutting-edge AIGC technology is adopted to empower the traditional production of fresh and moving pictures of fruit and vegetable products with AI. Through this AI workflow, dynamic effect pictures of the flow of water droplets of fruit and vegetable products can be automatically produced, making it a tool that every merchant can use, greatly reducing the production threshold and production cost of fresh fruit and vegetable dynamic pictures.
[0092] Figure 3 A system architecture for producing a water drop object animation according to some embodiments is shown.
[0093] See also Figure 3 According to an example embodiment, the system architecture includes a service-oriented module and a machine learning model unit, wherein the machine learning model unit may include a stable diffusion low-rank adaptation model (Lora) and a stable video diffusion model (SVD).
[0094] According to an example embodiment, a static image containing an object is used as input, and a Lora model is trained by using a raindrop image. According to some embodiments, a Lora model can be trained by using an existing image model. For example, training can be started based on the ReVAnimated underlying model.
[0095] At the same time, a new self-trained video model is obtained based on the SVD model Fintune using a large amount of high-quality video materials of flowing raindrops, which has better generation effect than the native SVD model.
[0096] According to some embodiments, based on the static image, the service module further uses AIGC technology, which first generates dew images of different forms in batches by using the SD Lora model. In order to ensure that the generated dew animated image meets the usage scenarios of various categories of goods, the role of Lora can be brought into play through accuracy prompt words.
[0097] Based on the static image, the service module can combine the raindrop image with the SVD model to generate a dynamic effect image of smooth, natural and stable water drop flow. The generated water drop object animation is sent to the client for users to select the appropriate water drop object animation.
[0098] This application is a method for producing water drop object animation based on generative artificial intelligence, which embodies the high efficiency and intelligent characteristics of AIGC technology in practical applications. It uses high-quality rain and water drop image materials to train a proprietary Lora model, and combines the local redrawing technology of SD image raw images to generate static images with water droplets hanging on the edge of the image. Compared with not using the proprietary Lora model, it not only greatly reduces the workload of manual design and production of dynamic materials, but also can obtain a stable, realistic and natural water drop effect.
[0099] Figure 4 A schematic diagram showing the composition of a stable diffusion low-rank adaptation model in a system architecture for producing a water drop object animation according to some embodiments.
[0100] The Lora model allows users to annotate and emphasize certain unique features, such as specific details, niche compositions, or unique artistic styles. In the context of Stable Diffusion, the SD Lora model is used to generate pictures with a specific artistic style. The SD Lora model provides users with great flexibility and creativity to customize the image generation process according to their needs.
[0101] See also Figure 4 ,The Lora model includes three parts: model deployment, model reasoning and model fine-tuning.
[0102] According to some embodiments, the model deployment integrates the trained low-rank adaptive model parameters into the pre-trained model to achieve deployment on the server side or the cloud side to handle the fine-tuning task for the water droplet image. After the fine-tuning is completed and verified to be effective, the adjusted low-rank adaptive model parameters are integrated back into the pre-trained model structure through model reasoning to form a new model specifically optimized for the water droplet image fine-tuning task. The new model can be packaged as a service and deployed to the server side or the cloud platform. Model fine-tuning uses labeled data or target scene information to adjust the model parameters.
[0103] The Lora model can be used as an online service and can automatically generate water drop images in batches within seconds. The Lora model can generate water drop images in various situations based on the input static images, and can be fine-tuned based on the differences in scenes and application categories to achieve good marketing results.
[0104] Figure 5 A schematic diagram showing the composition of a stable video diffusion model in a system architecture for producing a water drop object animation according to some embodiments.
[0105] See also Figure 5 The SVD model in the system architecture for producing the water drop object animation includes model control, model reasoning and model deployment, which can be used for generating and editing video content.
[0106] According to some embodiments, model control achieves fine-grained control of the generation process by adjusting the input conditions or parameters of the model to obtain the expected action or style effects. For example, the user may want to guide the model to generate a specific type of video clip by specifying action labels, style features, scene descriptions, etc., such as requiring the generation of style animations in a certain scene, such as fresh fruits and vegetables, flowers with water droplets, and natural landscapes after rain. Fine-grained control enables the model to meet personalized and customized needs. The hyperparameters in the video image generation process are adjusted, and the video generation process is formulated for different application scenarios and needs to change the quality and generation speed of the video.
[0107] Model inference generates continuous video frames based on given inputs. In the model inference stage, given an initial video frame, a set of action instructions or other related conditions, the model will use its inherent learning mechanism to gradually diffuse and generate a series of continuous and smooth video frames. The model can predict the content of subsequent frames based on known information, thereby creating a complete video sequence.
[0108] Model deployment deploys the trained stable video diffusion model to the server or cloud, and deploys the trained stable video diffusion model to the actual application environment. After deployment, the model can process video data in real time or batches to serve large-scale video creation, editing or enhancement needs, such as animation special effects production, game content generation, virtual reality content creation and other fields.
[0109] The SVD model generates continuous video frames based on the input data, and the generation process can be controlled by adjusting parameters to meet specific needs. The stable video diffusion model can be used as an online service, and can automatically generate IP image animations in batches within minutes. For different goals, developers can carefully adjust the model's hyperparameters to achieve a good balance between video generation effect and efficiency.
[0110] Figure 6 A block diagram of a computing device according to an example embodiment of the present application is shown.
[0111] like Figure 6 As shown, computing device 30 includes processor 12 and memory 14. Computing device 30 may also include bus 22, network interface 16, and I / O interface 18. Processor 12, memory 14, network interface 16, and I / O interface 18 may communicate with each other via bus 22.
[0112] The processor 12 may include one or more general-purpose CPUs (Central Processing Units, processors), microprocessors, or application-specific integrated circuits, etc., for executing relevant program instructions. According to some embodiments, the computing device 30 may also include a high-performance graphics card (GPU) 20 for accelerating the processor 12.
[0113] The memory 14 may include a machine system readable medium in the form of a volatile memory, such as a random access memory (RAM), a read-only memory (ROM), and / or a cache memory. The memory 14 is used to store one or more programs including instructions and data. The processor 12 may read the instructions stored in the memory 14 to execute the above-mentioned method according to the embodiment of the present application.
[0114] The computing device 30 may also communicate with one or more networks via the network interface 16. The network interface 16 may be a wireless network interface.
[0115] The bus 22 may include an address bus, a data bus, a control bus, etc. The bus 22 provides a path for exchanging information between components.
[0116] It should be noted that, in the specific implementation process, the computing device 30 may also include other components necessary for normal operation. In addition, those skilled in the art may understand that the above device may only include components necessary for implementing the embodiments of this specification, and need not include all components shown in the figure.
[0117] The present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a microdrive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), a network storage device, a cloud storage device, or any type of medium or device suitable for storing instructions and / or data.
[0118] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the methods recorded in the above method embodiments.
[0119] Those skilled in the art can clearly understand that the technical solution of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array, an integrated circuit, etc.
[0120] 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.
[0121] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0122] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as 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 service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0123] 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.
[0124] 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.
[0125] 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 memory. Based on this understanding, the technical solution of the present application, 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, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.
[0126] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0127] The exemplary embodiments of the present application are specifically shown and described above. It should be understood that the present application is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present application is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended clauses.
Claims
1. A method for producing a water drop object animated image based on generative artificial intelligence, characterized in that: include: Get a static picture of the scene containing the subject object; Obtaining a main object picture and a main object picture with a mask from the scene static picture; Using the static image of the scene as a first layer, using the main object image with a mask as a second layer, and combining the first layer with the second layer to obtain a static image of the scene with a mask; Generate water drops in the mask area of the static image of the scene with the mask, and use the static image of the scene with water drops on the edge of the main object as the third layer; Processing the preset water drop transparent bottom picture according to the main object picture to obtain a matching water drop picture corresponding to the position of the water drop and the main object, and using it as the fourth layer; The third layer is combined with the fourth layer, and a water drop object animation is obtained through a pre-trained SVD model, in which water droplets are dripping from the edge of the main object and water droplets are flowing in the middle of the main object.
2. The method according to claim 1, characterized in that Obtaining a main object image and a main object image with a mask from the scene static image, including: Cutting out the static picture of the scene to obtain a main object picture; Performing edge detection on the main object image to obtain a main object image with colored edge points; A main object picture with a mask is obtained from the main object picture with colored edge points.
3. The method according to claim 2, characterized in that Obtaining a main object picture with a mask from the main object picture with colored edge points includes: A specified proportion of pixels are diffused outward from the edge point, and mask pixels are added to the diffused area.
4. The method according to claim 1, characterized in that: Generating water drops in the masked area of the static image of the scene with the mask, including: The prompt word is input into the pre-trained Lora model, and the mask area of the static picture of the scene with the mask is partially redrawn based on the image-text generation function to generate a static picture of the scene with water droplets in the mask area.
5. The method according to claim 1, characterized in that Processing the preset water drop transparent bottom picture according to the main object picture to obtain a matching water drop picture corresponding to the position of the water drop and the main object includes: Performing edge detection on the main object image to determine the position of the main object in the scene static image; The preset water drop transparent bottom picture is processed according to the position, and the water drop is retained only in the area corresponding to the main object, so as to obtain a matching water drop picture corresponding to the position of the water drop and the main object.
6. The method according to claim 1, characterized in that Also includes: Pre-train the Lora model using pictures with water drops or water droplets.
7. The method according to claim 6, characterized in that Pre-training the Lora model using pictures with water drops or water drops, including: training the Lora model using an existing large image model.
8. The method according to claim 1, characterized in that Also includes: The generated water drop object animation is returned to the client for the client to use.
9. A computer program product, characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.
10. Processor; and A memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Automatic matting method and system
CN111784564A
Outdoor scene three-dimensional reconstruction method and device, electronic equipment and storage medium
CN116342804A
Liquid dynamic effect generation method and device, equipment and storage medium
CN117132694A
Image dynamic effect generation method and device, storage medium and terminal
CN117218241A
Image processing method and device, storage medium and electronic equipment
CN117333586A
