Multimodal general perception model training, labeling method and device, electronic equipment
By training and modifying the multi-modal universal perception model, the problem that multi-modal models in the existing technology cannot understand "pointer instructions" is solved, efficient automatic annotation is achieved, costs and manual participation are reduced, and regional-level graphs are improved. accuracy and efficiency of text data annotation.
Patent Information
- Application Number
- CN202410802858.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In the existing technology, the multi-modal universal perception model cannot understand the "pointer instructions" input by the user, which results in a large amount of language description being required when the user interacts with the artificial intelligence system, increasing the difficulty of interaction, and the cost of manual annotation of regional-level graphic and text data annotation results High, it is difficult to quickly obtain large batches of annotation results.
By determining multiple sample images and annotating each image, the initial regional-level graphic and text data annotation results are obtained. After correction, a multi-modal universal perception model is trained, and the model is used for automatic annotation, simplifying the annotation process, reducing manual participation and cost.
It achieves efficient automatic annotation of target images, improves the accuracy and efficiency of regional-level graphic and text data annotation, reduces annotation costs, and can quickly obtain large batches of accurate regional-level graphic and text data annotation results.
Smart Images

Figure CN118379737B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a multimodal general perception model training, labeling method and device, and electronic equipment. Background Art
[0002] Unlike the commonly used graphic data annotation for the entire sample image, regional-level graphic data annotation can be used to individually annotate a target area and / or target object in the sample image, which has a high degree of directionality. In the prior art, manual annotation is usually used to implement regional-level graphic data annotation for sample images and determine the corresponding regional-level graphic data annotation results. However, due to the high efficiency and cost of manual annotation, it is difficult to quickly and effectively obtain and construct a large number of regional-level graphic data annotation results. Summary of the invention
[0003] In view of this, the present disclosure proposes a technical solution for a multimodal general perception model training, an annotation method and device, and an electronic device.
[0004] According to one aspect of the present disclosure, a multimodal universal perception model training method is provided, comprising: determining a plurality of sample images, and respectively annotating each sample image, and determining a plurality of initial region-level image and text data annotation results corresponding to each sample image; correcting the plurality of initial region-level image and text data annotation results corresponding to each sample image, and determining a plurality of corrected annotation results corresponding to each sample image; and training a multimodal universal perception model based on the plurality of corrected annotation results corresponding to each sample image to obtain a trained multimodal universal perception model, wherein the trained multimodal universal perception model is used to annotate a target image, and determine a plurality of region-level image and text data annotation results corresponding to the target image, and any one of the region-level image and text data annotation results corresponding to the target image represents a separate annotation result for any one target object in the target image.
[0005] In a possible implementation, the method of annotating each sample image separately and determining multiple initial region-level image-text data annotation results corresponding to each sample image includes: for any sample image, determining the position information corresponding to each target object in the sample image according to a position recognition model; for any target object in the sample image, determining the candidate semantic information corresponding to the target object according to a feature extraction model; for any target object in the sample image, pairing the position information and candidate semantic information corresponding to the target object according to an image-text alignment model to obtain the pairing information corresponding to the target object; for any target object in the sample image, determining the question-answer pair information and description information corresponding to the target object according to the pairing information corresponding to the target object, wherein the question-answer pair information corresponding to the target object represents the question and answer related to the target object, and the description information corresponding to the target object is used to describe the characteristics and status of the target object; based on the pairing information, question-answer pair information and description information corresponding to each target object in the sample image, determining multiple initial region-level image-text data annotation results corresponding to the sample image.
[0006] In a possible implementation, the correcting multiple initial region-level image and text data annotation results corresponding to each sample image to determine multiple corrected annotation results corresponding to each sample image includes: dividing all initial region-level image and text data annotation results corresponding to the multiple sample images into a first sample group and a second sample group, wherein the number of initial region-level image and text data annotation results included in the first sample group is greater than the number of initial region-level image and text data annotation results included in the second sample group; and respectively correcting each initial region-level image and text data annotation result included in the second sample group to determine a corrected second sample group.
[0007] In a possible implementation, the respectively correcting each initial region-level graphic data annotation result included in the second sample group to determine the corrected second sample group includes: deleting erroneous candidate semantic information in each initial region-level graphic data annotation result included in the second sample group to obtain the semantically verified second sample group; adjusting erroneous question-answer pair information in each initial region-level graphic data annotation result included in the semantically verified second sample group to determine the corrected second sample group.
[0008] In a possible implementation, the multimodal universal perception model is trained based on multiple corrected annotation results corresponding to each sample image to obtain a trained multimodal universal perception model, including: pre-training the multimodal universal perception model according to the first sample group to obtain a pre-trained multimodal universal perception model; and fine-tuning the pre-trained multimodal universal perception model according to the corrected second sample group to determine the trained multimodal universal perception model.
[0009] According to another aspect of the present disclosure, a labeling method is provided, comprising: determining a target image, wherein the target image includes at least one target object; automatically labeling the target image according to a multimodal general perception model, and determining a plurality of region-level graphic data labeling results corresponding to the target image, wherein the multimodal general perception model is trained by the above-mentioned method, and any one of the region-level graphic data labeling results corresponding to the target image represents a separate labeling result for any one target object in the target image.
[0010] According to another aspect of the present disclosure, a multimodal universal perception model training device is provided, comprising: an initial annotation module, used to determine multiple sample images, and respectively annotate each sample image, and determine multiple initial region-level image and text data annotation results corresponding to each sample image; a correction module, used to correct the multiple initial region-level image and text data annotation results corresponding to each sample image, and determine multiple corrected annotation results corresponding to each sample image; a model training module, used to train the multimodal universal perception model based on the multiple corrected annotation results corresponding to each sample image, to obtain a trained multimodal universal perception model, wherein the trained multimodal universal perception model is used to annotate a target image, and determine multiple region-level image and text data annotation results corresponding to the target image, and any one of the region-level image and text data annotation results corresponding to the target image represents a separate annotation result for any one target object in the target image.
[0011] According to another aspect of the present disclosure, a labeling device is provided, including: an image acquisition module, used to determine a target image, wherein the target image includes at least one target object; and a labeling module, used to automatically label the target image according to a multimodal general perception model, and determine a plurality of region-level graphic data labeling results corresponding to the target image, wherein the multimodal general perception model is trained by the above-mentioned method, and any one of the region-level graphic data labeling results corresponding to the target image represents a separate labeling result for any one target object in the target image.
[0012] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0013] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.
[0014] In the embodiment of the present disclosure, by determining multiple sample images and annotating each sample image respectively, multiple initial region-level image and text data annotation results corresponding to each sample image can be determined; by correcting the multiple initial region-level image and text data annotation results corresponding to each sample image, multiple corrected annotation results corresponding to each sample image can be determined, thereby improving the accuracy of the corrected annotation results, so that any corrected annotation result can accurately describe the characteristics and state of the target object corresponding to the corrected annotation result; based on the multiple corrected annotation results corresponding to each sample image, the multimodal general perception model is trained to obtain a trained multimodal general perception model. The modal universal perception model uses the trained multimodal universal perception model to annotate the target image and determine the multiple region-level image and text data annotation results corresponding to the target image. Any region-level image and text data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image, thereby simplifying the region-level image and text annotation process, reducing the involvement of manual operations in the annotation process, reducing the workload and work cost of region-level image and text annotation, and improving the work efficiency of region-level image and text annotation. It can ensure that the determined region-level image and text annotation has high accuracy and reliability, and can quickly obtain a large number of region-level image and text data annotation results.
[0015] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0017] Figure 1 A flowchart of a multimodal universal perception model training method according to an embodiment of the present disclosure is shown.
[0018] Figure 2 A flow chart of a marking method according to an embodiment of the present disclosure is shown.
[0019] Figure 3A block diagram of a multimodal universal perception model training device according to an embodiment of the present disclosure is shown.
[0020] Figure 4 A block diagram of a labeling device according to an embodiment of the present disclosure is shown.
[0021] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0022] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0023] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0024] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0025] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0026] Large Language Models (LLMs) have strong reasoning and text understanding capabilities, and can maintain good generalization capabilities for long-tail distributed user instructions, and have broad application prospects. However, the LLMs commonly used in the prior art can only understand text modalities and cannot perceive visual signals in the real world, resulting in limited application scenarios. Therefore, in the multimodal field, a multimodal general perception model is usually built based on LLMs to expand the perception boundary of LLMs and enable LLMs to perceive visual signals.
[0027] However, the multimodal general perception models commonly used in the prior art can only understand the input target image as a whole, but cannot understand the "pointer instructions" input by the user. In other words, it is impossible to perform highly fine-grained perception and question-answering for the target area and / or target object selected by the user in the target image. As a result, when users interact with artificial intelligence systems based on these multimodal general perception models, they need to use a large amount of language descriptions to emphasize their focus to the artificial intelligence systems in order to achieve highly fine-grained perception and question-answering, which increases the difficulty of interaction between users and artificial intelligence systems.
[0028] One of the reasons why the common multimodal general perception model in the prior art cannot understand the "pointer instructions" input by the user is the lack of regional-level graphic data annotation results. In the prior art, the regional-level graphic data annotation results are usually obtained by manual annotation. Specifically, the annotator needs to construct relevant questions based on the information of the sample image, and then answer the questions and determine the corresponding answers to generate the question-answer pair information corresponding to the sample image, and then determine the regional-level graphic data annotation results corresponding to the sample image. Such an annotation process requires a long working time. In addition, the labor billing of manual annotation is usually settled in units of "words", resulting in high annotation costs. Therefore, in the prior art, it is difficult to quickly and effectively construct a large number of regional-level graphic data annotation results.
[0029] In view of this, the embodiments of the present disclosure provide a multimodal universal perception model training method, which can simplify the process of regional-level image and text annotation, reduce manual participation, and achieve efficient automatic annotation of target images through a trained multimodal universal perception model, determine regional-level image and text data annotation results with high accuracy and reliability, reduce the cost of regional-level image and text annotation, and improve the efficiency of regional-level image and text annotation. The multimodal universal perception model training method provided by the embodiments of the present disclosure is described in detail below.
[0030] Figure 1 FIG. 1 is a flowchart of a multimodal universal perception model training method according to an embodiment of the present disclosure. Figure 1 As shown, the multimodal universal perception model training method can be executed by an electronic device such as a terminal device or a server. The terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The multimodal universal perception model training method can be implemented by a processor calling a computer-readable instruction stored in a memory. Alternatively, the multimodal universal perception model training method can be executed by a server. Figure 1As shown, the multimodal universal perception model training method includes:
[0031] In step S11, a plurality of sample images are determined, and each sample image is annotated respectively to determine a plurality of initial region-level graphic data annotation results corresponding to each sample image.
[0032] Specifically, any sample image may include at least one target object; any initial region-level graphic data annotation result corresponding to any sample image may represent a separate annotation result for any target object in the sample image. The target object may be flexibly set according to actual usage requirements, for example, the target object may include any specified image region and / or object of the sample image, etc., which is not specifically limited in the present disclosure; the specific content of the initial region-level graphic data annotation result may be flexibly set according to actual usage requirements, for example, it may include region-level image data corresponding to any target object in the sample image, and text data such as candidate semantic information, question-answer pair information, and description information corresponding to any target object, which is not specifically limited in the present disclosure.
[0033] For any sample image, the specific number of initial region-level graphic data annotation results corresponding to the sample image depends on the number of target objects included in the sample image, and the present disclosure does not make any specific limitation on this.
[0034] The specific process of labeling each sample image and determining multiple initial region-level graphic data labeling results corresponding to each sample image will be described in detail later in conjunction with possible implementation methods of the present disclosure, which will not be elaborated here.
[0035] In step S12, multiple initial region-level graphic data annotation results corresponding to each sample image are corrected to determine multiple corrected annotation results corresponding to each sample image.
[0036] For any sample image, multiple initial region-level graphic data annotation results corresponding to the sample image can be corrected so that the corrected annotation results corresponding to the sample image have higher accuracy and can accurately reflect the characteristics and status of each target object in the sample image.
[0037] The specific process of correcting multiple initial region-level graphic data annotation results corresponding to each sample image and determining multiple corrected annotation results corresponding to each sample image will be described in detail later in conjunction with possible implementation methods of the present disclosure, which will not be repeated here.
[0038] In step S13, based on the multiple corrected annotation results corresponding to each sample image, the multimodal general perception model is trained to obtain a trained multimodal general perception model, wherein the trained multimodal general perception model is used to annotate the target image and determine the multiple region-level graphic data annotation results corresponding to the target image, and any region-level graphic data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image.
[0039] By training the multimodal universal perception model with the corrected annotation results with high accuracy, the trained multimodal universal perception model can be capable of individually annotating any target object in the input target image, and improve the accuracy and reliability of the obtained regional-level graphic data annotation results. The specific method of training the multimodal universal perception model based on the multiple corrected annotation results corresponding to each sample image can refer to the implementation method in the relevant technology, and the present disclosure does not make specific limitations on this.
[0040] The specific form and structure of the multimodal universal perception model here can be flexibly set according to actual usage requirements, and this disclosure does not make specific limitations on this.
[0041] In one example, the multimodal general perception model can be a unified model that supports both discriminative tasks and generative tasks. Its structure can include a visual encoder, a visual-language connector, and a language model decoder.
[0042] Among them, the visual-language connector can be built based on the Q-Former structure, and the Region of Interest Align (RoI Align) operation is introduced to improve the visual-language connector's ability to understand regional information. Specifically, the RoI Align operation can extract corresponding regional features from the sample image according to the preset position information, and input these regional features as query tokens to the Q-Former structure; these regional features as query tokens can be input into the language model decoder together with the original randomly initialized extracted global features in the Q-Former structure for information decoding, so as to perform discriminative tasks and / or generative tasks of the multimodal general perception model.
[0043] The following text will describe in detail the specific process of training the multimodal universal perception model based on multiple corrected annotation results corresponding to each sample image to obtain the trained multimodal universal perception model in combination with possible implementation methods of the present disclosure, which will not be elaborated here.
[0044] In the embodiment of the present disclosure, by determining multiple sample images and annotating each sample image respectively, multiple initial region-level image and text data annotation results corresponding to each sample image can be determined; by correcting the multiple initial region-level image and text data annotation results corresponding to each sample image, multiple corrected annotation results corresponding to each sample image can be determined, thereby improving the accuracy of the corrected annotation results, so that any corrected annotation result can accurately describe the characteristics and state of the target object corresponding to the corrected annotation result; based on the multiple corrected annotation results corresponding to each sample image, the multimodal general perception model is trained to obtain a trained multimodal general perception model. The modal universal perception model uses the trained multimodal universal perception model to annotate the target image and determine the multiple region-level image and text data annotation results corresponding to the target image. Any region-level image and text data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image, thereby simplifying the region-level image and text annotation process, reducing the involvement of manual operations in the annotation process, reducing the workload and work cost of region-level image and text annotation, and improving the work efficiency of region-level image and text annotation. It can ensure that the determined region-level image and text annotation has high accuracy and reliability, and can quickly obtain a large number of region-level image and text data annotation results.
[0045] In a possible implementation, each sample image is annotated respectively to determine a plurality of initial region-level graphic data annotation results corresponding to each sample image, including: for any sample image, according to a position recognition model, respectively determining the position information corresponding to each target object in the sample image; for any target object in the sample image, according to a feature extraction model, determining the candidate semantic information corresponding to the target object; for any target object in the sample image, according to a graphic-text alignment model, pairing the position information corresponding to the target object with the candidate semantic information to obtain the pairing information corresponding to the target object; for any target object in the sample image, according to the pairing information corresponding to the target object, determining the question-answer pair information and description information corresponding to the target object, wherein the question-answer pair information corresponding to the target object represents questions and answers related to the target object, and the description information corresponding to the target object is used to describe the characteristics and status of the target object; based on the pairing information, question-answer pair information and description information corresponding to each target object in the sample image, determining a plurality of initial region-level graphic data annotation results corresponding to the sample image.
[0046] In order to reduce manual participation in the process of regional-level image and text annotation and reduce the workload and cost of annotation, the embodiment of the present disclosure comprehensively utilizes multiple different neural network models to achieve preliminary regional-level image and text annotation of sample images to obtain initial regional-level image and text data annotation results.
[0047] Specifically, for any sample image, the position recognition model can be used to locate each target object in the sample image, and the position information corresponding to each target object in the sample image can be determined respectively. Among them, the position information corresponding to any target object in the sample image can be used to indicate the position of the target object in the sample image. The specific form of the position information can be flexibly set according to actual usage requirements. For example, it can be the coordinates of the center point of the target object in the sample image, or the indicator box corresponding to the target object in the sample image, etc. The present disclosure does not make specific limitations on this. The specific form and structure of the position recognition model can refer to the implementation methods in the relevant technology, and the present disclosure does not make specific limitations on this.
[0048] By using the feature extraction model, we can extract the features of each target object in any input sample image, output the corresponding entity noun, summarize the features of each target object, and combine it with the preset semantic categories to form the candidate semantic information corresponding to each target object.
[0049] Among them, the preset semantic category can be used to summarize the basic information of any target object in the sample image; the specific content of the semantic category can be flexibly set according to actual usage requirements, and the present disclosure does not make specific limitations on this.
[0050] In one example, the sample image is a half-length portrait of an adult male wearing a blue shirt with a smiling expression. When the target object is the person photographed in the sample image, the semantic category corresponding to the target object can be set to "human" or the like.
[0051] For any sample image, the candidate semantic information corresponding to any target object in the sample image can be used to summarize the characteristics of the target object; the specific content of the candidate semantic information can be flexibly set according to actual usage requirements, and the present disclosure does not make specific limitations on this; the specific number of candidate semantic information can be flexibly set according to actual usage requirements, for example, the number of candidate semantic information corresponding to each target object can be set to 5, etc., and the present disclosure does not make specific limitations on this.
[0052] Take the above sample image as a half-length portrait of an adult male wearing a blue shirt and smiling, and the target object is the subject in the sample image as an example. Combined with the above semantic categories, the number of candidate semantic information corresponding to the target object can be set to 4, including phrases describing the subject's gender, clothing, facial expressions, etc., specifically man, blue shirt, smile.
[0053] The specific form and structure of the feature extraction model can be referred to the implementation methods in the relevant technology, and this disclosure does not make any specific limitations on this.
[0054] For any target object in the sample image, the image-text alignment model can be used to pair the position information corresponding to the target object with the candidate semantic information to obtain the pairing information corresponding to the target object, so as to specifically indicate the target object corresponding to each candidate semantic information in the sample image, so that the initial region-level image-text data annotation results determined subsequently can meet the use requirements of the "pointer instruction". The specific form and structure of the image-text alignment model can refer to the implementation methods in the relevant technology, and this disclosure does not specifically limit this.
[0055] For any target object in the sample image, the question-answer pair information and description information corresponding to the target object can be determined based on the pairing information corresponding to the target object. The specific method for determining the question-answer pair information and description information corresponding to the target object here can refer to the implementation methods in the relevant technology. For example, the pairing information corresponding to the target object can be processed using a multimodal model in the prior art to determine the question-answer pair information and description information corresponding to the target object, and the present disclosure does not make specific limitations on this.
[0056] The question-answer pair information corresponding to any target object may represent questions and answers related to the target object. The specific content and quantity of the question-answer pair information corresponding to any target object may be flexibly set according to actual usage requirements, and this disclosure does not make specific limitations on this.
[0057] For example, the sample image is a half-length portrait of an adult male wearing a blue shirt and smiling, and the target object is the person photographed in the sample image. The question-answer pair information corresponding to the target object may include the question "What is the gender of the target object?" and the answer to the question "The gender of the target object is male", etc.
[0058] The description information corresponding to any target object can be used to describe the characteristics and status of the target object. The specific content of the description information corresponding to any target object can be flexibly set according to actual usage requirements, and this disclosure does not make specific limitations on this.
[0059] For example, the sample image is a half-length portrait of an adult male wearing a blue shirt and smiling, and the target object is the person photographed in the sample image. The description information corresponding to the target object may include: the target object is a smiling male wearing a blue shirt, etc.
[0060] For any sample image, based on the pairing information, question-answer pair information and description information corresponding to each target object in the sample image, multiple initial region-level image and text data annotation results corresponding to the sample image can be further determined to complete the region-level image and text annotation of the sample image.
[0061] Furthermore, any region-level graphic data annotation result corresponding to any sample image may also include region-level image data determined according to the pairing information. The region-level image data here may represent a cropped image including the target object corresponding to the region-level graphic data annotation result, which can intuitively reflect the target object corresponding to the region-level graphic data annotation result in the sample image.
[0062] Through the above process, different neural network models can be used to simplify the labeling process of sample images, realize preliminary regional-level image and text labeling of sample images, obtain a large amount of initial regional-level image and text data labeling results, reduce work costs and improve labeling efficiency.
[0063] In a possible implementation, multiple initial region-level image and text data annotation results corresponding to each sample image are corrected to determine multiple corrected annotation results corresponding to each sample image, including: dividing all initial region-level image and text data annotation results corresponding to multiple sample images into a first sample group and a second sample group, wherein the number of initial region-level image and text data annotation results included in the first sample group is greater than the number of initial region-level image and text data annotation results included in the second sample group; and respectively correcting each initial region-level image and text data annotation result included in the second sample group to determine a corrected second sample group.
[0064] The accuracy of the initial region-level image and text data annotation results determined by the above process will be affected by the performance of the multiple neural network models used and may contain errors. Therefore, in order to further improve the accuracy of the initial region-level image and text data annotation results and ensure that the trained multimodal universal perception model has high accuracy and reliability, it is necessary to verify and correct the multiple initial region-level image and text data annotation results corresponding to each sample image.
[0065] Since the number of initial region-level graphic data annotation results corresponding to multiple sample images may be relatively large, it takes a lot of work cost and time to verify and correct them one by one. Therefore, in order to improve the efficiency of annotation, in the embodiment of the present disclosure, only part of the initial region-level graphic data annotation results can be verified and corrected.
[0066] Specifically, all initial region-level graphic data annotation results corresponding to multiple sample images can be divided into a first sample group and a second sample group. The specific number of initial region-level graphic data annotation results included in the first sample group and the specific number of initial region-level graphic data annotation results included in the second sample group can be flexibly set according to actual usage requirements, and the number of initial region-level graphic data annotation results included in the first sample group is greater than the number of initial region-level graphic data annotation results included in the second sample group. This disclosure does not make specific limitations on this.
[0067] By checking and correcting each initial region-level graphic data annotation result included in the second sample group, a corrected second sample group with a higher accuracy can be determined. The corrected second sample group can be used to fine-tune the multimodal universal perception model to improve the accuracy and reliability of the multimodal universal perception model.
[0068] The specific method of correcting each initial region-level graphic data annotation result included in the second sample group can refer to the implementation method in the relevant technology, for example, it can be manually verified and corrected, etc., and the present disclosure does not make specific limitations on this.
[0069] In a possible implementation, each initial region-level graphic data annotation result included in the second sample group is corrected respectively to determine a corrected second sample group, including: deleting erroneous candidate semantic information in each initial region-level graphic data annotation result included in the second sample group to obtain a semantically verified second sample group; adjusting erroneous question-answer pair information in each initial region-level graphic data annotation result included in the semantically verified second sample group to determine a corrected second sample group.
[0070] Correcting each initial region-level graphic data annotation result included in the second sample group may include semantic information correction and question-answer pair information correction. Among them, semantic information correction is used to correct the candidate semantic information included in any initial region-level graphic data annotation result in the second sample group. Specifically, for any initial region-level graphic data annotation result in the second sample group, all candidate semantic information included in the initial region-level graphic data annotation result can be verified to determine whether each candidate semantic information correctly summarizes the characteristics of the corresponding target object, and delete the erroneous candidate semantic information.
[0071] The question-answer pair information correction is used to correct the answer to the question-answer pair information included in any initial region-level graphic data annotation result in the second sample group. Specifically, for any initial region-level graphic data annotation result in the second sample group, all the question-answer pair information included in the initial region-level graphic data annotation result can be verified to determine whether the answer to each question-answer pair information is correct, and adjust the wrong answer.
[0072] In a possible implementation, for any question-answer pair information in any initial region-level graphic data annotation result, when the answer to the question-answer pair information is correct, the question-answer pair information can be marked as "correct answer" and retained.
[0073] In one possible implementation, for any question-answer pair information in any initial region-level image and text data annotation result, when the answer to the question-answer pair information cannot be directly determined based on the sample image, the question-answer pair information can be marked as "unanswerable" and the answer to the question-answer pair information can be adjusted to a preset template.
[0074] Among them, the preset template is used to indicate that the question of the question and answer information cannot be answered. The specific content of the preset template can be flexibly set according to actual usage requirements, and the present disclosure does not make specific limitations on this.
[0075] For example, the sample image is a half-length portrait of an adult male wearing a blue shirt and smiling, and the target object is the person photographed in the sample image. When the question of a question-answer pair is "What is the occupation of the target object?", since the answer to the question cannot be determined based on the sample image, the question-answer pair can be marked as "unable to answer" and the answer to the question-answer pair can be adjusted to the preset template "unable to determine the answer based on the existing information".
[0076] In one possible implementation, for any question-answer pair information in any initial region-level graphic data annotation result, when the answer to the question-answer pair information is wrong, the question-answer pair information can be marked as "wrong answer", and the answer to the question-answer pair information can be corrected to give a correct answer.
[0077] For example, the sample image is a half-length portrait of an adult male wearing a blue shirt and smiling, and the target object is the person photographed in the sample image. When the question in a question-and-answer pair is "What is the gender of the target object?" and the answer to the question is "female", it can be determined that the answer to the question-and-answer pair is wrong. In this case, the question-and-answer pair can be marked as "wrong answer" and the answer to the question-and-answer pair can be corrected to "male".
[0078] Through the above process, each initial region-level graphic data annotation result included in the second sample group can be corrected, and the corrected second sample group can be determined to obtain a corrected annotation result with higher accuracy. Using the corrected second sample group, the multimodal universal perception model can be fine-tuned to improve the accuracy and reliability of the multimodal universal perception model.
[0079] In a possible implementation, a multimodal universal perception model is trained based on multiple corrected annotation results corresponding to each sample image to obtain a trained multimodal universal perception model, including: pre-training the multimodal universal perception model according to the first sample group to obtain a pre-trained multimodal universal perception model; and fine-tuning the pre-trained multimodal universal perception model according to the corrected second sample group to determine the trained multimodal universal perception model.
[0080] Based on the first sample group including a large number of initial regional-level image and text data annotation results, the multimodal universal perception model can be pre-trained to quickly obtain a pre-trained multimodal universal perception model that can achieve regional-level image and text annotation. Based on the second sample group with higher accuracy, the pre-trained multimodal universal perception model can be fine-tuned to improve the accuracy and reliability of the trained multimodal universal perception model for regional-level image and text annotation.
[0081] Among them, the specific method of pre-training the multimodal universal perception model and the specific method of fine-tuning the pre-trained multimodal universal perception model can refer to the implementation methods in the relevant technology, and the present disclosure does not make specific limitations on this.
[0082] Through the trained multimodal general perception model, the target image can be automatically and efficiently annotated, and the multiple region-level graphic data annotation results corresponding to the target image can be determined. This can simplify the process of region-level graphic and text annotation for the target image, reduce manual participation, improve the work efficiency of region-level graphic and text annotation, reduce work costs, and achieve large-scale acquisition of region-level graphic and text data annotation results.
[0083] In the disclosed embodiment, by annotating each sample image respectively, a plurality of initial region-level image-text data annotation results corresponding to each sample image can be determined; by correcting the plurality of initial region-level image-text data annotation results corresponding to each sample image, a plurality of corrected annotation results corresponding to each sample image can be determined, thereby improving the accuracy of the corrected annotation results, so that any corrected annotation result can accurately describe the characteristics and state of the target object corresponding to the corrected annotation result; based on the plurality of corrected annotation results corresponding to each sample image, a multimodal general perception model is trained to obtain a trained multimodal general perception model, and the trained multimodal general perception model is used to annotate the target image, and a plurality of region-level image-text data annotation results corresponding to the target image are determined, and any region-level image-text data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image, thereby simplifying the region-level image-text annotation process, reducing the participation of manual operation in the annotation process, reducing the workload and work cost of region-level image-text annotation, and improving the work efficiency of region-level image-text annotation, and being able to quickly obtain a large number of region-level image-text data annotation results on the basis of ensuring that the determined region-level image-text annotation has high accuracy and reliability.
[0084] The present disclosure also provides a marking method. Figure 2 A flowchart of a labeling method according to an embodiment of the present disclosure is shown. The labeling method can be executed by an electronic device such as a terminal device or a server. The terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The labeling method can be implemented by a processor calling a computer-readable instruction stored in a memory. Alternatively, the labeling method can be executed by a server. Figure 2 As shown, the marking method includes:
[0085] In step S21 , a target image is determined, wherein the target image includes at least one target object.
[0086] The target object here may represent any specified image area and / or object in the target image, and may be flexibly set according to actual usage requirements, and the present disclosure does not make any specific limitation on this.
[0087] The specific method of determining the target image may refer to the implementation in the related art, and the present disclosure does not make any specific limitation on this.
[0088] In step S22, the target image is automatically annotated according to the multimodal general perception model to determine multiple region-level graphic data annotation results corresponding to the target image, wherein the multimodal general perception model is trained by the above-mentioned method, and any region-level graphic data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image.
[0089] The multimodal universal perception model here may refer to a model obtained according to the multimodal universal perception model training method described above. Inputting the target image into the multimodal universal perception model may realize automatic annotation of the target image and determine the annotation results of multiple region-level graphic data corresponding to the target image.
[0090] Among them, any region-level graphic data annotation result corresponding to any target image can represent a separate annotation result for any target object in the target image. The specific content of the region-level graphic data annotation result can be flexibly set according to actual usage requirements. For example, it can include region-level image data corresponding to any target object in the sample image, and text data such as candidate semantic information, question-answer pair information, and description information corresponding to any target object. This disclosure does not make specific limitations on this.
[0091] In an embodiment of the present disclosure, a target image is determined, wherein the target image includes at least one target object; based on a multimodal general perception model, the target image can be annotated to determine a plurality of region-level graphic data annotation results corresponding to the target image, wherein any region-level graphic data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image, thereby simplifying the region-level graphic data annotation process, reducing the involvement of manual operations in the annotation process, reducing the workload and work cost of region-level graphic data annotation, and improving the work efficiency of region-level graphic data annotation, and being able to quickly obtain a large number of region-level graphic data annotation results on the basis of ensuring that the determined region-level graphic data annotation has high accuracy and reliability.
[0092] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.
[0093] In addition, the present disclosure also provides a multimodal universal perception model training device, a labeling device, an electronic device, a non-volatile computer-readable storage medium, and a program, all of which can be used to implement any multimodal universal perception model training and / or labeling method provided by the present disclosure, and the corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.
[0094] Figure 3 FIG. 1 is a block diagram of a multimodal universal perception model training device according to an embodiment of the present disclosure. Figure 3 As shown, the device 300 includes:
[0095] The initial annotation module 301 is used to determine a plurality of sample images, and respectively annotate each sample image, and determine a plurality of initial region-level graphic data annotation results corresponding to each sample image;
[0096] A correction module 302 is used to correct a plurality of initial region-level graphic data annotation results corresponding to each sample image, and determine a plurality of corrected annotation results corresponding to each sample image;
[0097] The model training module 303 is used to train the multimodal universal perception model based on multiple corrected annotation results corresponding to each sample image to obtain a trained multimodal universal perception model, wherein the trained multimodal universal perception model is used to annotate the target image and determine multiple region-level graphic data annotation results corresponding to the target image. Any region-level graphic data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image.
[0098] In one possible implementation, the initial annotation module 301 is specifically used to: for any sample image, determine the position information corresponding to each target object in the sample image according to the position recognition model; for any target object in the sample image, determine the candidate semantic information corresponding to the target object according to the feature extraction model; for any target object in the sample image, pair the position information and candidate semantic information corresponding to the target object according to the image-text alignment model to obtain the pairing information corresponding to the target object; for any target object in the sample image, determine the question-answer pair information and description information corresponding to the target object according to the pairing information corresponding to the target object, wherein the question-answer pair information corresponding to the target object represents the question and answer related to the target object, and the description information corresponding to the target object is used to describe the characteristics and status of the target object; based on the pairing information, question-answer pair information and description information corresponding to each target object in the sample image, determine multiple initial region-level image-text data annotation results corresponding to the sample image.
[0099] In a possible implementation, the correction module 302 is specifically used to: divide all initial region-level image and text data annotation results corresponding to multiple sample images into a first sample group and a second sample group, wherein the number of initial region-level image and text data annotation results included in the first sample group is greater than the number of initial region-level image and text data annotation results included in the second sample group; and respectively correct each initial region-level image and text data annotation result included in the second sample group to determine a corrected second sample group.
[0100] In one possible implementation, the correction module 302 is specifically used to: delete erroneous candidate semantic information in each initial region-level image and text data annotation result included in the second sample group to obtain a second sample group after semantic verification; adjust erroneous question-answer pair information in each initial region-level image and text data annotation result included in the second sample group after semantic verification to determine a corrected second sample group.
[0101] In one possible implementation, the model training module 303 is specifically used to: pre-train the multimodal universal perception model according to the first sample group to obtain the pre-trained multimodal universal perception model; and fine-tune the pre-trained multimodal universal perception model according to the corrected second sample group to determine the trained multimodal universal perception model.
[0102] Figure 4 FIG. 2 is a block diagram of a labeling device according to an embodiment of the present disclosure. Figure 4 As shown, the device 400 includes:
[0103] An image acquisition module 401 is used to determine a target image, wherein the target image includes at least one target object;
[0104] The annotation module 402 is used to automatically annotate the target image according to the multimodal universal perception model, and determine multiple region-level graphic data annotation results corresponding to the target image, wherein the multimodal universal perception model is trained by the above-mentioned method, and any region-level graphic data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image.
[0105] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0106] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0107] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0108] Figure 5 1 shows a block diagram of an electronic device according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server or a terminal device. Figure 5 , the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions, such as an application, that can be executed by the processing component 1922. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0109] The device 1900 may also include a power supply component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input / output interface 1958 (I / O interface). The device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2000. TM , MacOS X TM , Unix TM , Linux TM , FreeBSD TM or similar.
[0110] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the device 1900 to perform the above method.
[0111] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0112] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0113] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0114] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute the computer-readable program instructions, thereby implementing various aspects of the present disclosure.
[0115] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0116] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0117] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0118] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0119] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A multimodal general perception model training method, characterized in that: include: Determine a plurality of sample images, and respectively annotate each sample image, and determine a plurality of initial region-level graphic data annotation results corresponding to each sample image; Correcting a plurality of initial region-level graphic data annotation results corresponding to each sample image, and determining a plurality of corrected annotation results corresponding to each sample image; Based on the multiple corrected annotation results corresponding to each sample image, the multimodal general perception model is trained to obtain a trained multimodal general perception model, wherein the trained multimodal general perception model is used to annotate the target image, and determine multiple region-level graphic data annotation results corresponding to the target image, and any region-level graphic data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image; The step of labeling each sample image separately and determining a plurality of initial region-level graphic data labeling results corresponding to each sample image includes: For any sample image, the position information corresponding to each target object in the sample image is determined according to the position recognition model; For any target object in the sample image, determining candidate semantic information corresponding to the target object according to the feature extraction model; For any target object in the sample image, pair the position information corresponding to the target object with the candidate semantic information according to the image-text alignment model to obtain the pairing information corresponding to the target object; For any target object in the sample image, determine the question-answer pair information and description information corresponding to the target object according to the pairing information corresponding to the target object, wherein the question-answer pair information corresponding to the target object represents the question and answer related to the target object, and the description information corresponding to the target object is used to describe the characteristics and status of the target object; According to the pairing information, question-answer pair information and description information corresponding to each target object in the sample image, multiple initial region-level graphic and text data annotation results corresponding to the sample image are determined.
2. The method according to claim 1, characterized in that The step of correcting a plurality of initial region-level graphic data annotation results corresponding to each sample image to determine a plurality of corrected annotation results corresponding to each sample image includes: Dividing all initial region-level graphic data annotation results corresponding to the multiple sample images into a first sample group and a second sample group, wherein the number of initial region-level graphic data annotation results included in the first sample group is greater than the number of initial region-level graphic data annotation results included in the second sample group; Each initial region-level graphic data labeling result included in the second sample group is corrected respectively to determine a corrected second sample group.
3. The method according to claim 2, characterized in that The step of respectively correcting each initial region-level graphic data annotation result included in the second sample group to determine a corrected second sample group includes: Deleting erroneous candidate semantic information in each initial region-level graphic data annotation result included in the second sample group to obtain a semantically verified second sample group; The incorrect question-answer pair information in each initial region-level graphic data annotation result included in the second sample group after semantic verification is adjusted to determine the corrected second sample group.
4. The method according to claim 2, characterized in that: The multimodal universal perception model is trained based on the multiple corrected annotation results corresponding to each sample image to obtain a trained multimodal universal perception model, including: Pre-training the multimodal universal perception model according to the first sample group to obtain a pre-trained multimodal universal perception model; The pre-trained multimodal universal perception model is fine-tuned according to the corrected second sample group to determine the trained multimodal universal perception model.
5. A marking method, characterized in that: include: determining a target image, wherein the target image includes at least one target object; According to the multimodal universal perception model, the target image is automatically annotated to determine multiple region-level graphic data annotation results corresponding to the target image, wherein the multimodal universal perception model is trained by the method described in any one of claims 1 to 4, and any region-level graphic data annotation result corresponding to the target image represents a separate annotation result for any target object in the target image.
6. A multimodal universal perception model training device, characterized in that: include: An initial annotation module is used to determine multiple sample images, and respectively annotate each sample image to determine multiple initial region-level graphic data annotation results corresponding to each sample image; A correction module, used to correct a plurality of initial region-level graphic data annotation results corresponding to each sample image, and determine a plurality of corrected annotation results corresponding to each sample image; A model training module, used to train a multimodal universal perception model based on a plurality of corrected annotation results corresponding to each sample image, to obtain a trained multimodal universal perception model, wherein the trained multimodal universal perception model is used to annotate a target image, to determine a plurality of region-level graphic data annotation results corresponding to the target image, and any one of the region-level graphic data annotation results corresponding to the target image represents a separate annotation result for any one target object in the target image; The initial annotation module is specifically used for: For any sample image, the position information corresponding to each target object in the sample image is determined according to the position recognition model; For any target object in the sample image, determining candidate semantic information corresponding to the target object according to the feature extraction model; For any target object in the sample image, pair the position information corresponding to the target object with the candidate semantic information according to the image-text alignment model to obtain the pairing information corresponding to the target object; For any target object in the sample image, determine the question-answer pair information and description information corresponding to the target object according to the pairing information corresponding to the target object, wherein the question-answer pair information corresponding to the target object represents the question and answer related to the target object, and the description information corresponding to the target object is used to describe the characteristics and status of the target object; According to the pairing information, question-answer pair information and description information corresponding to each target object in the sample image, multiple initial region-level graphic and text data annotation results corresponding to the sample image are determined.
7. A marking device, characterized in that: include: An image acquisition module, used to determine a target image, wherein the target image includes at least one target object; A labeling module is used to automatically label the target image according to a multimodal universal perception model, and determine multiple region-level graphic data labeling results corresponding to the target image, wherein the multimodal universal perception model is trained by the method described in any one of claims 1 to 4, and any region-level graphic data labeling result corresponding to the target image represents a separate labeling result for any target object in the target image.
8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method described in any one of claims 1 to 5 when executing the instructions stored in the memory.
9. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.
