Determination method of attitude image sample set and training method of attitude estimation model
By generating and expanding the pose image sample set, and using the initial and reference image samples to generate image enhancement samples, the problem of poor generalization of the human pose estimation model in the existing technology is solved, the accuracy and robustness of the pose estimation are improved, and the Online learning effects of action-based teaching.
Patent Information
- Application Number
- CN202311597350.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2024-10-18
AI Technical Summary
Existing Technology In online learning, the human posture estimation model based on deep learning algorithms has poor generalization, and it is difficult to accurately judge whether the student's movements are standard, especially when the video is short and the background is cluttered.
By generating a target pose image sample set, and using initial image samples and reference image samples to generate image enhancement samples, the sample set is expanded and the generalization and robustness of the model are improved.
It improves the prediction accuracy and generalization ability of the attitude estimation model, enhances the robustness of the model, and ensures the online learning effect of action teaching content.
Smart Images

Figure CN118799668A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method for determining a posture image sample set and a method for training a posture estimation model. Background Art
[0002] For special teaching content, such as sports-related action teaching content, the teacher cannot accurately judge whether the student's action is standard only through the camera, which greatly affects the effect of online learning of special teaching content. At present, posture estimation based on deep learning algorithms can be used to judge whether the student's action is standard, but due to the short video and cluttered video background, the generalization and accuracy of the model are poor. Summary of the invention
[0003] According to one aspect of the present disclosure, a method for determining a gesture image sample set is provided, the method comprising:
[0004] Based on a plurality of target posture image samples included in the target posture video, generating a target posture image sample set;
[0005] Acquire at least one frame of initial image samples and reference image samples corresponding to each frame of the initial image samples from the target posture image sample set;
[0006] Determine an image enhancement sample corresponding to the initial image sample of each frame based on the initial image sample of each frame and the reference image sample corresponding to the initial image sample of each frame;
[0007] The target pose image sample set is updated based on the image enhancement samples corresponding to the initial image samples of each frame.
[0008] According to another aspect of the present disclosure, a method for training a posture estimation model is provided, the method comprising:
[0009] Determine a target posture image sample set based on the above posture image sample set determination method;
[0010] A posture estimation model is trained based on the posture image sample set.
[0011] According to another aspect of the present disclosure, a device for determining a gesture image sample set is provided, the device comprising:
[0012] An acquisition module, configured to generate a target posture image sample set based on a plurality of target posture image samples included in the target posture video;
[0013] The module is also used to obtain at least one frame of initial image samples and reference image samples corresponding to each frame of the initial image samples from the target posture image sample set;
[0014] A determination module, configured to determine an image enhancement sample corresponding to the initial image sample of each frame based on the initial image sample of each frame and the reference image sample corresponding to the initial image sample of each frame;
[0015] An updating module is used to update the target pose image sample set based on the image enhancement samples corresponding to the initial image samples of each frame.
[0016] According to another aspect of the present disclosure, a training device for a posture estimation model is provided, the device comprising:
[0017] A determination module, used to determine a target posture image sample set based on the above posture image sample set determination method;
[0018] A training module is used to train a posture estimation model based on the posture image sample set.
[0019] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0020] processor; and,
[0021] A memory for storing programs;
[0022] The program includes instructions, which, when executed by the processor, cause the processor to perform the above method.
[0023] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the above method.
[0024] In one or more technical solutions provided in the embodiments of the present application, the image enhancement samples corresponding to each frame of the initial image samples are determined by the initial image samples and the reference image samples, and then the target posture image sample set is updated based on the image enhancement samples corresponding to each frame of the initial image samples, so that the number of samples in the target posture image sample set is expanded. When the target posture image sample set is input into the target posture estimation model, since the number of samples in the target posture sample set is large enough, the generalization ability of the trained target posture estimation model is high, and the accuracy of the target posture estimation model prediction is improved. At the same time, since the initial image samples and the reference image samples are obtained from multiple target posture image sample sets, and the multiple target posture image sample sets are obtained from the target posture video, it can be seen that the image sample content difference between the initial image sample and the reference image corresponding to the initial image sample is small. By fusing the image samples with small image content difference and the image samples of the reference image corresponding to the initial image sample, the target posture in the obtained image enhancement sample will change, but the image body will not change much. When the image enhancement sample is used to input the posture estimation model for training, the content of the model learning will be more specific, while increasing the training sample set of the posture estimation model, improving the generalization ability and accuracy of the model, the robustness of the model is also improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0026] Figure 1 A flowchart of a method for determining a gesture image sample set according to an exemplary embodiment of the present disclosure is shown;
[0027] Figure 2 A flowchart of a method for acquiring an initial image sample and a reference image sample according to an exemplary embodiment of the present disclosure is shown;
[0028] Figure 3 A flowchart of a method for training a posture estimation model according to an exemplary embodiment of the present disclosure is shown;
[0029] Figure 4 A flowchart of training a pose estimation model based on a pose image sample set according to an exemplary embodiment of the present disclosure is shown;
[0030] Figure 5 A flow chart showing a method for acquiring an initial depth feature and a thermodynamic depth feature corresponding to the initial depth feature according to an exemplary embodiment of the present disclosure;
[0031] Figure 6 A schematic block diagram of functional modules of a device for determining a gesture image sample set according to an exemplary embodiment of the present disclosure is shown;
[0032] Figure 7 A schematic block diagram of functional modules of a training device for a posture estimation model according to an exemplary embodiment of the present disclosure is shown;
[0033] Figure 8 A schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown;
[0034] Fig. 9 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0035] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0036] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0037] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0038] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0039] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0040] Before introducing the embodiments of the present disclosure, the following definitions are given for the terms involved in the embodiments of the present disclosure:
[0041] Model parameters refer to the optimal parameters obtained by constructing samples during model construction, which can be understood as the "internal parameters" of the model.
[0042] Convolutional Neural Network (CNN) is a type of feedforward neural network that includes convolution calculations and has a deep structure. It is one of the representative algorithms of deep learning.
[0043] The Grad-CAM method is a deep network visualization method based on gradient positioning. It explains the classification basis of the deep neural network model in the form of a heat map and makes category judgments based on the pixels of the image. Before the last global average pooling layer, the category activation map image is generated as a cumulative weighted activation, which is enlarged to the original image size.
[0044] Fine-tuning is a method of fine-tuning a pre-trained model to adapt it to a specific task or domain. In short, it uses the knowledge of the pre-trained model to provide a better starting point for our specific task.
[0045] There are many types of Gaussian filtering, including low-pass, band-pass and high-pass. The Gaussian filtering we usually refer to on images refers to Gaussian blur, which is a Gaussian low-pass filter that filters out the high-frequency components of the image (the image details) and retains the low-frequency components of the image (the image smooth area). Therefore, after the image is "Gaussian blurred", the image will become blurred. Gaussian blur is very effective in suppressing Gaussian noise (noise that obeys a normal distribution).
[0046] The Mixup data enhancement method is a data enhancement technology commonly used in deep learning. Its main idea is to randomly mix multiple data samples to generate new training data.
[0047] There are many intelligent teaching platforms at present, but most of them are aimed at regular teaching content (i.e. online courses for cultural courses, extracurricular tutoring courses, etc.), and are rarely used for some special teaching content, such as action teaching content. Action teaching content involves learning content related to sports such as dance and martial arts. Under the online teaching mode, due to factors such as the clarity of the student's camera and the shooting range of the camera, the teacher cannot accurately judge whether the student's movements are standard, which greatly affects the effect of online learning of action teaching content. At present, human posture estimation can be performed through online videos and fed back to teachers, which can play a great role in teachers' teaching.
[0048] The technical theories and algorithms related to human posture recognition are relatively mature. In current research, human posture estimation methods can be divided into two categories: traditional methods and deep learning methods. Among them, human posture estimation based on traditional methods cannot make full use of image information, resulting in the algorithm being subject to different appearances, perspectives, occlusions and inherent geometric ambiguity in the image. At the same time, due to the single structure of the component model, when the human posture changes greatly, the component model cannot accurately depict and express this deformation. There are multiple feasible solutions for the same data, that is, the result of posture estimation is not unique, resulting in a large gap between the traditional method and the deep learning method in terms of accuracy. Therefore, human posture estimation based on deep learning is the main research direction at present. However, because the video is too short, even if each frame is extracted to train the model, the generalization of the model is still poor, so the trained model will affect the process of extracting posture. At the same time, due to the cluttered background of the extracted picture, the chaotic background is likely to interfere with the human posture estimation during recognition.
[0049] In order to overcome the above problems, an exemplary embodiment of the present disclosure provides a method for determining a posture image sample set. By increasing the number of patterns that are basically close to the images in the sample set to expand the sample set, the generalization and accuracy of the model can be improved while the robustness of the model can be improved, so that the prediction results of the model can be predicted in the desired direction.
[0050] Figure 1 FIG. 4 is a flow chart showing a method for determining a gesture image sample set according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the method for determining a gesture image sample set provided by the exemplary embodiment of the present disclosure includes:
[0051] Step 110: Generate a target posture image sample set based on the multiple target posture image samples included in the target posture video. It should be understood that the target posture video of the exemplary embodiment of the present disclosure can be a target posture video of a person, a target posture video of an animal, a target posture video of a machine or a device, etc., and is not limited thereto. The multiple target posture image samples can include video frame images corresponding to part or all of the regions in the manually selected target posture video. It should be noted here that when the target posture video is a target posture video of a student, the multiple target posture images can include multiple posture images of the same target student.
[0052] In practical applications, when the target posture video is a student's target posture video, a video segment containing the student can be selected from the student's target posture video by manual selection, and the video segment containing the student is processed according to a preset frame rate to obtain multiple video frames containing the student, and the multiple video frames containing the student are used as the target posture image sample set. When there are multiple video segments containing the student, multiple target posture image sample sets can be processed simultaneously.
[0053] Step 120: Obtain at least one frame of initial image samples and reference image samples corresponding to each frame of initial image samples from the target pose image sample set. It should be understood that the initial image samples can be obtained from the target pose image sample set by manual random selection. The reference image samples corresponding to each frame of initial image samples can be selected using a random function. The random function here can be a Boolean function, a rand function, etc., but is not limited thereto.
[0054] In practical applications, a frame of initial image samples can be randomly obtained from the target pose image sample set by manual methods, or multiple frames of initial image samples can be obtained and calculated simultaneously. When there are multiple target pose image sample sets, one can be randomly selected from multiple target pose image sample sets for processing to update the target pose image sample set, or multiple can be randomly selected from multiple target pose image sample sets for processing to update the target pose image sample set.
[0055] Step 130: Determine the image enhancement samples corresponding to each frame of the initial image samples based on the initial image samples of each frame and the reference image samples corresponding to each frame of the initial image samples. The image enhancement samples are obtained by fusion through a data enhancement method, and the data enhancement method here may include data enhancement methods such as Mixup data enhancement method and AlignMix data enhancement method, but is not limited to this. By using initial image samples and reference image samples of the same category and with roughly consistent movements before and after to determine the image enhancement samples corresponding to each frame of the initial image samples, the fused image enhancement samples will not have image confusion and will not introduce excessive overhead, so that the processing effect of the posture estimation model is better and the accuracy is higher.
[0056] When the Mixup data enhancement method is used to obtain image enhancement samples, Mixup can be used to perform linear interpolation on the first N frames or the last N frames (a total of N+1 frames, including the originally selected initial image sample) of each frame of the initial image sample, and the range of the linear interpolation is determined by a random function as the first N frames or the last N frames, as well as the number of frames of reference image samples corresponding to each frame of the initial image sample.
[0057] Step 140: Update the target pose image sample set based on the image enhancement samples corresponding to each frame of the initial image sample, so as to expand the number of the target pose image sample set and improve the generalization of the pose model trained using the target pose image sample set.
[0058] As can be seen from the above, in one or more technical solutions provided in the embodiments of the present application, the image enhancement samples corresponding to each frame of the initial image samples are determined by the initial image samples and the reference image samples, and then the target pose image sample set is updated based on the image enhancement samples corresponding to each frame of the initial image samples, so that the number of samples in the target pose image sample set is expanded. When the target pose image sample set is input into the target pose estimation model, since the number of samples in the target pose sample set is large enough, the generalization ability of the trained target pose estimation model is high, and the accuracy of the prediction of the target pose estimation model is improved. At the same time, since the initial image samples and the reference image samples are obtained from multiple target posture image sample sets, and the multiple target posture image sample sets are obtained from target posture videos, it can be seen that the image samples of the initial image samples and the reference images corresponding to the initial image samples have little difference in content. By fusing the initial image samples with small image content difference and the image samples of the reference images corresponding to the initial image samples, the target posture in the obtained image enhancement samples will change, but the image subject will not change much. When the image enhancement samples are used as input into the posture estimation model for training, the content learned by the model will be more specific. While increasing the training sample set of the posture estimation model, improving the generalization ability and accuracy of the model, the robustness of the model is also improved.
[0059] As a possible implementation, Figure 2 FIG. 4 is a flow chart showing a method for obtaining an initial image sample and a reference image sample according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the obtaining of at least one frame of initial image samples and reference image samples corresponding to each frame of initial image samples from the target posture image sample set may include:
[0060] Step 210: Randomly obtain the current initial image sample and the current reference image sample corresponding to the current initial image sample from the target pose image sample set. It should be understood that the method for obtaining the current initial image sample and the method for obtaining the current reference image sample corresponding to the current initial image sample can refer to the relevant description of the method for obtaining the initial image sample and the current reference image sample corresponding to the initial image sample in the previous text, and will not be repeated here.
[0061] Step 220: After the target pose image sample set is updated based on the image enhancement sample corresponding to the current initial image sample, the next initial image sample and the next reference image sample corresponding to the next initial image sample are randomly obtained from the target pose image sample set. It should be understood that the current initial image sample is the first initial image sample, the next initial image sample can be the second initial image sample, or the third initial image sample, etc., and the number of initial image samples can be determined according to the number of target pose estimation sample sets to be expanded.
[0062] Step 230: Update the current initial image sample based on the next initial image sample, and update the current reference image sample based on the next reference image sample corresponding to the next initial image sample.
[0063] As a possible implementation, in order to improve the training efficiency of the model, at least one frame of initial image samples and the reference image samples corresponding to each frame of initial image samples may be deleted from the updated target pose sample set. At this time, the target pose image sample set may include the target pose image sample from which at least one frame of initial image samples and the reference image samples corresponding to each frame of initial image samples are deleted, and at least one image enhancement sample.
[0064] As a possible implementation method, considering the system load and operating cost, multiple target pose image samples can be deleted from the updated target pose sample set, and only multiple image enhancement samples can be retained as new target pose estimation sample sets to retrain the target pose estimation model, thereby improving the training efficiency of the model. Since the target pose estimation model is trained multiple times using multiple different lightweight sample sets, the prediction results of the trained model are more accurate and the understanding of the samples is more profound.
[0065] As a possible implementation method, when a frame of initial image samples is randomly obtained from the target posture image sample set by artificial means, a random function, such as a Boolean function, can be used to select the frame number corresponding to the reference image sample corresponding to the initial image sample of the frame from the frame number, with the frame number of the initial image sample as the center. For example, by setting the Boolean function parameter to be limited to 0 / 1, if False is returned, it is considered that the frame number selection range corresponding to the reference image sample corresponding to the initial image sample of the frame is the first N frames of the frame number of the initial image sample of the frame, and if True is returned, it is considered that the frame number selection range corresponding to the reference image sample corresponding to the initial image sample of the frame is the last N frames of the frame number of the initial image sample of the frame, so as to improve the randomness of the scheme. After determining the frame number selection range corresponding to the reference image sample corresponding to the initial image sample of the frame, a random function, such as a rand function, can be used to randomly select the reference image sample corresponding to the initial image sample of the frame from the first N frames of the frame number of the initial image sample of the frame or the last N frames of the frame number of the initial image sample of the frame. By randomly selecting the above multiple random functions, the randomness of the sample can be improved, thereby improving the generalization and robustness of the model training. It should be understood that N here can be greater than or equal to 0 and less than or equal to the preset threshold, and the value of N should not be too large to ensure that the difference between the fused initial image sample and the reference image sample is not large, which is convenient for the model to understand and ensures that the label difference of the fused sample is small. Therefore, the difference between the frame number of the initial image sample and the frame number of the reference image sample is greater than 0 and less than the difference threshold. The difference threshold can be selected according to the actual application situation and is not limited here.
[0066] As a possible implementation, the number of reference image samples corresponding to each frame of initial image samples is greater than or equal to 1 and less than or equal to the sample threshold. It should be understood that the sample threshold here can be selected according to actual application conditions and is not limited here.
[0067] Since the initial image samples and the reference image samples are all derived from the same target pose estimation sample set, and the difference between the frame number of the reference image sample corresponding to each frame of the initial image sample and the frame number of the initial image sample is greater than 0 and less than the difference threshold, it can be seen that the picture change between the reference image sample corresponding to each frame of the initial image sample and the initial image sample is small. Therefore, during fusion, a frame of reference image samples that meets the requirements can be selected to be fused with the corresponding initial image sample to generate an image enhancement sample, or multiple frames of reference image samples that meet the requirements can be selected to be fused with the corresponding initial image sample to generate an image enhancement sample.
[0068] When a frame of reference image samples that meet the requirements are selected to be fused with the corresponding initial image samples to generate an image enhancement sample, a frame of reference image samples can be selected to be fused with the corresponding initial image samples according to the random function described above.
[0069] When multiple frames of reference image samples that meet the requirements are selected and fused with the corresponding initial image samples to generate an image enhancement sample, that is, when the number of reference image samples corresponding to each frame of the initial image sample is multiple, the reference image samples corresponding to each frame of the initial image sample are determined in the following ways:
[0070] The first type: the frame numbers of multiple reference image samples are all greater than the frame numbers of the corresponding initial image samples. In this case, the random function described above can be used to determine that the selection range of the frame numbers corresponding to the reference image samples is the N frames after the current initial image sample, and then all images that meet the selection range can be used as reference image samples to be fused with the corresponding initial image samples. Alternatively, the random function described above can be used to select multiple reference image samples from the multiple frames of target posture image samples included in the selection range and fuse them with the corresponding initial image samples.
[0071] The second type: the frame numbers of multiple reference image samples are all smaller than the frame numbers of the corresponding initial image samples. In this case, the random function described above can be used to determine that the selection range of the frame numbers corresponding to the reference image samples is the first N frames of the current initial image sample, and then all images that meet the selection range can be used as reference image samples to be fused with the corresponding initial image samples. Alternatively, the random function described above can be used to select multiple reference image samples from the multiple frames of target posture image samples included in the selection range to be fused with the corresponding initial image samples.
[0072] The third type: the frame numbers of some of the multiple reference image samples are greater than the frame numbers of the corresponding initial image samples, and the frame numbers of the other reference image samples are less than the frame numbers of the corresponding initial image samples. In this case, the random function described above can be used to randomly select target posture image samples from the N frames before and after the current initial image sample as multiple reference image samples, and fuse them with the corresponding initial image samples.
[0073] As a possible implementation method, the method for determining the above-mentioned posture image sample set also includes: performing denoising processing on the image enhancement samples corresponding to the initial image samples of each frame to improve the smoothness of the image enhancement samples corresponding to the initial image samples of each frame and reduce the interference of the background on the posture estimation model.
[0074] The exemplary embodiment of the present disclosure also provides a training method for a posture estimation model, which is used to train the posture estimation model based on the above-mentioned target posture sample set, and use the trained posture estimation model to perform posture estimation. Since the number of sample sets used in the posture estimation model during training is sufficient and belongs to the same type of image, the trained posture estimation model has good generalization and robustness. When the trained posture estimation model is used for posture estimation, the posture feature map obtained is closer to the actual posture feature and the error is smaller.
[0075] Figure 3 FIG. 4 is a flow chart showing a method for training a posture estimation model according to an exemplary embodiment of the present disclosure. Figure 3 As shown, the training method of the posture estimation model may include:
[0076] Step 310: Determine a target pose image sample set based on the pose image sample set determination method of the exemplary embodiment of the present disclosure. The method for determining the target pose image sample set can be referred to the above related description, which will not be repeated here.
[0077] Step 320: training a pose estimation model based on the pose image sample set. For example, multiple pose image sample sets may be input into the pose estimation model in batches, and the pose estimation model may be updated based on each pose image sample set until the pose estimation model converges.
[0078] Figure 4 FIG. 4 shows a flow chart of training a posture estimation model based on a posture image sample set according to an exemplary embodiment of the present disclosure. Figure 4 As shown, the above-mentioned posture estimation model based on the posture image sample set training may include:
[0079] Step 410: Obtaining, based on the posture estimation model, an initial depth feature corresponding to each target posture image sample in the target posture image sample set and a thermal depth feature corresponding to the initial depth feature.
[0080] Step 420: If the similarity between the initial depth feature and the thermal depth feature corresponding to the initial depth feature satisfies the similarity screening condition, the initial depth feature is determined to be the target depth feature, and the thermal depth feature corresponding to the initial depth feature is determined to be the target thermal feature.
[0081] In practical applications, the similarity between the initial depth feature and the thermal depth feature corresponding to the initial depth feature can be determined based on the initial depth feature and the thermal depth feature corresponding to the initial depth feature. Here, similarity comparison methods such as edit distance, cosine similarity, Euclidean distance, and longest common subsequence can be used to compare each initial depth feature and the thermal depth feature corresponding to each initial depth feature, thereby obtaining the similarity between each initial depth feature and the thermal depth feature corresponding to the initial depth feature.
[0082] Step 430: Determine the target posture feature prediction result based on the target depth feature and the target thermal feature corresponding to the target depth feature.
[0083] Step 440: Determine whether the posture estimation model converges based on the multiple target posture feature prediction results and the posture labels corresponding to the multiple target posture feature prediction results.
[0084] Step 450: If the posture estimation model converges, it is determined that the posture estimation model training is completed; otherwise, the posture estimation model is updated based on the multiple target posture feature prediction results and the posture labels corresponding to the multiple target posture feature prediction results.
[0085] In practical applications, if the loss determined based on the prediction results of multiple target posture features and the posture labels corresponding to the prediction results of multiple target posture features does not meet the convergence conditions, the backbone network parameters are updated based on the prediction results of multiple target posture features and the posture labels corresponding to the prediction results of multiple target posture features. The posture estimation model is trained multiple times using multiple enhanced target posture image sample sets, and when the loss determined based on multiple posture prediction features and the posture feature labels corresponding to each posture prediction feature does not meet the convergence conditions, the backbone network parameters are updated in reverse. After multiple training updates, the posture estimation model obtained has higher prediction accuracy, higher generalization, and higher robustness.
[0086] In some alternatives, Figure 5 FIG. 1 is a flow chart showing a method for obtaining an initial depth feature and a thermodynamic depth feature corresponding to the initial depth feature according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the above-mentioned posture estimation model may include a backbone network and a lightweight network, and the image processing result output by the backbone network is input into the lightweight network for classification after feature processing. The initial depth feature corresponding to each target posture image sample in the target posture image sample set and the thermal depth feature corresponding to the initial depth feature are obtained based on the posture estimation model, which may include:
[0087] Step 510: Input the target pose image sample set into the backbone network to obtain multiple initial features. It should be understood that the backbone network here can be a VGG network, a ResNet network, a DenseNet network, a DarkNet network, a CSP network, a FPN network or a PAN network, etc., but is not limited thereto. The backbone network is a trained backbone network. The initial features of each target pose image sample in the target pose image sample set are obtained by inputting the target pose image sample set into the backbone network.
[0088] In practical applications, multiple initial features can be obtained by first performing image preprocessing on each target pose image sample included in the target pose image sample set input into the backbone network, and then inputting the preprocessed multiple target pose image samples into the backbone network for forward reasoning. The image preprocessing of the exemplary embodiment of the present disclosure may include at least one of the following image preprocessing methods:
[0089] The first method is to scale the target posture image samples included in the target posture image sample set input into the above backbone network to an input image size suitable for the backbone network. For example, the target posture image samples included in the target posture image sample set input into the above backbone network can be scaled and processed into rectangular images such as squares or rectangles. The specific size can be determined according to actual conditions.
[0090] The second method is to standardize the target posture image samples included in the target posture image sample set input into the backbone network. For example, the target posture image samples included in the target posture image sample set input into the backbone network are centralized by removing the mean. According to the convex optimization theory and the knowledge related to the probability distribution of data, the data centralization conforms to the law of data distribution, and it is easier to obtain the generalization effect after training. The image data can also be normalized, for example, the range of the pixel values of the target posture image samples included in the target posture image sample set input into the backbone network is converted from 0 to 255 to 0 to 1, so as to facilitate subsequent processing.
[0091] Step 520: Based on each initial feature, determine the thermal feature corresponding to each initial feature. At this time, each initial feature can be processed using a CAM method, a Grad-Cam method, etc. to obtain the thermal feature corresponding to each initial feature. By increasing the thermal feature corresponding to each initial feature, the model can be more focused on the current sample features during the training process.
[0092] When processing each initial feature with the Grad-Cam method, the weight of each channel can be calculated by global average pooling of the gradient of the last convolutional layer of the backbone network. These weights are then used to weight the initial features to generate thermal features.
[0093] Step 530: Input each initial feature and the thermal feature corresponding to each initial feature into the lightweight network to obtain the initial depth feature corresponding to each target pose image sample and the thermal depth feature corresponding to each initial depth feature. By using the lightweight network, more features of the target pose image samples included in the target pose image sample set input into the above backbone network can be extracted.
[0094] In practical applications, the above-mentioned multiple initial features may include features of specific human body parts. By inputting multiple initial features into a lightweight network, multiple initial deep features are obtained, and multiple thermal features are input into a lightweight network to obtain multiple thermal deep features.
[0095] When there are multiple lightweight networks, the multiple lightweight networks can be the same lightweight network or different lightweight networks. The lightweight network can be a CNN neural network or other lightweight neural networks, which is not limited here.
[0096] When there are multiple lightweight networks, multiple initial features output by the backbone network can be input into the lightweight network to obtain multiple initial refined features, and the thermal features corresponding to each initial feature determined based on each initial feature can be input into the lightweight network to obtain multiple thermal refined features. Then, multiple initial features are updated based on multiple initial refined features, that is, multiple initial refined features are input into the next lightweight network as new sample sets of the lightweight network, and multiple thermal features are updated based on multiple thermal refined features, that is, multiple thermal refined features are input into the next lightweight network as new sample sets of the lightweight network, and so on, the output results of each lightweight network are input into the next lightweight network as new sample sets, so that the number of multiple target initial features and multiple target thermal features finally extracted is sufficient to improve the prediction accuracy of the model.
[0097] When the number of updates is greater than or equal to a preset threshold, the multiple initial refinement features are determined to be multiple initial depth features, and the multiple thermal refinement features are determined to be multiple thermal depth features. It should be understood that the preset threshold here can be determined according to actual conditions such as system load, and is not limited here.
[0098] Exemplarily, the preset threshold may be 5 times, and the lightweight model may be the same lightweight model. At this time, when the output result of the lightweight model for the fourth time is input into the lightweight model as a new sample set, after the output result of the lightweight model is obtained, the multiple initial refined features included in the output result of the lightweight model are the multiple initial depth features, and the multiple thermal refined features included are the multiple thermal depth features.
[0099] The similarity screening condition may include: a similarity threshold between a plurality of initial depth features and a thermal depth feature corresponding to each initial depth feature.
[0100] The above-mentioned similarity screening conditions may also include: sorting multiple initial depth features and multiple thermal depth features in order from large to small according to the similarity between the multiple initial depth features and the thermal depth features corresponding to each initial depth feature, the target depth feature is the kth initial depth feature, k is greater than 0 and less than or equal to M, M represents an integer less than the total number of the multiple initial depth features, and the target thermal feature is the hth thermal depth feature, h is greater than 0 and less than or equal to N, and N represents an integer less than the total number of the multiple target thermal features.
[0101] When the above-mentioned similarity screening conditions include that the similarity between multiple initial depth features and the thermal depth features corresponding to each initial depth feature is greater than the similarity threshold, the threshold involved in the exemplary embodiment of the present disclosure may be a range value or a point value. Here, the similarity threshold is used as an example for explanation, and other thresholds can refer to the similarity threshold and will not be repeated. For example: Assuming that the similarity threshold is 97%, the similarity between the first initial depth feature and the thermal depth feature corresponding to the initial depth feature is 99%, and the similarity between the second initial depth feature and the thermal depth feature corresponding to the initial depth feature is 95%. It can be seen that the similarity between the first initial depth feature and the thermal depth feature corresponding to the initial depth feature is greater than the similarity threshold, and the similarity between the second initial depth feature and the thermal depth feature corresponding to the initial depth feature is less than the similarity threshold, thereby determining that the first initial depth feature and the thermal depth feature corresponding to the initial depth feature are the target depth features. Filter out multiple target depth features from the multiple initial depth features in turn; then filter out multiple target thermal features from the thermal depth features corresponding to the multiple initial depth features according to the above method, and determine the target posture feature prediction results based on the multiple target depth features and the target thermal features corresponding to the target depth features, solve the loss function based on the multiple target posture feature prediction results and the posture labels corresponding to the multiple target posture feature prediction results, and update the backbone network parameters in reverse until the model converges.
[0102] When the above similarity screening condition includes sorting multiple initial depth features and multiple thermal depth features in order from large to small according to the similarity between multiple initial depth features and the thermal depth features corresponding to each initial depth feature, the target depth feature is the kth target initial feature. Here, it is substantially limited that the target depth feature needs to be sorted in the first M initial depth features. For example: sort the similarity between multiple initial depth features and the thermal depth features corresponding to each initial depth feature in order from large to small, set the feature similarity of the first initial depth feature ranked in the first position to be 100%, and the feature similarity of the Mth initial depth feature ranked in the Mth position to be 95%, take the first M initial depth features with similarity greater than or equal to 95% as the target depth feature, and similarly, obtain the first N thermal depth features with similarity greater than or equal to 95% as the target thermal feature, and determine the target posture feature prediction result based on the multiple target depth features and the target thermal feature corresponding to the target depth feature, solve the loss function based on the multiple target posture feature prediction results and the posture labels corresponding to the multiple target posture feature prediction results, and update the backbone network parameters in reverse until the model converges.
[0103] When the similarity screening condition includes a combination of the above two conditions, not only the initial depth features ranked in the top M and the top N thermal depth features should be selected, but also it should be determined that the similarity between the initial depth features ranked in the top M and the thermal depth features ranked in the top N is greater than a preset value. Continuing with the previous example, since the feature similarity of the initial depth features is required to be greater than 97%, and there are some initial depth features with similarity less than 97% among the similarities of the top M initial depth features, it is not possible to directly determine the initial depth features ranked in the top M as the target features. It is necessary to remove some initial depth features with feature similarity less than 97% among the top M initial depth features. Suppose x initial depth features are removed, then the initial depth features ranked in the top Mx are determined to be the target depth features. Similarly, the thermal depth features corresponding to the top Ny initial depth features can be determined as the target thermal features, and based on the multiple target depth features and the target thermal features corresponding to the target depth features, the target posture feature prediction results are determined, the loss function is solved based on the multiple target posture feature prediction results and the posture labels corresponding to the multiple target posture feature prediction results, and the backbone network parameters are updated in reverse until the model converges.
[0104] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the server. It is understandable that, in order to implement the above functions, the server includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0105] The embodiments of the present disclosure may divide the server into functional units according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0106] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a device for determining a gesture image sample set, and the device for determining a gesture image sample set may be a server or a chip applied to a server. Figure 6 FIG. 1 is a schematic block diagram showing the functional modules of a device for determining a gesture image sample set according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the apparatus 600 for determining the posture image sample set includes:
[0107] The acquisition module 601 is used to generate a target posture image sample set based on a plurality of target posture image samples included in the target posture video; the acquisition module 601 is also used to acquire at least one frame of initial image samples and a reference image sample corresponding to each frame of the initial image sample from the target posture image sample set;
[0108] A determination module 602 is used to determine an image enhancement sample corresponding to each frame of the initial image sample based on each frame of the initial image sample and a reference image sample corresponding to each frame of the initial image sample;
[0109] The updating module 603 is used to update the target pose image sample set based on the image enhancement samples corresponding to each frame of the initial image samples.
[0110] As a possible implementation, the acquisition module 601 is further used to randomly acquire a current initial image sample and a current reference image sample corresponding to the current initial image sample from the target pose image sample set; after the target pose image sample set is updated based on the image enhancement sample corresponding to the current initial image sample, randomly acquire a next initial image sample and a next reference image sample corresponding to the next initial image sample from the target pose image sample set;
[0111] The updating module 603 is further configured to update the current initial image sample based on the next initial image sample, and to update the current reference image sample based on the next reference image sample corresponding to the next initial image sample.
[0112] As a possible implementation method, the above-mentioned posture image sample set determination device 600 also includes a deletion module 604, which is used to delete multiple target posture image samples from the updated target posture sample set, and / or the deletion module 604 is also used to delete at least one frame of initial image samples and the reference image samples corresponding to each frame of initial image samples from the updated target posture sample set.
[0113] As a possible implementation manner, the difference between the frame number of the initial image sample and the frame number of the reference image sample is greater than 0 and less than a difference threshold.
[0114] As a possible implementation manner, the number of reference image samples corresponding to the initial image samples of each frame is greater than or equal to 1 and less than or equal to a sample threshold.
[0115] As a possible implementation manner, when the number of reference image samples corresponding to each frame of the initial image sample is multiple, the frame numbers of the multiple reference image samples are all greater than or all less than the frame number of the corresponding initial image sample.
[0116] In some optional embodiments, when there are multiple reference image samples corresponding to each frame of initial image samples, the frame numbers of some of the multiple reference image samples are greater than the frame numbers of the corresponding initial image samples, and the frame numbers of another part of the reference image samples are smaller than the frame numbers of the corresponding initial image samples.
[0117] As a possible implementation manner, the updating module 603 is further configured to perform noise reduction processing on the image enhancement samples corresponding to each frame of the initial image samples.
[0118] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a training device for a posture estimation model, and the training device for the posture estimation model may be a server or a chip applied to the server. Figure 7 A schematic block diagram of functional modules of a training device for a posture estimation model according to an exemplary embodiment of the present disclosure is shown.
[0119] like Figure 7 As shown, the training device 700 of the posture estimation model includes:
[0120] A determination module 701 is used to determine a target posture image sample set based on the posture image sample set determination method of the exemplary embodiment of the present disclosure;
[0121] The training module 702 is used to train the posture estimation model based on the posture image sample set.
[0122] As a possible implementation, the training device 700 of the posture estimation model further includes an acquisition module 703, which is used to obtain, based on the posture estimation model, an initial depth feature corresponding to each target posture image sample in the target posture image sample set and a thermal depth feature corresponding to the initial depth feature;
[0123] The determination module 701 is used to determine that the initial depth feature is the target depth feature and the thermal depth feature corresponding to the initial depth feature is the target thermal feature if the similarity between the initial depth feature and the thermal depth feature corresponding to the initial depth feature meets the similarity screening condition; based on the target depth feature and the target thermal feature corresponding to the target depth feature, determine the target posture feature prediction result;
[0124] The determination module 701 is also used to determine whether the posture estimation model converges based on the prediction results of multiple target posture features and the posture labels corresponding to the prediction results of multiple target posture features; if the posture estimation model converges, it is determined that the posture estimation model training is completed; otherwise, the posture estimation model is updated based on the prediction results of multiple target posture features and the posture labels corresponding to the prediction results of multiple target posture features.
[0125] In some optional embodiments, the acquisition module 703 is further used to input a target posture image sample set into the backbone network to obtain a plurality of initial features;
[0126] The determination module 701 is also used to determine the thermal characteristics corresponding to each initial characteristic based on each initial characteristic;
[0127] The acquisition module 703 is also used to input each initial feature and the thermal feature corresponding to each initial feature into the lightweight network to obtain the initial depth feature corresponding to each target posture image sample and the thermal depth feature corresponding to each initial depth feature.
[0128] In some optional embodiments, the similarity screening condition may include: the similarity between the multiple initial depth features and the thermal depth feature corresponding to each initial depth feature is greater than a similarity threshold; and / or,
[0129] According to the order of similarity between the multiple initial depth features and the thermal depth features corresponding to each initial depth feature, the multiple initial depth features and the multiple thermal depth features are sorted from large to small. The target depth feature is the kth initial depth feature, k is greater than 0 and less than or equal to M, M represents an integer less than the total number of the multiple initial depth features, and the target thermal feature is the hth thermal depth feature, h is greater than 0 and less than or equal to N, and N represents an integer less than the total number of the multiple target thermal features.
[0130] Figure 8 Schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown. Figure 8 As shown, the chip 800 includes one or more (including two) processors 801 and a communication interface 802. The communication interface 802 can support the server to perform the data sending and receiving steps in the above image processing method, and the processor 801 can support the server to perform the data processing steps in the above image processing method.
[0131] Optional, such as Figure 8 As shown, the chip 800 also includes a memory 803, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).
[0132] In some embodiments, Figure 8 As shown, the processor 801 performs corresponding operations by calling the operation instructions stored in the memory (the operation instructions may be stored in the operating system). The processor 801 controls the processing operations of any one of the terminal devices, and the processor may also be called a central processing unit (CPU). The memory 803 may include a read-only memory and a random access memory, and provides instructions and data to the processor 801. A portion of the memory 803 may also include NVRAM. For example, in an application, the memory, the communication interface, and the memory are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, in Figure 8 Various buses are labeled as bus system 804 .
[0133] The method disclosed in the above-mentioned embodiment of the present disclosure can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiment of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.
[0134] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.
[0135] Exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method according to an embodiment of the present disclosure.
[0136] The exemplary embodiments of the present disclosure also provide a computer program product, including a computer program, wherein the computer program is used to cause the computer to perform the method according to the embodiments of the present disclosure when executed by a processor of the computer.
[0137] refer to Fig. 9, a block diagram of an electronic device 900 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0138] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0139] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 908 may include, but is not limited to, a disk, an optical disk. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0140] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the method of the exemplary embodiment of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. In some embodiments, the computing unit 901 may be configured to perform the method of the exemplary embodiment of the present disclosure in any other appropriate manner (e.g., by means of firmware).
[0141] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0142] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0143] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0144] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0145] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0146] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0147] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).
[0148] Although the present disclosure has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely exemplary illustrations of the present disclosure as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A method for determining a posture image sample set, characterized in that: The method comprises: Based on a plurality of target posture image samples included in the target posture video, generating a target posture image sample set; Acquire at least one frame of initial image samples and reference image samples corresponding to each frame of the initial image samples from the target posture image sample set; Determine an image enhancement sample corresponding to the initial image sample of each frame based on the initial image sample of each frame and the reference image sample corresponding to the initial image sample of each frame; The target pose image sample set is updated based on the image enhancement samples corresponding to the initial image samples of each frame.
2. The method according to claim 1, characterized in that The step of acquiring at least one frame of initial image samples and reference image samples corresponding to each frame of the initial image samples from the target posture image sample set includes: Randomly obtain a current initial image sample and a current reference image sample corresponding to the current initial image sample from the target posture image sample set; After the target pose image sample set is updated based on the image enhancement sample corresponding to the current initial image sample, a next initial image sample and a next reference image sample corresponding to the next initial image sample are randomly obtained from the target pose image sample set; The current initial image sample is updated based on the next initial image sample, and the current reference image sample is updated based on the next reference image sample corresponding to the next initial image sample.
3. The method according to claim 1, characterized in that The method further includes: deleting a plurality of target posture image samples from the updated target posture sample set; and / or, At least one frame of the initial image samples and the reference image samples corresponding to each frame of the initial image samples are deleted from the updated target posture sample set.
4. The method according to claim 1, characterized in that: The difference between the frame number of the initial image sample and the frame number of the reference image sample is greater than 0 and less than a difference threshold.
5. The method according to claim 1, characterized in that The number of reference image samples corresponding to the initial image samples in each frame is greater than or equal to 1 and less than or equal to a sample threshold.
6. The method according to claim 5, characterized in that When the number of reference image samples corresponding to the initial image sample in each frame is multiple, the frame numbers of the multiple reference image samples are all greater than or all less than the frame number corresponding to the initial image sample.
7. The method according to claim 5, characterized in that When the number of reference image samples corresponding to the initial image samples in each frame is multiple, the frame numbers of some of the multiple reference image samples are greater than the frame numbers corresponding to the initial image samples, and the frame numbers of another part of the reference image samples are smaller than the frame numbers corresponding to the initial image samples.
8. The method according to claim 1, characterized in that The method further includes: performing noise reduction processing on the image enhancement samples corresponding to the initial image samples of each frame.
9. A method for training a posture estimation model, characterized in that: The method comprises: Determine a target posture image sample set based on the method described in any one of claims 1 to 8; A posture estimation model is trained based on the posture image sample set.
10. The training method of the posture estimation model according to claim 9, characterized in that: The step of training a posture estimation model based on the posture image sample set comprises: Obtaining, based on the posture estimation model, an initial depth feature corresponding to each target posture image sample in the target posture image sample set and a thermal depth feature corresponding to the initial depth feature; If the similarity between the initial depth feature and the thermal depth feature corresponding to the initial depth feature meets the similarity screening condition, the initial depth feature is determined to be the target depth feature, and the thermal depth feature corresponding to the initial depth feature is determined to be the target thermal feature; Determining a target posture feature prediction result based on the target depth feature and the target thermal feature corresponding to the target depth feature; Determining whether the posture estimation model converges based on a plurality of the target posture feature prediction results and the posture labels corresponding to the plurality of the target posture feature prediction results; If the posture estimation model converges, it is determined that the posture estimation model training is completed; otherwise, the posture estimation model is updated based on the multiple target posture feature prediction results and the posture labels corresponding to the multiple target posture feature prediction results.
11. The training method of the posture estimation model according to claim 10, characterized in that: The posture estimation model includes a backbone network and a lightweight network, and obtaining the initial depth feature corresponding to each target posture image sample in the target posture image sample set and the thermal depth feature corresponding to the initial depth feature based on the posture estimation model includes: Inputting the target posture image sample set into the backbone network to obtain a plurality of initial features; Based on each of the initial features, determining a thermal feature corresponding to each of the initial features; Each of the initial features and the thermal features corresponding to each of the initial features are input into the lightweight network to obtain an initial depth feature corresponding to each of the target posture image samples and the thermal depth feature corresponding to each of the initial depth features.
12. The training method of the posture estimation model according to claim 10, characterized in that: The similarity screening conditions include: The similarity between the multiple initial depth features and the thermal depth feature corresponding to each of the initial depth features is greater than a similarity threshold; and / or, According to the order of similarity between the multiple initial depth features and the thermal depth features corresponding to each of the initial depth features, the multiple initial depth features and the multiple thermal depth features are sorted from large to small, the target depth feature is the kth initial depth feature, k is greater than 0 and less than or equal to M, M represents an integer less than the total number of the multiple initial depth features, and the target thermal feature is the hth thermal depth feature, h is greater than 0 and less than or equal to N, N represents an integer less than the total number of the multiple target thermal features.
13. A device for determining a posture image sample set, characterized in that: The device comprises: An acquisition module, used for generating a target posture image sample set based on a plurality of target posture image samples included in the target posture video; The acquisition module is also used to acquire at least one frame of initial image samples and reference image samples corresponding to each frame of the initial image samples from the target posture image sample set; A determination module, configured to determine an image enhancement sample corresponding to the initial image sample of each frame based on the initial image sample of each frame and the reference image sample corresponding to the initial image sample of each frame; An updating module is used to update the target pose image sample set based on the image enhancement samples corresponding to the initial image samples of each frame.
14. A training device for a posture estimation model, characterized in that: The device comprises: A determination module, used to determine a target posture image sample set based on the method according to any one of claims 1 to 8; A training module is used to train a posture estimation model based on the posture image sample set.
15. An electronic device, characterized in that: include: processor; as well as, A memory for storing programs; The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 12.
16. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores computer instructions for causing the computer to execute the method according to any one of claims 1-12.
Citation Information
Patent Citations
Automatic driving scene panorama segmentation method based on multi-modal fusion perception
CN116129233A
Training data collection for computer vision
US20200210768A1
Method and apparatus for enhancing video frame resolution
US20210097646A1
Video data quality improving method and apparatus
US20210133943A1
Cited By
Graphics video model training method and device, equipment and storage medium
CN119629426A
