Key point detection service migration method and device, equipment, medium and program product
By designing a meta-keypoint database and analyzing spatial relationships to generate annotated and pseudo-annotated data, the problem of low key point detection and migration efficiency in the existing technology is solved, and rapid migration and efficient training are achieved.
Patent Information
- Application Number
- CN202410709054.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-27
AI Technical Summary
Existing key point detection algorithms require re-labeling and model fine-tuning when business needs change, resulting in long time and low efficiency, making it impossible to achieve rapid migration.
Design a meta-key point database, analyze the spatial relationship between business data and meta-key points, generate business key point annotation data and pseudo-annotation data, provide pre-training weights, and achieve rapid migration of key point detection models.
It improves the labeling efficiency and accuracy, provides a pre-training weight basis for the business key point detection model, and realizes the rapid migration of key point detection in new business scenarios.
Smart Images

Figure CN118550897A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a key point detection service migration method, device, electronic device, computer-readable storage medium and computer program product. Background Art
[0002] With the development of the times, the application of artificial intelligence has attracted more and more attention from various companies. Among them, the key point detection algorithm is a widely used algorithm, which has been applied to various industries. In the existing technology, the implementation of the key point detection algorithm usually needs to rely on key point data labeled according to different business needs. When the business needs change, it is necessary to re-collect key point data, manually label, and fine-tune and train the key point detection model before it can be applied to new business scenarios. It takes a long time, and the efficiency and accuracy of manual labeling are low, which cannot achieve the rapid migration of key point detection in new business scenarios. Summary of the invention
[0003] The present invention provides a key point detection business migration method, device, equipment, medium and program product. By designing a meta-key point database and analyzing the spatial relationship between business data and each meta-key point, business key point annotation data and business key point pseudo-annotation data based on the meta-key points can be quickly generated, thereby improving the annotation efficiency and accuracy, and providing a pre-training weight basis for the training of the business key point detection model, thereby realizing the rapid migration of key point detection in new business scenarios.
[0004] In order to solve the above technical problems, a first aspect of an embodiment of the present invention provides a key point detection service migration method, including:
[0005] Acquire the spatial relationship between each business key point corresponding to the business data of the current business scenario and each meta key point in a preset meta key point database; wherein the meta key point database stores a plurality of the meta key points and their respective position information, and there is no spatial relationship between the meta key points;
[0006] According to the business data and the spatial relationship between each of the business key points and each of the meta key points, a preset meta key point detection model is used to obtain business key point annotation data; wherein the meta key point detection model is obtained based on a preset meta key point annotation training set;
[0007] Obtaining pseudo-annotated data of business key points according to the meta-key point database and the spatial relationship between each of the business key points and each of the meta-key points;
[0008] The meta key point detection model is fine-tuned using the business key point pseudo-annotated data, and the fine-tuned meta key point detection model is trained using the business key point annotated data to obtain a business key point detection model for the key point detection task in the current business scenario.
[0009] As a preferred embodiment, the method further comprises the following steps:
[0010] Screening the business meta-key points in the business key point annotation data;
[0011] The screened business meta-key points and their respective location information are added to the meta-key point database for storage.
[0012] As a preferred solution, the spatial relationship between each business key point corresponding to the business data of the current business scenario and each meta key point in the preset meta key point database is obtained, specifically including:
[0013] Selecting at least one target meta-key point corresponding to any business key point from the meta-key point database and satisfying a spatial representation condition; wherein the spatial representation condition is that there is at least one meta-key point whose position representation of the business key point is obtained by linear position superposition;
[0014] Based on the position linear superposition relationship of at least one of the target meta-key points corresponding to any one of the business key points, the spatial relationship between the any one of the business key points and the at least one of the target meta-key points is determined.
[0015] As a preferred solution, the business key point annotation data is obtained by using a preset meta key point detection model according to the business data and the spatial relationship between each business key point and each meta key point, specifically including:
[0016] Inputting the business data into the meta-key point detection model to perform meta-key point detection, and obtaining a number of relevant meta-key points corresponding to the business data and their respective position information;
[0017] According to the related meta-key points and their respective position information, the position information of the business key points corresponding to the business data is obtained by utilizing the spatial relationship between the business key points and the meta-key points, so as to obtain the pre-labeled business key point data corresponding to the business data;
[0018] The pre-labeled data of the key business points are reviewed to obtain the labeled data of the key business points.
[0019] As a preferred solution, obtaining business key point pseudo-annotation data according to the meta key point database and the spatial relationship between each of the business key points and each of the meta key points specifically includes:
[0020] According to the meta-key point database, a number of newly added key points and their respective position information are obtained by utilizing the spatial relationship between each of the business key points and each of the meta-key points, and the number of newly added key points and their respective position information are used as the business key point pseudo-annotation data.
[0021] As a preferred solution, the method of obtaining a plurality of newly added key points and their respective position information based on the meta key point database by utilizing the spatial relationship between each of the business key points and each of the meta key points specifically includes:
[0022] According to the spatial relationship between each of the business key points and each of the meta key points, selecting a number of business-related meta key points and their respective position information from the meta key point database;
[0023] According to the plurality of business-related meta-key points and their respective position information, a plurality of newly added key points and their respective position information are obtained by utilizing the spatial relationship between each of the business key points and each of the meta-key points.
[0024] A second aspect of an embodiment of the present invention provides a key point detection service migration device, including:
[0025] A spatial relationship acquisition module, used to acquire the spatial relationship between each business key point corresponding to the business data of the current business scenario and each meta key point in a preset meta key point database; wherein the meta key point database stores a plurality of the meta key points and their respective position information, and there is no spatial relationship between the meta key points;
[0026] A labeling data acquisition module, used to obtain business key point labeling data using a preset meta key point detection model according to the business data and the spatial relationship between each business key point and each meta key point; wherein the meta key point detection model is obtained based on training of a preset meta key point labeling training set;
[0027] A pseudo-annotation data acquisition module, used to obtain pseudo-annotation data of business key points according to the meta-key point database and the spatial relationship between each of the business key points and each of the meta-key points;
[0028] The model transfer learning module is used to fine-tune the meta-key point detection model using the business key point pseudo-annotated data, and to train the fine-tuned meta-key point detection model using the business key point annotated data to obtain a business key point detection model for the key point detection task in the current business scenario.
[0029] A third aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the key point detection service migration method described in any one of the first aspects is implemented.
[0030] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the key point detection business migration method described in any one of the first aspects.
[0031] A fifth aspect of an embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the key point detection service migration method described in any one of the first aspects.
[0032] Compared with the prior art, the beneficial effect of the embodiments of the present invention is that by designing a meta-key point database and analyzing the spatial relationship between business data and each meta-key point, business key point annotation data and business key point pseudo-annotation data based on meta-key points can be quickly generated, thereby improving annotation efficiency and accuracy, and providing a pre-trained weight basis for the training of the business key point detection model, thereby realizing the rapid migration of key point detection in new business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a flow chart of a key point detection service migration method in an embodiment of the present invention;
[0034] Figure 2 It is a schematic diagram of the process of recycling key points of business elements in an embodiment of the present invention;
[0035] Figure 3 is a schematic diagram of a process for obtaining a spatial relationship between a business key point and a meta key point in an embodiment of the present invention;
[0036] Figure 4 It is a schematic diagram of the process of obtaining business key point annotation data in an embodiment of the present invention;
[0037] Figure 5 is a schematic diagram of a process for acquiring pseudo-annotated data of key business points in an embodiment of the present invention;
[0038] Figure 6 is a schematic diagram of the process of model transfer learning in an embodiment of the present invention;
[0039] Figure 7 It is a structural schematic diagram of a key point detection service migration device in an embodiment of the present invention;
[0040] Figure 8 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] See also Figure 1 , is a flow chart of a key point detection service migration method in an embodiment of the present invention. A first aspect of an embodiment of the present invention provides a key point detection service migration method, comprising the following steps S1 to S4:
[0043] Step S1, obtaining the spatial relationship between each business key point corresponding to the business data of the current business scenario and each meta key point in a preset meta key point database; wherein the meta key point database stores a plurality of the meta key points and their respective position information, and there is no spatial relationship between the meta key points;
[0044] Step S2, according to the business data and the spatial relationship between each of the business key points and each of the meta key points, using a preset meta key point detection model to obtain business key point annotation data; wherein the meta key point detection model is obtained based on a preset meta key point annotation training set training;
[0045] Step S3, obtaining pseudo-annotated data of business key points according to the meta-key point database and the spatial relationship between each of the business key points and each of the meta-key points;
[0046] Step S4, using the business key point pseudo-annotation data to fine-tune the meta key point detection model, and using the business key point annotation data to train the fine-tuned meta key point detection model to obtain a business key point detection model for the key point detection task in the current business scenario.
[0047] It is worth noting that key point detection aims to automatically detect and identify key points of a specific object or object from a given image, and key points refer to important parts of an object, such as eyes, nose, mouth and other parts of a face, or joints of a human body, such as shoulders, knees and other parts. Further, if the current business scenario requires the execution of a key point detection task, first obtain the business data of the current business scenario, such as image data, video data, etc., and then analyze the business key points required to be detected in the business data. For example, in the face key point recognition scenario, the business key points include the above-mentioned eyes, nose, mouth and other parts of the face, or joints of a human body, such as shoulders, knees and other parts. In addition, in addition to the face key point recognition scenario, it can also be other business scenarios, such as the car key point recognition scenario, and the business key points include front wheels, rear wheels, fog lights, headlights, license plates, rearview mirrors, taillights, etc. This embodiment will not be described in detail here. Further, the present embodiment pre-sets a one-element key point database, in which several meta-key points and their respective position information are stored. It should be noted that there is no spatial relationship between the meta-key points, that is, the position of each meta-key point cannot be derived from the position of the other meta-key points. For example, taking a human face as an example, the left corner of the eye, the right corner of the eye, the left corner of the mouth and the right corner of the mouth cannot be mutually derived because the human face has a variety of proportional features, and they cannot be derived from the other key points. Therefore, the left corner of the eye, the right corner of the eye, the left corner of the mouth and the right corner of the mouth are meta-key points, and the nose of the face is usually located on the central axis of the facial features. Therefore, when determining the positions of the left corner of the eye, the right corner of the eye, the left corner of the mouth and the right corner of the mouth, the position representation of the nose can be obtained by linear superposition of the position, so the nose is only a key point, not a meta-key point. Therefore, the meta-key point in the present embodiment, as a basic key point, can represent all feature expressions of an object. Based on this, the present embodiment obtains the spatial relationship between each business key point and each meta-key point, so as to express the business key point using the meta-key point.
[0048] Furthermore, since the meta-key point detection model in the present embodiment is obtained based on the training of the meta-key point annotation training set, the model can detect the meta-key points in the business data, and the spatial relationship obtained above clarifies the deduced relationship between the positions of each business key point and each meta-key point in the business data. Therefore, the position information of each business key point in the business data can be further determined based on the position information of each detected meta-key point, thereby forming business key point annotation data.
[0049] In one embodiment, the above-mentioned meta-keypoint annotation training set is generated based on each meta-keypoint in the meta-keypoint database and their respective position information.
[0050] Furthermore, in order to make the final business key point detection model have better generalization and higher accuracy, this embodiment obtains business key point pseudo-annotation data based on the meta key point database and spatial relationships. Since the annotation data is obtained based on the meta key point database and not based on actual business data, the obtained annotation data is not real business key point annotation data. The use of the business key point pseudo-annotation data can provide a pre-training weight basis for the meta key point detection model.
[0051] Furthermore, this embodiment uses the pseudo-annotated data of business key points to fine-tune the meta-key point detection model to provide a pre-trained weight basis, and then uses the business key point annotated data, which is the real annotated data, for further model training to obtain a business key point detection model for the key point detection task of the current business scenario. It can be understood that when it is necessary to perform the key point detection task of the current business scenario, it is only necessary to input the business data of the current business scenario, such as a picture, into the business key point detection model, and each business key point in the business data can be output.
[0052] The key point detection service migration method is applicable to a variety of service scenarios. For example, the current service scenario is a human key point recognition scenario. In order to realize the key point detection service migration of the current human key point recognition scenario, firstly, the service data of the current human key point recognition scenario, such as a human image to be recognized, a human video, etc., is obtained, and the obtained service data is analyzed to determine the relevant service key points, such as eyes, nose, mouth and other parts of the face, and joints of the human body, such as shoulders, knees and other parts; further, the spatial relationship between each service key point and each meta key point in the meta key point database is obtained, so as to use at least one meta key point to realize the position information expression of the service key point; further, the service data is input into the meta key point detection model, so as to clarify each meta key point in the service data. Assuming that the left eye corner, the right eye corner, the left mouth corner and the right mouth corner are meta key points, and the service data contains the human face part to be recognized, the left eye corner, the right eye corner, the left mouth corner and the right mouth corner in the service data can be recognized by the meta key point detection model, and then based on the obtained spatial relationship, it can be further determined. Business key points in business data, for example, assuming that there is a spatial relationship between the nose and the left corner of the eye, the right corner of the eye, the left corner of the mouth, and the right corner of the mouth, the position information of the nose can be determined based on the position information of the identified left corner of the eye, the right corner of the eye, the left corner of the mouth, and the right corner of the mouth, thereby realizing the position information labeling of the business key points and obtaining the business key point labeling data; further, since a number of meta-key points related to the human body are pre-stored in the meta-key point database, but these position information do not come from the current business data, based on the acquired spatial relationship, business key point pseudo-labeling data can be obtained and used to fine-tune the meta-key point detection model, so that the meta-key point detection model can learn the feature information of business key points related to the human body, thereby helping to improve the training speed of the model and the generalization of the scene; further, the fine-tuned meta-key point detection model is trained using the above-mentioned business key point labeling data. Since the business key point labeling data comes from the actual business data of the current human key point recognition scene, the business key point detection model obtained by training can meet the application requirements of the current human key point recognition scene.
[0053] The key point detection business migration method provided in the embodiment of the present invention can quickly generate business key point annotation data and business key point pseudo-annotation data based on meta key points by designing a meta key point database and analyzing the spatial relationship between business data and each meta key point, thereby improving the annotation efficiency and accuracy, and providing a pre-trained weight basis for the training of the business key point detection model, thereby realizing the rapid migration of key point detection in new business scenarios.
[0054] See also Figure 2, is a flow chart of business element key point recovery in an embodiment of the present invention. As a preferred solution, the method further includes the following steps S5 to S6:
[0055] Step S5, screening the business meta-key points in the business key point annotation data;
[0056] Step S6: adding the screened business meta-key points and their respective position information to the meta-key point database for storage.
[0057] Specifically, since there is a spatial relationship between a business key point and at least one meta key point, when there is a spatial relationship between a business key point and a single meta key point, it indicates that the business key point is the meta key point. Therefore, there may be one, two or more business meta key points belonging to the current business scenario in the business key point annotation data. This embodiment screens the business meta key points, and adds the screened business meta key points and their respective location information to the meta key point database for storage, thereby adding the business meta key points to the meta key point database in the form of new labels, realizing the recovery and secondary empowerment of meta key point data, so that the scene data in the meta key point database is continuously expanded. When the meta key point data stored in the meta key point database is used to train the meta key point detection model, the meta key point detection model can be continuously updated, and the generalization of the model in different business scenarios is improved.
[0058] See also Figure 3 , is a flow chart of obtaining the spatial relationship between business key points and meta key points in an embodiment of the present invention. As a preferred solution, the spatial relationship between each business key point corresponding to the business data of the current business scenario and each meta key point in the preset meta key point database is obtained, specifically including steps S11 to S12:
[0059] Step S11, selecting at least one target meta-key point corresponding to any business key point and satisfying a spatial representation condition from the meta-key point database; wherein the spatial representation condition is that there is at least one meta-key point whose position representation of the business key point is obtained by linear position superposition;
[0060] Step S12: determining the spatial relationship between any one of the business key points and at least one of the target meta key points based on the position linear superposition relationship of at least one of the target meta key points corresponding to any one of the business key points.
[0061] Specifically, this embodiment first selects at least one target meta-key point corresponding to any business key point from the meta-key point database. The selected target meta-key point must meet the above-mentioned spatial representation conditions, that is, the selected target meta-key point can obtain the position representation of the business key point by linear position superposition. It can be understood that the target meta-key point corresponding to each business key point can be one, two, three or more than three. This embodiment does not make specific limitations here. When the corresponding target meta-key point is one, it indicates that the current business key point belongs to the meta-key point. Furthermore, based on the linear position superposition relationship of at least one target meta-key point corresponding to any business key point, the spatial relationship between the business key point and the selected target meta-key point can be determined.
[0062] The key point detection business migration method provided in an embodiment of the present invention can provide a spatial derivation basis for the subsequent annotation of business key points by expressing each business key point by utilizing the set meta-key points, thereby facilitating the rapid generation of business key point annotation data and realizing the rapid migration of key point detection in new business scenarios.
[0063] See also Figure 4 , is a flow chart of obtaining business key point annotation data in an embodiment of the present invention. As a preferred solution, the business key point annotation data is obtained by using a preset meta key point detection model according to the business data and the spatial relationship between each business key point and each meta key point, specifically including steps S21 to S23:
[0064] Step S21, inputting the business data into the meta-key point detection model to perform meta-key point detection, and obtaining a number of related meta-key points corresponding to the business data and their respective position information;
[0065] Step S22, according to the related meta-key points and their respective position information, the position information of the business key points corresponding to the business data is obtained by using the spatial relationship between the business key points and the meta-key points, so as to obtain the pre-labeled business key point data corresponding to the business data;
[0066] Step S23, rechecking the pre-annotated data of the key business points to obtain the annotated data of the key business points.
[0067] Specifically, the present embodiment first inputs business data such as images into a meta-key point detection model for meta-key point detection, thereby being able to obtain a number of related meta-key points in the business data and their respective position information. Further, since the spatial relationship obtained above clarifies the derivation relationship between each business key point and each meta-key point in the business data in terms of position, based on the obtained several related meta-key points and their respective position information, it is possible to obtain business key points and their position information that have a spatial relationship with at least one related meta-key point in the business data, thereby obtaining business key point pre-annotation data corresponding to the business data. Further, since the position information of the related meta-key points output by the meta-key point detection model may be biased or the position information of the business key points calculated based on the spatial relationship may be biased, in order to ensure the accuracy of the business key point annotation data, the present embodiment rechecks the business key point pre-annotation data, thereby obtaining true business key point annotation data.
[0068] In one embodiment, when the scene data in the meta-key point database is continuously expanded due to the recovery of business meta-key points and applied to the continuous updating of the meta-key point detection model, the business scene generalization and detection accuracy of the meta-key point detection model will continue to improve. At this time, the annotation data obtained based on several related meta-key points and their respective position information output by the model will be directly used as the final business key point annotation data without the need for re-inspection, thereby further improving the generation efficiency of business key point annotation data.
[0069] The key point detection business migration method provided in the embodiment of the present invention is based on the spatial relationship between each business key point and each meta key point, and uses the meta key point detection model to quickly generate business key point annotation data, thereby avoiding the problems of low annotation efficiency and low accuracy caused by manual annotation, and helping to achieve rapid migration of key point detection in new business scenarios.
[0070] As a preferred solution, obtaining business key point pseudo-annotation data according to the meta key point database and the spatial relationship between each of the business key points and each of the meta key points specifically includes:
[0071] According to the meta-key point database, a number of newly added key points and their respective position information are obtained by utilizing the spatial relationship between each of the business key points and each of the meta-key points, and the number of newly added key points and their respective position information are used as the business key point pseudo-annotation data.
[0072] Specifically, since the spatial relationship obtained above clarifies the derivation relationship between the positions of each business key point and each meta key point in the business data, and the meta key point database stores a number of meta key points and their respective position information, this embodiment can determine a number of newly added key points and their respective position information based on the meta key point database according to the meta key point database and the spatial relationship. Since the position information of these newly added key points is not obtained based on the current actual business data, the several newly added key points and their respective position information are used as business key point pseudo-annotation data, which provides a pre-training weight basis for the training of the business key point detection model, helps to improve the training efficiency of the business key point detection model, and thus realize the rapid migration of key point detection in new business scenarios.
[0073] See also Figure 5 , is a flow chart of obtaining pseudo-annotated data of business key points in an embodiment of the present invention. As a preferred solution, the method of obtaining a plurality of newly added key points and their respective position information based on the meta-key point database by using the spatial relationship between each of the business key points and each of the meta-key points specifically includes the following steps S31 to S32:
[0074] Step S31, selecting a number of business-related meta-key points and their respective position information from the meta-key point database according to the spatial relationship between each of the business key points and each of the meta-key points;
[0075] Step S32, according to the plurality of business-related meta-key points and their respective position information, using the spatial relationship between each of the business key points and each of the meta-key points to obtain a plurality of newly added key points and their respective position information.
[0076] Specifically, since the spatial relationship clarifies the derived relationship between the positions of each business key point and each meta key point in the business data, a number of business-related meta key points can be determined based on the spatial relationship. Therefore, this embodiment selects a number of business-related meta key points and their respective position information from the meta key point database, and then based on the spatial relationship between each business key point and each business-related meta key point, a number of newly added key points and their respective position information can be calculated.
[0077] See also Figure 6 , is a flow chart of model transfer learning in an embodiment of the present invention. As a preferred solution, the meta-key point detection model is fine-tuned using the pseudo-annotated data of the business key points, and the fine-tuned meta-key point detection model is trained using the business key point annotated data to obtain a business key point detection model for the key point detection task of the current business scenario, specifically including steps S41 to S42:
[0078] Step S41, fine-tuning the meta-key point detection model using the business key point pseudo-annotation data to obtain the pre-training weights of the business key point detection model;
[0079] Step S42, based on the pre-training weights, the fine-tuned meta-key point detection model is trained using the business key point annotation data to obtain the business key point detection model for the key point detection task of the current business scenario.
[0080] It is worth noting that, although the pseudo-annotated data of business key points is not obtained based on the current actual business data, it is the annotation data based on the extension of meta-key points obtained based on the spatial relationship between business key points and meta-key points, which can help the model learn the characteristic information of business key points. Therefore, this embodiment first uses the pseudo-annotated data of business key points to fine-tune the meta-key point detection model and obtain the pre-trained weights of the business key point detection model, which can speed up the training speed of the business key point detection model and improve the business scenario generalization and detection accuracy of the business key point detection model. Furthermore, based on the pre-trained weights obtained by fine-tuning, the fine-tuned meta-key point detection model is trained using the business key point annotation data obtained based on the current actual business data, and a business key point detection model for the key point detection task of the current business scenario is obtained.
[0081] See also Figure 7 , is a schematic diagram of the structure of a key point detection service migration device 100 in an embodiment of the present invention. A second aspect of an embodiment of the present invention provides a key point detection service migration device 100, comprising:
[0082] The spatial relationship acquisition module 11 is used to acquire the spatial relationship between each business key point corresponding to the business data of the current business scene and each meta key point in a preset meta key point database; wherein the meta key point database stores a plurality of the meta key points and their respective position information, and there is no spatial relationship between the meta key points;
[0083] The annotation data acquisition module 12 is used to obtain the business key point annotation data by using a preset meta key point detection model according to the business data and the spatial relationship between each of the business key points and each of the meta key points; wherein the meta key point detection model is obtained based on the preset meta key point annotation training set training;
[0084] A pseudo-annotation data acquisition module 13 is used to obtain pseudo-annotation data of business key points according to the meta-key point database and the spatial relationship between each of the business key points and each of the meta-key points;
[0085] The model transfer learning module 14 is used to fine-tune the meta key point detection model using the business key point pseudo-annotation data, and to train the fine-tuned meta key point detection model using the business key point annotation data to obtain a business key point detection model for the key point detection task in the current business scenario.
[0086] As a preferred solution, the device further includes a service element key point recovery module, which is used to:
[0087] Screening the business meta-key points in the business key point annotation data;
[0088] The screened business meta-key points and their respective location information are added to the meta-key point database for storage.
[0089] As a preferred solution, the spatial relationship acquisition module 11 is used to acquire the spatial relationship between each business key point corresponding to the business data of the current business scene and each meta key point in the preset meta key point database, specifically including:
[0090] Selecting at least one target meta-key point corresponding to any business key point from the meta-key point database and satisfying a spatial representation condition; wherein the spatial representation condition is that there is at least one meta-key point whose position representation of the business key point is obtained by linear position superposition;
[0091] Based on the position linear superposition relationship of at least one of the target meta-key points corresponding to any one of the business key points, the spatial relationship between the any one of the business key points and the at least one of the target meta-key points is determined.
[0092] As a preferred solution, the annotation data acquisition module 12 is used to obtain the business key point annotation data according to the business data and the spatial relationship between each of the business key points and each of the meta key points using a preset meta key point detection model, specifically including:
[0093] Inputting the business data into the meta-key point detection model to perform meta-key point detection, and obtaining a number of relevant meta-key points corresponding to the business data and their respective position information;
[0094] According to the related meta-key points and their respective position information, the position information of the business key points corresponding to the business data is obtained by utilizing the spatial relationship between the business key points and the meta-key points, so as to obtain the pre-labeled business key point data corresponding to the business data;
[0095] The pre-labeled data of the key business points are reviewed to obtain the labeled data of the key business points.
[0096] As a preferred solution, the pseudo-annotation data acquisition module 13 is used to obtain business key point pseudo-annotation data according to the meta-key point database and the spatial relationship between each of the business key points and each of the meta-key points, specifically including:
[0097] According to the meta-key point database, a number of newly added key points and their respective position information are obtained by utilizing the spatial relationship between each of the business key points and each of the meta-key points, and the number of newly added key points and their respective position information are used as the business key point pseudo-annotation data.
[0098] As a preferred solution, the pseudo-annotation data acquisition module 13 is used to obtain a number of newly added key points and their respective position information based on the meta-key point database by using the spatial relationship between each of the business key points and each of the meta-key points, specifically including:
[0099] According to the spatial relationship between each of the business key points and each of the meta key points, selecting a number of business-related meta key points and their respective position information from the meta key point database;
[0100] According to the plurality of business-related meta-key points and their respective position information, a plurality of newly added key points and their respective position information are obtained by utilizing the spatial relationship between each of the business key points and each of the meta-key points.
[0101] As a preferred solution, the model transfer learning module 14 is used to fine-tune the meta key point detection model using the business key point pseudo-annotated data, and train the fine-tuned meta key point detection model using the business key point annotated data to obtain a business key point detection model for the key point detection task of the current business scenario, specifically including:
[0102] Fine-tune the meta-key point detection model using the business key point pseudo-annotated data to obtain pre-trained weights of the business key point detection model;
[0103] Based on the pre-training weights, the fine-tuned meta-key point detection model is trained using the business key point annotation data to obtain the business key point detection model for the key point detection task of the current business scenario.
[0104] It should be noted that the key point detection business migration device 100 provided in an embodiment of the present invention can implement all the processes of the key point detection business migration method described in any of the above embodiments. The functions of each module in the device and the technical effects achieved are respectively the same as the functions and technical effects achieved by the key point detection business migration method described in the above embodiments, and will not be repeated here.
[0105] See also Figure 8, is a schematic diagram of the structure of an electronic device 200 provided in an embodiment of the present invention. A third aspect of an embodiment of the present invention provides an electronic device 200, comprising a memory 22, a processor 21, and a computer program stored in the memory 22 and executable on the processor 21, wherein the processor 21 implements the key point detection service migration method described in any embodiment of the first aspect when executing the computer program.
[0106] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 22 and executed by the processor 21 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device 200.
[0107] The electronic device 200 may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 200 and does not limit the electronic device 200. The electronic device 200 may include more or fewer components than shown in the figure, or may combine certain components, or different components. For example, the electronic device 200 may also include input and output devices, network access devices, buses, etc.
[0108] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the electronic device 200, and uses various interfaces and lines to connect various parts of the entire electronic device 200.
[0109] The memory 22 can be used to store the computer program and / or module. The processor 21 realizes various functions of the electronic device 200 by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0110] It should be noted that the electronic device 200 in this embodiment can be a server, a PC, or other devices in specific implementation, as long as its structure includes the following: Figure 8 The memory 22 and the processor 21 are shown, wherein the processor 21 can call the logic instructions in the memory 22 to execute the above method. This embodiment does not limit the specific implementation form of the electronic device.
[0111] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the key point detection business migration method described in any embodiment of the first aspect.
[0112] A fifth aspect of an embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the key point detection business migration method described in any embodiment of the first aspect.
[0113] Wherein, if the module / unit integrated in the electronic device 200 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor 21. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0114] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A key point detection service migration method, characterized in that: include: Acquire the spatial relationship between each business key point corresponding to the business data of the current business scenario and each meta key point in a preset meta key point database; wherein the meta key point database stores a plurality of the meta key points and their respective position information, and there is no spatial relationship between the meta key points; According to the business data and the spatial relationship between each of the business key points and each of the meta key points, a preset meta key point detection model is used to obtain business key point annotation data; wherein the meta key point detection model is obtained based on a preset meta key point annotation training set; Obtaining pseudo-annotated data of business key points according to the meta-key point database and the spatial relationship between each of the business key points and each of the meta-key points; The meta key point detection model is fine-tuned using the business key point pseudo-annotated data, and the fine-tuned meta key point detection model is trained using the business key point annotated data to obtain a business key point detection model for the key point detection task in the current business scenario.
2. The key point detection service migration method as claimed in claim 1, characterized in that: The method further comprises the steps of: Screening the business meta-key points in the business key point annotation data; The screened business meta-key points and their respective location information are added to the meta-key point database for storage.
3. The key point detection service migration method as claimed in claim 1, characterized in that: The obtaining of the spatial relationship between each business key point corresponding to the business data of the current business scenario and each meta key point in the preset meta key point database specifically includes: Selecting at least one target meta-key point corresponding to any business key point from the meta-key point database and satisfying a spatial representation condition; wherein the spatial representation condition is that there is at least one meta-key point whose position representation of the business key point is obtained by linear position superposition; Based on the position linear superposition relationship of at least one of the target meta-key points corresponding to any one of the business key points, the spatial relationship between the any one of the business key points and the at least one of the target meta-key points is determined.
4. The key point detection service migration method as claimed in claim 1, characterized in that: The obtaining of business key point annotation data using a preset meta key point detection model according to the business data and the spatial relationship between each business key point and each meta key point specifically includes: Inputting the business data into the meta-key point detection model to perform meta-key point detection, and obtaining a number of relevant meta-key points corresponding to the business data and their respective position information; According to the related meta-key points and their respective position information, the position information of the business key points corresponding to the business data is obtained by utilizing the spatial relationship between the business key points and the meta-key points, so as to obtain the pre-labeled business key point data corresponding to the business data; The pre-labeled data of the key business points are reviewed to obtain the labeled data of the key business points.
5. The key point detection service migration method as claimed in claim 1, characterized in that: The obtaining of pseudo-annotated business key point data according to the meta-key point database and the spatial relationship between each of the business key points and each of the meta-key points specifically includes: According to the meta-key point database, a number of newly added key points and their respective position information are obtained by utilizing the spatial relationship between each of the business key points and each of the meta-key points, and the number of newly added key points and their respective position information are used as the business key point pseudo-annotation data.
6. The key point detection service migration method as claimed in claim 5, characterized in that: The step of obtaining a plurality of newly added key points and their respective position information based on the meta key point database by utilizing the spatial relationship between each of the business key points and each of the meta key points specifically includes: According to the spatial relationship between each of the business key points and each of the meta key points, selecting a number of business-related meta key points and their respective position information from the meta key point database; According to the plurality of business-related meta-key points and their respective position information, a plurality of newly added key points and their respective position information are obtained by utilizing the spatial relationship between each of the business key points and each of the meta-key points.
7. A key point detection service migration device, characterized in that: include: A spatial relationship acquisition module, used to acquire the spatial relationship between each business key point corresponding to the business data of the current business scenario and each meta key point in a preset meta key point database; wherein the meta key point database stores a plurality of the meta key points and their respective position information, and there is no spatial relationship between the meta key points; A labeling data acquisition module, used to obtain business key point labeling data using a preset meta key point detection model according to the business data and the spatial relationship between each business key point and each meta key point; wherein the meta key point detection model is obtained based on training of a preset meta key point labeling training set; A pseudo-annotation data acquisition module, used to obtain pseudo-annotation data of business key points according to the meta-key point database and the spatial relationship between each of the business key points and each of the meta-key points; The model transfer learning module is used to fine-tune the meta-key point detection model using the business key point pseudo-annotated data, and to train the fine-tuned meta-key point detection model using the business key point annotated data to obtain a business key point detection model for the key point detection task in the current business scenario.
8. An electronic device, characterized in that: It comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the key point detection service migration method as described in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the key point detection service migration method according to any one of claims 1 to 6.
10. A computer program product, characterized in that It includes a computer program / instruction, which, when executed by a processor, implements the steps of the key point detection service migration method described in any one of claims 1 to 6.
