Three-dimensional human body posture estimation model training device and method

By adding constraints on joint point relationships in the training of the three-dimensional human posture estimation model, the accuracy of the three-dimensional human posture estimation model is improved, and the problem of low joint point estimation accuracy in the existing technology is solved.

CN118628858APending Publication Date: 2024-09-10FUJITSU LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310252830.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing three-dimensional human posture estimation methods ignore the relationship between joint points, resulting in low estimation accuracy for distant joint points, affecting the overall model accuracy.

Method used

By adding the predicted values ​​of the human body's local orientation, bone length, and relative position of the root joint points as constraints during the training process, the loss function is adjusted to consider the relationship between joint points, thereby improving the accuracy of the three-dimensional human posture estimation model.

Benefits of technology

The accuracy of three-dimensional coordinate estimation including joint points far away from the center is improved, and the overall estimation accuracy of the three-dimensional human posture estimation model is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628858A
    Figure CN118628858A
Patent Text Reader

Abstract

The embodiment of the invention provides a training device and method for a three-dimensional human body posture estimation model. The method comprises the following steps: inputting training data including a three-dimensional image data set into a convolutional network for feature extraction to obtain a three-dimensional heat map; obtaining three-dimensional coordinates of human body joint points according to the three-dimensional heat map; according to the three-dimensional coordinates of the human body articulation points, calculating at least one of a predicted value of a human body local direction, a predicted value of a skeleton length and a predicted value of a relative position of each human body articulation point and a root articulation point; determining a loss function according to at least one of a predicted value of a human body local direction, a predicted value of a skeleton length and a predicted value of a relative position of each human body joint point and a root joint point and a corresponding true value calculated according to the three-dimensional image data set; and adjusting parameters of the three-dimensional human body posture estimation model based on the loss function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology. Background Art

[0002] 3D Human Pose Estimation (3DHPE) is an important task in computer vision, which aims to estimate the 3D human joint coordinates from a given image or video. It has wide application value in action recognition, action analysis, human-computer interaction, etc.

[0003] Currently, there is a technology that estimates the three-dimensional human posture by inputting a two-dimensional monocular image into a three-dimensional human posture estimation model. When training the model, the training is performed based on point-to-point distance comparison.

[0004] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present application and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because they are described in the background technology section of this document. Summary of the invention

[0005] However, in the existing methods for estimating three-dimensional human posture, the inventors found that due to the complexity of human body movement and the different frequencies of self-occlusion, the traditional point-to-point distance comparison ignores the relationship between joint points, resulting in the estimated position of the joint point farther away from the center joint point of the pelvis, for example, the lower the accuracy, thus affecting the overall estimation accuracy of the three-dimensional human posture estimation model.

[0006] In order to solve at least one of the above problems, an embodiment of the present application provides a training device and method for a three-dimensional human posture estimation model, which can improve the estimation accuracy of the three-dimensional coordinates of each joint point including the joint points that are far from the center, thereby improving the overall estimation accuracy of the three-dimensional human posture estimation model.

[0007] According to a first aspect of an embodiment of the present application, a training device for a three-dimensional human posture estimation model is provided, the device comprising: an extraction unit, which inputs training data including a three-dimensional image data set into a convolutional network for feature extraction to obtain a three-dimensional heat map; a first calculation unit, which obtains the three-dimensional coordinates of human joints according to the three-dimensional heat map; a second calculation unit, which calculates at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative positions of each human joint point and the root joint point according to the three-dimensional coordinates of the human joint points; a determination unit, which determines a loss function according to at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative positions of each human joint point and the root joint point and the corresponding true value calculated according to the three-dimensional image data set; and an adjustment unit, which adjusts the parameters of the three-dimensional human posture estimation model based on the loss function.

[0008] According to a second aspect of the embodiments of the present application, an electronic device is provided, wherein the electronic device includes the training device according to the first aspect of the embodiments of the present application.

[0009] According to a third aspect of an embodiment of the present application, a training method for a three-dimensional human posture estimation model is provided, the method comprising: inputting training data including a three-dimensional image data set into a convolutional network for feature extraction to obtain a three-dimensional heat map; obtaining the three-dimensional coordinates of human joints according to the three-dimensional heat map; calculating at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative positions of each human joint point and the root joint point according to the three-dimensional coordinates of the human joint points; determining a loss function according to at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative positions of each human joint point and the root joint point and the corresponding true value calculated according to the three-dimensional image data set; and adjusting the parameters of the three-dimensional human posture estimation model based on the loss function.

[0010] One of the beneficial effects of the embodiments of the present application is that when training a three-dimensional human posture estimation model, a loss function is determined based on at least one of the predicted values ​​of the local orientation of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative positions of each human joint point to the root joint point and the corresponding true values ​​calculated based on the three-dimensional image data set, and the training is performed using the loss function. That is, at least one of the local orientation of the human body, the bone length, and the relative position to the root joint point is added as a constraint condition to the loss function used for training, the relationship between the joint points is taken into account, and the estimation accuracy of the three-dimensional coordinates of each joint point including the joint points farther from the center is improved, thereby improving the overall estimation accuracy of the three-dimensional human posture estimation model.

[0011] With reference to the following description and accompanying drawings, the specific embodiments of the present application are disclosed in detail, indicating the way in which the principles of the present application can be adopted. It should be understood that the embodiments of the present application are not limited in scope. Within the scope of the spirit and clauses of the appended claims, the embodiments of the present application include many changes, modifications and equivalents.

[0012] Features described and / or illustrated with respect to one embodiment may be used in the same or similar manner in one or more other embodiments, combined with features in other embodiments, or substituted for features in other embodiments.

[0013] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, integers, steps or components, but does not exclude the presence or addition of one or more other features, integers, steps or components. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The included drawings are used to provide a further understanding of the embodiments of the present application, which constitute a part of the specification, are used to illustrate the implementation methods of the present application, and together with the text description, explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0015] Figure 1 is a schematic diagram of a training device for a three-dimensional human body posture estimation model according to Example 1 of the present application;

[0016] Figure 2 is a schematic diagram of the second computing unit 103 in Embodiment 1 of the present application;

[0017] Figure 3 This is a schematic diagram of selecting multiple groups of joint points to calculate the unit normal vector of a plane in Example 1 of the present application;

[0018] Figure 4 is a schematic diagram of calculating the distances between adjacent joint points of the joint points of the limbs of a human body according to Example 1 of the present application;

[0019] Figure 5 is a schematic diagram of the determination unit 104 of Embodiment 1 of the present application;

[0020] Figure 6 A schematic diagram of an electronic device according to Embodiment 2 of the present application;

[0021] Figure 7 is a schematic block diagram of the system structure of the electronic device of Embodiment 2 of the present application;

[0022] Figure 8It is a schematic diagram of the training method of the three-dimensional human posture estimation model of Example 3 of the present application. DETAILED DESCRIPTION

[0023] With reference to the accompanying drawings, the above and other features of the present application will become apparent through the following description. In the description and the accompanying drawings, specific embodiments of the present application are specifically disclosed, which show some embodiments in which the principles of the present application can be adopted. It should be understood that the present application is not limited to the described embodiments. On the contrary, the present application includes all modifications, variations and equivalents falling within the scope of the attached claims.

[0024] Example 1

[0025] An embodiment of the present application provides a training device for a three-dimensional human posture estimation model. Figure 1 It is a schematic diagram of a training device for a three-dimensional human posture estimation model of Example 1 of the present application.

[0026] like Figure 1 As shown, the training device 100 for the 3D human posture estimation model includes:

[0027] An extraction unit 101, which inputs the training data including the three-dimensional image data set into the convolutional network for feature extraction to obtain a three-dimensional heat map;

[0028] A first calculation unit 102, which obtains the three-dimensional coordinates of the human body joint points according to the three-dimensional heat map;

[0029] A second calculation unit 103 calculates at least one of a predicted value of a local direction of a human body, a predicted value of a bone length, and a predicted value of a relative position of each human body joint point to a root joint point according to the three-dimensional coordinates of the human body joint point;

[0030] a determination unit 104, which determines a loss function according to at least one of the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human joint point and the root joint point and a corresponding true value calculated according to the three-dimensional image data set; and

[0031] The adjustment unit 105 adjusts the parameters of the 3D human posture estimation model based on the loss function.

[0032] In this way, when training a three-dimensional human posture estimation model, a loss function is determined based on at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative position of each human joint point to the root joint point and the corresponding true value calculated based on the three-dimensional image data set, and training is performed using the loss function. That is, at least one of the local direction of the human body, the bone length, and the relative position to the root joint point is added as a constraint condition to the loss function used for training, and the relationship between the joints is taken into account, thereby improving the estimation accuracy of the three-dimensional coordinates of each joint point including the joint points farther from the center, thereby improving the overall estimation accuracy of the three-dimensional human posture estimation model.

[0033] In some embodiments, the 3D human pose estimation model can be any 3D human pose estimation model capable of obtaining a 3D heatmap, for example, a 3D human pose estimation model based on a MeTRAbs deep neural network. The model uses a heatmap in meters to directly regress the position of the joints in meters, thereby having better robustness.

[0034] For example, the 3D human posture estimation model based on the MeTRAbs deep neural network includes a backbone network, a 1×1 convolutional network for full connection, a 3D soft-argmax network, a 2D soft-argmax network, and a module based on an absolute pose recovery algorithm in which the user converts the camera coordinate system into the real coordinate system. The specific structure can refer to the relevant technology and will not be described in detail here.

[0035] In some embodiments, joint points may also be referred to as key points or skeleton points.

[0036] The processing process of each unit of the training device 100 for the 3D human posture estimation model is described in detail below.

[0037] The extraction unit 101 inputs the training data including the three-dimensional image data set into the convolutional network for feature extraction to obtain a three-dimensional heat map.

[0038] In some embodiments, the three-dimensional image data set in the training data is a set of data including three-dimensional images of a human body as training images.

[0039] For example, the convolutional network in the extraction unit 101 includes a backbone network for extracting features and a 1×1 convolutional network for full connection.

[0040] In some embodiments, the training data may further include a two-dimensional image dataset, which is a collection of data including two-dimensional images of a human body as training images.

[0041] For example, the extraction unit 101 inputs the training data into the above-mentioned convolutional network to extract features and obtain a two-dimensional heat map (2D heatmap).

[0042] That is, the training data in the embodiment of the present application may include a three-dimensional image data set, or may include a three-dimensional image data set and a two-dimensional image data set. Accordingly, the extraction unit 101 may obtain a three-dimensional heat map, or may obtain a three-dimensional heat map and a two-dimensional heat map.

[0043] The first computing unit 102 obtains the three-dimensional coordinates of the human body joints according to the three-dimensional heat map. For example, the first computing unit 102 includes a 3D soft-argmax network, which determines the three-dimensional coordinates of the joints that are most likely to be human body joints among all the joints in the three-dimensional heat map. In addition, the first computing unit 102 can also use other networks with similar functions, not limited to the 3D soft-argmax network.

[0044] In some embodiments, when the extraction unit 101 also obtains a two-dimensional heat map, the first computing unit 102 obtains two-dimensional posture data based on the two-dimensional heat map. For example, the first computing unit 102 also includes a 2D soft-argmax network, which outputs two-dimensional posture data based on the two-dimensional heat map.

[0045] In some embodiments, the three-dimensional coordinates of the human body joint points obtained by the first computing unit 102 according to the three-dimensional heat map are three-dimensional coordinates in the camera coordinate system.

[0046] In some embodiments, Figure 1 As shown, the device may also include:

[0047] The conversion unit 106 obtains the three-dimensional coordinates of each human joint point in the real coordinate system according to the two-dimensional posture data, the three-dimensional coordinates of the human joint point and the camera intrinsic parameters (intrinsic, i.e. internal parameters).

[0048] For example, the conversion unit 106 is a module based on an absolute pose recovery algorithm, and its specific content can be referred to in related technologies, which will not be described in detail here.

[0049] The conversion unit 106 is an optional step. Figure 1 Indicated by a dotted box.

[0050] The second calculation unit 103 calculates at least one of the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human body joint point and the root joint point according to the three-dimensional coordinates of the human body joint point.

[0051] The second calculation unit 103 calculates at least one of the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human joint point and the root joint point, for example, calculates the predicted value of the local direction of the human body, or the predicted value of the bone length, or the predicted value of the relative position of the human body joint point and the root joint point, or the predicted value of the local direction of the human body and the predicted value of the bone length, or the predicted value of the bone length and the predicted value of the relative position of each human joint point and the root joint point, or the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human joint point and the root joint point.

[0052] In some embodiments, the predicted value refers to the value output in the model, that is, the second calculation unit 103 calculates the predicted value calculated based on the three-dimensional coordinates of the human body joint points obtained based on the three-dimensional heat map.

[0053] In some embodiments, the true value is a value calculated based on training data, for example, a value calculated based on a three-dimensional image data set, for example, the true value is calculated based on the three-dimensional coordinates of labeled human joints, and the calculation method can be the same as the method for calculating the corresponding predicted value.

[0054] In some embodiments, the truth value may be calculated by a computer, for example, by the second calculation unit 103 or another calculation unit.

[0055] In some embodiments, the specific type or types of predicted values ​​to be calculated can be determined according to actual needs. The more types of predicted values ​​that are calculated and used to determine the loss function, the greater the help in improving the accuracy of the model, and accordingly, the amount of calculation will also increase.

[0056] The specific process of calculating various prediction values ​​is exemplified below.

[0057] Regarding the calculation of the predicted value of the local direction of the human body, Figure 2 is a schematic diagram of the second computing unit 103 in Embodiment 1 of the present application. Figure 2 As shown, the second computing unit 103 includes:

[0058] A selection unit 201 selects at least one group of joint points from the joint points of the human body, each group of joint points includes three joint points; and

[0059] The third calculation unit 202 calculates the unit normal vector of the plane formed by the selected groups of joint points as the predicted value of the local direction of the human body.

[0060] In some embodiments, the selection unit 201 selects a set of joint points in each of the four limbs of the human body, so as to further improve the accuracy of the model.

[0061] Figure 3 This is a schematic diagram of selecting multiple groups of joint points to calculate the unit normal vector of the plane in Example 1 of the present application.

[0062] like Figure 3 As shown, the joints of the human body can be divided into joints of various parts such as the head, torso and limbs. For example, the joints of the head include the head and the top of the head; the joints of the torso include the neck, shoulders on both sides, pelvis, hips on both sides, and torso; the joints of the limbs include left and right elbows, left and right wrists, left and right knees, and left and right ankles.

[0063] In some embodiments, multiple groups of joint points can be selected as needed to form multiple planes. For example, a group of joint points can be selected from each of the four limbs, such as a group of joint points consisting of the left shoulder, left elbow and left wrist, a group of joint points consisting of the right shoulder, right elbow and right wrist, a group of joint points consisting of the left hip, left knee and left ankle, and a group of joint points consisting of the right hip, right knee and right ankle. The local direction of the human body is calculated based on the triangular planes formed by these four groups of joint points, which can further improve the estimation accuracy of each joint point away from the central joint point (such as the pelvic joint point), thereby further improving the accuracy of the model.

[0064] like Figure 3 As shown, a triangular plane formed by a group of joint points consisting of the left hip, left knee and left ankle is taken as an example to illustrate the method of calculating the unit normal vector of the plane.

[0065] For example, the unit normal vector of the plane is calculated according to the following formula (1):

[0066]

[0067] Where n represents the unit normal vector of the plane, Represents the vector from point A to point B, Represents the vector from point A to point C.

[0068] Regarding calculating the predicted value of the bone length, in some embodiments, the second calculation unit 103 calculates the distance between adjacent joint points in all or part of the human body joints according to the three-dimensional coordinates of the human body joints as the predicted value of the bone length.

[0069] In some embodiments, the second calculation unit 103 calculates the predicted value of the distance between adjacent joints in the joints of the human limbs. In this way, the estimation accuracy of each joint away from the central joint (such as the pelvic joint) can be further improved, thereby further improving the accuracy of the model.

[0070] Figure 4 1 is a schematic diagram of calculating the distances between adjacent joint points of the joint points of the human limbs according to Example 1 of the present application. Figure 4 As shown, the joint points of the limbs include left hip lhip, right hip rhip, left knee lkne, right knee rkne, left ankle lank, right ankle rank, left shoulder lsho, right shoulder rsho, left elbow lelb and right elbow relb, left wrist lwri and right wrist rwri, and the distances between the adjacent hip and knee, knee and ankle, shoulder and elbow, and elbow and wrist in the limbs are calculated as the predicted values ​​of bone length.

[0071] For example, the second calculation unit 103 calculates the distance between adjacent joint points according to the following formulas (2)-(5):

[0072] B up,1 =‖J sho -J elb ‖1 (2)

[0073] B up,2 =‖J elb -J wri ‖1 (3)

[0074] B low,1 =‖J hip -J kne ‖1 (4)

[0075] B low,2 =‖J kne -J ank ‖1 (5)

[0076] Among them, B up,1 Indicates the distance between the shoulder and the elbow in the upper limb, B up,2 Indicates the distance between the elbow and wrist in the upper limb, B low,1 Indicates the distance between the hip and the knee in the lower limb, B low,2 Indicates the distance between the knee and the ankle in the lower limb, J sho , J elb , J wri , J hip , J kne , J ank They represent the three-dimensional coordinates of the joints of the shoulder, elbow, wrist, hip, knee, and ankle.

[0077] In addition, Figure 4 In the calculation, the upper and lower limbs on the left and right sides are calculated separately.

[0078] Regarding calculating the predicted values ​​of the relative positions of the human body joints and the root joints, in some embodiments, the second calculation unit 103 calculates the predicted values ​​of the relative positions of other joints in the human body joints relative to the pelvic joint point serving as the root joint based on the three-dimensional coordinates of the human body joints.

[0079] Other joint points are, for example, joint points other than the root joint point among all joint points of the human body.

[0080] For example, the second calculation unit 103 calculates the relative positions of other joint points relative to the pelvic joint point as the root joint point according to the following formula (6):

[0081] P R =‖J i -J root ‖1 (6)

[0082] Among them, P R Indicates the relative position of other joints relative to the pelvic joint as the root joint, J i Represents the three-dimensional coordinates of other joint points, J root Represents the three-dimensional coordinates of the root joint point.

[0083] The determination unit 104 determines the loss function based on at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative positions of each human joint point and the root joint point, and the corresponding true value calculated according to the three-dimensional image data set, wherein the calculation method of the corresponding true value calculated according to the three-dimensional image data set is the same as the method of calculating the corresponding predicted value mentioned above, and will not be repeated here.

[0084] Figure 5 is a schematic diagram of the determination unit 104 of Example 1 of the present application. Figure 5 As shown, the determining unit 104 includes:

[0085] A first determining unit 501, which determines a first loss function according to a difference between a predicted value of a local direction of a human body and a corresponding true value calculated according to the three-dimensional image data set;

[0086] A second determining unit 502, which determines a second loss function according to a difference between a predicted value of the bone length and a corresponding true value calculated according to the three-dimensional image data set;

[0087] A third determining unit 503 determines a third loss function according to a difference between a predicted value of a relative position of each human joint point to a root joint point and a corresponding true value calculated according to the three-dimensional image data set; and

[0088] The fourth determining unit 504 determines a loss function, that is, a final loss function for training, according to the first loss function, the second loss function and the third loss function.

[0089] For example, the first determining unit 501 calculates the first loss function according to the following formula (7):

[0090]

[0091] Among them, L bpo represents the first loss function, represents the true value of the unit normal vector of the i-th triangle plane, Represents the predicted value of the unit normal vector of the i-th triangle plane, N represents the number of triangle planes, and N is a positive integer.

[0092] For example, the second determining unit 502 calculates the second loss function according to the following formulas (8)-(10):

[0093]

[0094]

[0095]

[0096] Among them, L bone represents the second loss function, L up Represents the second loss function corresponding to the upper limb, L low represents the second loss function corresponding to the lower limb, and Represent the true value and predicted value of the distance of the shoulder and elbow in the upper limb, respectively. and Represent the true value and predicted value of the distance between the elbow and wrist in the upper limb, respectively. and Represent the true value and predicted value of the distance between the hip and knee in the lower limbs, respectively. and Represent the true value and predicted value of the distance between the knee and ankle in the lower limbs respectively.

[0097] For example, the third determining unit 503 calculates the third loss function according to the following formula (11):

[0098]

[0099] Among them, L root-relative represents the third loss function, and Represent the true value and predicted value of the three-dimensional coordinates of other joint points respectively, and They represent the true value and predicted value of the three-dimensional coordinates of the root joint point respectively.

[0100] The fourth determining unit 504 determines a loss function, that is, a final loss function for training, according to the first loss function, the second loss function, and the third loss function.

[0101] In some embodiments, the fourth determination unit 504 uses the first loss function, the second loss function, and the third loss function as constraints, adds them to the original loss function of the model, and obtains the final loss function for training.

[0102] For example, for the 3D human pose estimation model based on MeTRAbs deep neural network, its original loss function includes L 3d .

[0103] For example, the fourth determining unit 504 determines the final loss function according to the following formula (12):

[0104] L=L 3d +ω1·L bpo +ω2·L bone +ω3·L root-relative (12)

[0105] Among them, L represents the final loss function, L 3d Represents the original loss function of the model, L bpo represents the first loss function, ω1 represents the first weight, L bone represents the second loss function, ω2 represents the second weight, L root-relative Represents the third loss function, and ω3 represents the third weight.

[0106] The specific values ​​of the first weight, the second weight and the third weight can be set according to actual needs.

[0107] In some embodiments, for the 3D human posture estimation model based on MeTRAbs deep neural network, its original loss function may also include L 2d , L 32d , L 23d About L 3d , L 2d , L 32d , L 23d For the specific content, please refer to the relevant technology and will not be described in detail here.

[0108] After determining the final loss function, the adjustment unit 105 adjusts the parameters of the 3D human posture estimation model based on the loss function, and repeats the above training process based on the model with adjusted parameters. When the convergence condition of the model is reached, the training is completed. The specific training process can refer to the relevant technology and will not be repeated here.

[0109] After the training is completed, for the trained 3D human body posture estimation model, inputting a 2D image of a human body and the camera intrinsic parameters corresponding to the 2D image can output 3D human body posture information with high estimation accuracy, for example, the 3D coordinates of the human body joints in the camera coordinate system. When the training device includes the conversion unit 106, the 3D coordinates of the human body joints in the real coordinate system can also be output.

[0110] In some embodiments, the trained model can be used in various fields of human posture detection, such as analysis of human behavior and posture in surveillance videos, and applications in the metaverse.

[0111] It can be seen from the above embodiments that when training a three-dimensional human posture estimation model, a loss function is determined based on at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative position of each human joint point to the root joint point and the corresponding true value calculated based on the three-dimensional image data set, and training is performed using the loss function. That is, at least one of the local direction of the human body, the bone length, and the relative position to the root joint point is added as a constraint condition to the loss function used for training, and the relationship between the joints is taken into account, thereby improving the estimation accuracy of the three-dimensional coordinates of each joint point including the joint points farther from the center, thereby improving the overall estimation accuracy of the three-dimensional human posture estimation model.

[0112] Example 2

[0113] The embodiment of the present application also provides an electronic device, Figure 6 A schematic diagram of an electronic device according to Embodiment 2 of the present application. Figure 6 As shown, the electronic device 600 includes a training device 601 for a three-dimensional human body posture estimation model. The structure and function of the training device 601 for a three-dimensional human body posture estimation model are the same as those of the training device 100 for a three-dimensional human body posture estimation model in Example 1. For specific contents, please refer to the records in Example 1 and will not be repeated here.

[0114] Figure 7 1 is a schematic block diagram of the system structure of the electronic device of Embodiment 2 of the present application. Figure 7As shown, the electronic device 700 may include a processor 701 and a memory 702; the memory 702 is coupled to the processor 701. This figure is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0115] In some embodiments, processor 701 includes at least one of a central processing unit (CPU) and a graphics processing unit (GPU).

[0116] like Figure 7 As shown, the electronic device 700 may further include: an input device 703 , a display 704 , and a power supply 705 .

[0117] In one embodiment, the function of the training device of the three-dimensional human posture estimation model described in Example 1 can be integrated into the processor 701. The processor 701 can be configured to: input the training data including the three-dimensional image data set into the convolution network for feature extraction to obtain a three-dimensional heat map; obtain the three-dimensional coordinates of the human joints according to the three-dimensional heat map; calculate at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative positions of each human joint point and the root joint point according to the three-dimensional coordinates of the human joint point; determine the loss function according to at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative positions of each human joint point and the root joint point and the corresponding true value calculated according to the three-dimensional image data set; and adjust the parameters of the three-dimensional human posture estimation model based on the loss function.

[0118] For example, based on the three-dimensional coordinates of the human body joints, the predicted value of the local direction of the human body is calculated, including: selecting at least one group of joint points among the human body joints, each group of joint points includes three joint points; and based on the plane formed by the selected groups of joint points, calculating the unit normal vector of the plane as the predicted value of the local direction of the human body.

[0119] For example, selecting at least one group of joint points from the joint points of the human body includes: selecting a group of joint points from each of the four limbs of the human body.

[0120] For example, calculating the predicted value of the bone length according to the three-dimensional coordinates of the human joint point includes: calculating the predicted value of the length of adjacent joint points in all or part of the human joint points according to the three-dimensional coordinates of the human joint point.

[0121] For example, the predicted values ​​of the lengths of adjacent joint points in the joint points of the human limbs are calculated.

[0122] For example, based on the three-dimensional coordinates of the human joint points, the predicted values ​​of the relative positions of each human joint point and the root joint point are calculated, including: based on the three-dimensional coordinates of the human joint points, the predicted values ​​of the relative positions of other joint points in the human joint point relative to the pelvic joint point which is the root joint point are calculated.

[0123] For example, a loss function is determined based on at least one of the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human joint point to the root joint point and the corresponding true value calculated according to the three-dimensional image data set, including: determining a first loss function based on the difference between the predicted value of the local direction of the human body and the corresponding true value calculated according to the three-dimensional image data set; determining a second loss function based on the difference between the predicted value of the bone length and the corresponding true value calculated according to the three-dimensional image data set; determining a third loss function based on the difference between the predicted value of the relative position of each human joint point to the root joint point and the corresponding true value calculated according to the three-dimensional image data set; and determining the loss function based on the first loss function, the second loss function and the third loss function.

[0124] For example, the training data also includes a two-dimensional image data set, and the processor 701 can also be configured to: input the training data into a convolutional network for feature extraction to obtain a two-dimensional heat map; obtain two-dimensional posture data based on the two-dimensional heat map; obtain the three-dimensional coordinates of each human joint point in the real coordinate system based on the two-dimensional posture data, the three-dimensional coordinates of the human joint points and the camera intrinsic parameters.

[0125] In another embodiment, the training device of the three-dimensional human body posture estimation model described in Example 1 can be configured separately from the processor 701. For example, the training device of the three-dimensional human body posture estimation model can be configured as a chip connected to the processor 701, and the functions of the training device of the three-dimensional human body posture estimation model can be realized through the control of the processor 701.

[0126] In this embodiment, the electronic device 700 does not necessarily include Figure 7 All parts shown in .

[0127] like Figure 7 As shown, the processor 701 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor devices and / or logic devices. The processor 701 receives inputs and controls the operations of various components of the electronic device 700 .

[0128] The memory 702 may be, for example, a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The processor 701 may execute the program stored in the memory 702 to implement information storage or processing. The functions of other components are similar to those of the prior art and are not described in detail herein. The components of the electronic device 700 may be implemented by dedicated hardware, firmware, software or a combination thereof without departing from the scope of the present application.

[0129] It can be seen from the above embodiments that when training a three-dimensional human posture estimation model, a loss function is determined based on at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative position of each human joint point to the root joint point and the corresponding true value calculated based on the three-dimensional image data set, and training is performed using the loss function. That is, at least one of the local direction of the human body, the bone length, and the relative position to the root joint point is added as a constraint condition to the loss function used for training, and the relationship between the joints is taken into account, thereby improving the estimation accuracy of the three-dimensional coordinates of each joint point including the joint points farther from the center, thereby improving the overall estimation accuracy of the three-dimensional human posture estimation model.

[0130] Example 3

[0131] The embodiment of the present application also provides a training method for a three-dimensional human posture estimation model, which corresponds to the training device for a three-dimensional human posture estimation model in Example 1. Figure 8 3 is a schematic diagram of a training method for a 3D human body posture estimation model according to Embodiment 3 of the present application. Figure 8 As shown, the method includes:

[0132] Step 801: input training data including a three-dimensional image data set into a convolutional network for feature extraction to obtain a three-dimensional heat map;

[0133] Step 802: Obtaining the three-dimensional coordinates of the human body joints according to the three-dimensional heat map;

[0134] Step 803: Calculate at least one of a predicted value of a local direction of the human body, a predicted value of a bone length, and a predicted value of a relative position of each human body joint point to a root joint point according to the three-dimensional coordinates of the human body joint point;

[0135] Step 804: determining a loss function according to at least one of the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human joint point to the root joint point and the corresponding true value calculated according to the three-dimensional image data set; and

[0136] Step 805: Based on the loss function, adjust the parameters of the 3D human posture estimation model.

[0137] In this embodiment, the specific implementation method of each of the above steps is the same as that described in Embodiment 1 and will not be repeated here.

[0138] It can be seen from the above embodiments that when training a three-dimensional human posture estimation model, a loss function is determined based on at least one of the predicted values ​​of the local direction of the human body, the predicted values ​​of the bone length, and the predicted values ​​of the relative position of each human joint point to the root joint point and the corresponding true value calculated based on the three-dimensional image data set, and training is performed using the loss function. That is, at least one of the local direction of the human body, the bone length, and the relative position to the root joint point is added as a constraint condition to the loss function used for training, and the relationship between the joints is taken into account, thereby improving the estimation accuracy of the three-dimensional coordinates of each joint point including the joint points farther from the center, thereby improving the overall estimation accuracy of the three-dimensional human posture estimation model.

[0139] An embodiment of the present application also provides a computer-readable program, wherein when the program is executed in a training device or electronic device for a three-dimensional human body posture estimation model, the program enables a computer to execute the training method of a three-dimensional human body posture estimation model described in Example 3 in the training device or electronic device for the three-dimensional human body posture estimation model.

[0140] An embodiment of the present application also provides a storage medium storing a computer-readable program, wherein the computer-readable program enables a computer to execute the training method of the three-dimensional human posture estimation model described in Example 3 in a training device or electronic device for the three-dimensional human posture estimation model.

[0141] The training device for the 3D human pose estimation model described in the embodiments of the present application or the training method for executing the 3D human pose estimation model in the electronic device can be directly embodied as hardware, a software module executed by a processor, or a combination of the two. For example, Figure 1 One or more of the functional block diagrams shown in and / or one or more combinations of the functional block diagrams may correspond to various software modules of the computer program flow or to various hardware modules. These software modules may correspond to Figure 8 These hardware modules can be implemented by solidifying these software modules using, for example, a field programmable gate array (FPGA).

[0142] The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The software module may be stored in a memory of a mobile terminal or in a memory card that can be inserted into the mobile terminal. For example, if the electronic device uses a large-capacity MEGA-SIM card or a large-capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large-capacity flash memory device.

[0143] against Figure 1 One or more of the functional block diagrams and / or one or more combinations of the functional block diagrams described herein may be implemented as a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or any appropriate combination thereof for performing the functions described in the present application. Figure 1 One or more of the described functional block diagrams and / or one or more combinations of the functional block diagrams may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in communication with a DSP, or any other such configuration.

[0144] The present application is described above in conjunction with specific implementation methods, but it should be clear to those skilled in the art that these descriptions are exemplary and are not intended to limit the scope of protection of the present application. Those skilled in the art can make various modifications and variations to the present application based on the spirit and principles of the present application, and these modifications and variations are also within the scope of the present application.

[0145] This application also discloses the following supplementary notes:

[0146] 1. A training method for a three-dimensional human posture estimation model, the method comprising:

[0147] Inputting training data including a three-dimensional image dataset into a convolutional network for feature extraction to obtain a three-dimensional heat map;

[0148] Obtaining three-dimensional coordinates of human body joints according to the three-dimensional heat map;

[0149] Calculate at least one of a predicted value of a local direction of a human body, a predicted value of a bone length, and a predicted value of a relative position of each human body joint point to a root joint point according to the three-dimensional coordinates of the human body joint points;

[0150] Determining a loss function based on at least one of the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human body joint point to the root joint point and the corresponding true value calculated based on the three-dimensional image data set; and

[0151] Based on the loss function, parameters of the three-dimensional human posture estimation model are adjusted.

[0152] 2. The training method according to Supplement 1, wherein the predicted value of the local direction of the human body is calculated according to the three-dimensional coordinates of the human body joint points, comprising:

[0153] Among the human body joint points, at least one group of joint points is selected, each group of joint points includes three joint points; and

[0154] According to the plane formed by each group of selected joint points, the unit normal vector of the plane is calculated as the predicted value of the local direction of the human body.

[0155] 3. The training method according to Supplement 2, wherein at least one group of joint points is selected from the joint points of the human body, including:

[0156] A group of joint points is selected in each of the four limbs of the human body.

[0157] 4. The training method according to Supplement 1, wherein the predicted value of the bone length is calculated according to the three-dimensional coordinates of the human joint points, comprising:

[0158] According to the three-dimensional coordinates of the human joints, the distances between adjacent joints in all or part of the human joints are calculated as the predicted value of the bone length.

[0159] 5. The training method according to Appendix 4, wherein:

[0160] Calculate the predicted values ​​of the distances between adjacent joint points in the joints of the human limbs.

[0161] 6. The training method according to Supplement 1, wherein the predicted value of the relative position of each human joint point and the root joint point is calculated according to the three-dimensional coordinates of the human joint point, comprising:

[0162] According to the three-dimensional coordinates of the human joints, the predicted values ​​of the relative positions of other joints in the human joints relative to the pelvic joint as the root joint are calculated.

[0163] 7. The training method according to Supplement 1, wherein the loss function is determined based on at least one of the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human joint point and the root joint point and the corresponding true value calculated based on the three-dimensional image data set, comprising:

[0164] Determining a first loss function according to a difference between a predicted value of a local direction of a human body and a corresponding true value calculated according to the three-dimensional image data set;

[0165] determining a second loss function based on a difference between a predicted value of the bone length and a corresponding true value calculated based on the three-dimensional image data set;

[0166] Determining a third loss function according to the difference between the predicted value of the relative position of each human joint point and the root joint point and the corresponding true value calculated according to the three-dimensional image data set; and

[0167] The loss function is determined according to the first loss function, the second loss function and the third loss function.

[0168] 8. The training method according to Supplement 1, wherein:

[0169] The training data also includes a two-dimensional image dataset,

[0170] The method further comprises:

[0171] Inputting the training data into a convolutional network for feature extraction to obtain a two-dimensional heat map;

[0172] Obtaining two-dimensional posture data according to the two-dimensional heat map;

[0173] The three-dimensional coordinates of each human joint point in the real coordinate system are obtained according to the two-dimensional posture data, the three-dimensional coordinates of the human joint points and the camera internal parameters.

Claims

1. A training device for a 3D human posture estimation model, It is characterized in that The device comprises: An extraction unit, which inputs the training data including the three-dimensional image data set into the convolutional network for feature extraction to obtain a three-dimensional heat map; A first calculation unit, which obtains the three-dimensional coordinates of the human body joint points according to the three-dimensional heat map; a second calculation unit, which calculates at least one of a predicted value of a local direction of a human body, a predicted value of a bone length, and a predicted value of a relative position of each human body joint point to a root joint point according to the three-dimensional coordinates of the human body joint point; a determination unit, which determines a loss function according to at least one of a predicted value of a local direction of a human body, a predicted value of a bone length, and a predicted value of a relative position of each human body joint point to a root joint point and a corresponding true value calculated according to the three-dimensional image data set; and An adjustment unit adjusts parameters of a three-dimensional human posture estimation model based on the loss function.

2. The training device according to claim 1, It is characterized in that The second computing unit comprises: A selection unit, which selects at least one group of joint points from the human body joint points, each group of joint points including three joint points; and The third calculation unit calculates the unit normal vector of the plane formed by the selected groups of joint points as the predicted value of the local direction of the human body.

3. The training device according to claim 2, It is characterized in that The selection unit selects a group of joint points in each of the four limbs of the human body.

4. The training device according to claim 1, It is characterized in that The second calculation unit calculates the distances between adjacent joint points in all or part of the human body joints according to the three-dimensional coordinates of the human body joints as the predicted value of the bone length.

5. The training device according to claim 4, It is characterized in that The second calculation unit calculates predicted values ​​of distances between adjacent joint points among the joint points of the human body's limbs.

6. The training device according to claim 1, It is characterized in that The second calculation unit calculates the predicted values ​​of the relative positions of other joint points in the human body relative to the pelvic joint point as the root joint point according to the three-dimensional coordinates of the human body joint points.

7. The training device according to claim 1, It is characterized in that The determining unit comprises: A first determining unit, which determines a first loss function according to a difference between a predicted value of a local direction of a human body and a corresponding true value calculated according to the three-dimensional image data set; a second determination unit, which determines a second loss function according to a difference between a predicted value of the bone length and a corresponding true value calculated according to the three-dimensional image data set; A third determining unit, which determines a third loss function according to a difference between a predicted value of a relative position of each human joint point to a root joint point and a corresponding true value calculated according to the three-dimensional image data set; and A fourth determining unit determines the loss function according to the first loss function, the second loss function and the third loss function.

8. The training device according to claim 1, It is characterized in that The training data also includes a two-dimensional image dataset, The extraction unit inputs the training data into a convolutional network to extract features and obtain a two-dimensional heat map; The first computing unit further obtains two-dimensional posture data according to the two-dimensional heat map. The device also includes: A conversion unit obtains two-dimensional posture data according to the two-dimensional heat map, and obtains the three-dimensional coordinates of each human joint point in a real coordinate system according to the two-dimensional posture data, the three-dimensional coordinates of the human joint points and the camera internal parameters.

9. An electronic device, It is characterized in that The electronic device comprises the training device according to claim 1.

10. A training method for a 3D human pose estimation model. It is characterized in that The method comprises: Inputting training data including a three-dimensional image dataset into a convolutional network for feature extraction to obtain a three-dimensional heat map; Obtaining three-dimensional coordinates of human body joints according to the three-dimensional heat map; Calculate at least one of a predicted value of a local direction of a human body, a predicted value of a bone length, and a predicted value of a relative position of each human body joint point to a root joint point according to the three-dimensional coordinates of the human body joint points; Determining a loss function based on at least one of the predicted value of the local direction of the human body, the predicted value of the bone length, and the predicted value of the relative position of each human body joint point to the root joint point and the corresponding true value calculated based on the three-dimensional image data set; and Based on the loss function, parameters of the three-dimensional human posture estimation model are adjusted.

Citation Information

Patent Citations

  • Human body posture feature extracting method based on 3D joint point coordinates

    CN106445138A

  • Geometric driving-based self-supervised human body 3D attitude estimation network training method

    CN111062326A

  • Three-dimensional human body posture estimation method and device, equipment and storage medium

    CN112949462A