Lightweight single object tracker training method based on knowledge distillation
By combining the twin tracker architecture design with the knowledge distillation method in the field of target tracking to transfer real labels and teacher knowledge, the training of lightweight target trackers is achieved and the problems of large model size and high computational cost in the existing technology are solved. An efficient, lightweight and highly accurate tracker is obtained.
Patent Information
- Application Number
- CN202210570157.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-05-24
AI Technical Summary
The existing technology lacks an efficient, lightweight and high-precision single target tracker in the field of target tracking. Especially in the twin tracker architecture, the large model size and high computational cost limit its deployment and application in mobile devices. Moreover, knowledge distillation methods cannot effectively adapt to the complexity of target tracking tasks and insufficient feature extraction capabilities.
This paper proposes a lightweight target tracker training method based on knowledge distillation, and designs a combination of real-label supervision information, teacher adaptive bounded knowledge, teacher attention guidance knowledge and student mutual learning knowledge to the student tracker. The refined knowledge distillation framework of the twin tracker architecture achieves model compression and accuracy improvement.
Without increasing the parameters and calculation amount, the tracking accuracy of small models is significantly improved, making the model lightweight and efficient. Compared with the teacher tracker, the student tracker has nearly 9 times the model compression rate and 10 times the calculation. The cost is reduced while maintaining or exceeding the tracking accuracy of the teacher model.
Smart Images

Figure CN115100238B
Abstract
Description
Technical Field
[0001] The present invention belongs to the application of deep learning technology in the field of computer vision, is suitable for the deployment of computer vision applications in edge devices, and can be widely used in video surveillance, human-computer interaction, intelligent driving and other fields. More specifically, it is a lightweight single target tracker training method based on knowledge distillation. Background Art
[0002] As an important research direction in computer vision, target tracking technology has attracted extensive attention from scholars in recent years. Under the trend of deep learning, target tracking methods based on twin neural networks have emerged and significantly improved the state-of-the-art of real-time trackers. The reason why twin trackers are effective is that the metric learning ability of twin networks is just adapted to the task requirements of target tracking for matching similar targets in the previous and next frames of the video. The early work SiamFC provided a simple and effective model framework that could achieve good tracking accuracy at the time at a real-time speed of 86FPS. Subsequently, many twin trackers pursuing higher accuracy emerged, and the field of target tracking has made great progress. However, this is accompanied by huge model size and high computational cost. In order to achieve the most outstanding performance, the representative SiamRPN++ uses 53.9M parameters and 48.9GFLOPs of computation. Such storage cost and computational cost severely limit the deployment and application of advanced target trackers in mobile devices with memory and computing power limitations. Therefore, how to achieve compression and speed-up of tracking models while ensuring tracker performance has become a decisive factor in bridging the gap between academic research and industrial implementation in the field of target tracking.
[0003] Knowledge distillation is a common and effective model compression method that allows a lightweight small student network to mimic a high-performance large teacher network to achieve similar or higher accuracy. Most existing knowledge distillation methods are designed based on image classification tasks, and applying them to the field of target tracking still faces the following challenges:
[0004] (1) The target tracking task scenarios are more complex and varied, and contain a wealth of challenges. The teacher tracker cannot remain robust in all scenarios. Its misjudgment may lead the student tracker in the wrong direction. How the student tracker identifies this situation is an important factor in improving accuracy.
[0005] (2) In the framework of twin target tracking, less than 20% of the 511*511 search area is the foreground (target area). The problem of insufficient feature extraction capability of the small twin network is magnified, which is the culprit for the decrease in accuracy.
[0006] (3) The architecture of the twin tracker is relatively complex, including template frames and search frames. After the template features and search features are extracted, they are divided into classification branches and regression branches respectively. Therefore, the knowledge distillation framework designed for the twin tracker must be sophisticated enough to strictly fit the architecture of the twin tracker.
[0007] In summary, there is currently a lack of a single target tracker that is efficient, lightweight, and has high tracking accuracy. Summary of the invention
[0008] In view of this, the present invention provides a lightweight target tracker training method based on knowledge distillation, and proposes a simple and efficient knowledge distillation framework, which efficiently transfers the knowledge of a high-performance large target tracker to a lightweight small target tracker, and can effectively improve the tracking accuracy of the small model without introducing additional parameters and inference operations.
[0009] To achieve the above object, the technical solution of the present invention is: a lightweight target tracker training method based on knowledge distillation, the lightweight target tracker is composed of a student tracker and a teacher tracker, and the training of the lightweight target tracker includes the following steps:
[0010] Four parts of knowledge are passed to the student tracker for learning: supervision information GTS of the true label, teacher adaptive bounded knowledge TAB, teacher attention guiding knowledge TAG, and student mutual learning knowledge SML.
[0011] The supervised information GTS of the true labels provides the student tracker with the most realistic standard answers from the true labels.
[0012] Teacher Adaptive Bounded Knowledge, TAB, represents the knowledge that the student tracker directly acquires from the final output of the teacher tracker.
[0013] The teacher attention guidance knowledge TAG provides the student tracker with guidance from the teacher tracker’s spatial attention and channel attention on the input image.
[0014] Students learn knowledge from each other (SML), which aims to enable multiple students to learn and guide each other in order to achieve common progress.
[0015] Furthermore, the specific process of transferring the real label supervision information GTS is as follows:
[0016] By using the intersection-and-union ratio information between the anchor box and the target bounding rectangle, we can obtain the corresponding point label information and obtain the true label information GT of the classification branch. cls And the true label information GT of the regression branch reg ; Next, C S and R SRepresent the classification output and regression output of the student tracker respectively, so the loss expression of GTS is:
[0017]
[0018] in, is the loss function of the classification branch, and cross entropy is used to calculate the loss. As the loss function of the regression branch, smooth L1 loss is used to calculate the loss; the definition of the hyperparameter λ is used to balance the importance of the two parts.
[0019] Furthermore, the specific process of teacher adaptive bounded knowledge TAB transfer is as follows:
[0020] Set the adaptation margin to the difference between the student tracker and the teacher tracker’s loss to the true label value;
[0021] The classification boundary is extracted from the classification branch output layer of the teacher tracker and the student tracker, which is defined as:
[0022]
[0023] B cls Classification boundaries, is the loss between the teacher tracker and the true label value of the classification branch, is the loss between the true label value of the student tracker and the classification branch, C T is the classification branch output of the teacher tracker, C S is the classification branch output of the student tracker;
[0024] The regression boundary is extracted from the regression branch output layer of the teacher tracker and the student tracker, which is defined as:
[0025]
[0026] B reg Classification boundaries, is the loss between the teacher tracker and the true label value of the regression branch, is the loss between the true label value of the student tracker and the regression branch, R T is the regression branch output of the teacher tracker, R S is the regression branch output of the student tracker,
[0027] For the classification branch, TAB provides the student tracker with the softened loss from the output layer of the classification branch of the teacher tracker only when the classification boundary value is less than the preset threshold; when the classification boundary value exceeds the preset threshold, TAB stops providing the loss to the student tracker; for the regression branch, TAB provides the student tracker with the softened loss from the output layer of the regression branch of the teacher tracker only when both the classification boundary value and the regression boundary value are less than the preset threshold; as long as one of the two boundary values exceeds the preset threshold, TAB stops providing the loss to the student tracker.
[0028] Preferably, the TAB transfer loss of the classification branch is defined as:
[0029]
[0030] Among them, KL represents KL divergence loss, t is the temperature parameter, which means softening the original classification probability to extract dark knowledge th cls Preset threshold for classification boundary value;
[0031] The TAB transfer loss of the regression branch is defined as:
[0032]
[0033] in, represents the smooth L1 loss function; th cls The preset threshold for the regression boundary value.
[0034] Furthermore, the overall TAB transfer loss is defined as:
[0035]
[0036] Where λ is the weight value.
[0037] Furthermore, the specific process of teacher attention-guided knowledge TAG transfer is as follows:
[0038] The feature layer F extracted from the twin backbone network C×H×W Compress along the channel dimension to obtain the spatial attention map, mapping The formula is:
[0039]
[0040] Where C is the number of channels in the feature layer, H is the height of the feature layer, and W is the width of the feature layer; F i,*,* is the feature layer of the i-th channel;
[0041] The feature layer F extracted from the twin backbone network C×H×W Compress the image along its width and height dimensions to obtain the channel attention map. The formula is:
[0042]
[0043] where F *,j,k is a feature layer with a height of j and a width of k.
[0044] Furthermore, for the search branch x, the optimization goal of TAG is to reduce the channel attention and spatial attention losses of the backbone features of the template branch between the student tracker and the teacher tracker. The loss is defined as follows:
[0045]
[0046] in Feature graph of the search branch of the student tracker, Feature graph of the search branch of the teacher tracker;
[0047] For the template branch z, the optimization goal of TAG is to reduce the channel attention and spatial attention loss of the search branch backbone features between the student tracker and the teacher tracker. The loss is defined as follows:
[0048]
[0049] in Feature graph of the template branch of the student tracker, Feature graph of the search branch of the teacher tracker.
[0050] 8. The lightweight target tracker training method based on knowledge distillation according to claim 7, characterized in that the overall TAG transfer loss is defined as:
[0051]
[0052] Preferably, students learn knowledge SML from each other, and the specific process of transfer is as follows:
[0053] Select two lightweight student trackers S1 and S2. For S1, extract the classification results of S2 And the regression results For knowledge transfer, the loss function is defined as:
[0054]
[0055] in It is the process of obtaining the KL divergence of the softened classification results. The formula is:
[0056]
[0057] is the classification output of the first student tracker S1; is the classification output of the second student tracker S2;
[0058] It represents the process of obtaining smooth L1 for the regression output of the teacher tracker and the student tracker, and its formula is:
[0059]
[0060] is the regression output of the first student tracker S1; is the regression output of the second student tracker S2;
[0061] For S2, extract the classification results of S1 And the regression results For knowledge transfer, the loss function is defined as:
[0062]
[0063] Preferably, for the student tracker S1, the total loss of the entire knowledge distillation framework can be defined as:
[0064]
[0065] For the student tracker S2, the total loss of the entire knowledge distillation framework can be defined as:
[0066]
[0067] Among them, α, β, and γ are adjustable hyperparameters regarding the importance weight of each knowledge.
[0068] Beneficial effects:
[0069] 1. This paper proposes a lightweight target tracker training method based on knowledge distillation. Aiming at the general knowledge distillation framework, the paper transfers four parts of knowledge to the student tracker to obtain an efficient lightweight target tracker: real label supervision information GTS, teacher adaptive bounded knowledge TAB, teacher attention guidance knowledge TAG, and student mutual learning knowledge SML. It can enable the advanced twin tracker to greatly compress the model size without losing accuracy, improve the tracking rate, and obtain a lightweight and efficient tracker;
[0070] 2. The lightweight target tracker training method based on knowledge distillation provided by the present invention, the proposed knowledge distillation framework is precisely designed in combination with the architecture of the twin tracker, and the designed knowledge distillation framework is only used in the training phase of the twin tracker, so it does not cause any additional computational and storage burden in the tracking phase. In addition, the knowledge distillation strategies in this embodiment are all based on features and responses, so it is applicable to all twin trackers and is not restricted to a fixed structure. The lightweight single target tracker based on knowledge distillation of the present invention is trained by the above training method and can be tracked in video sequences or actual scenes.
[0071] 3. The lightweight target tracker training method based on knowledge distillation provided by the present invention, by introducing the teacher adaptive bounded knowledge TAB, the student tracker acquires the identification ability and can adaptively filter the knowledge from the teacher tracker; by introducing the teacher attention guiding knowledge TAG, the student tracker imitates the teacher tracker's attention to the input image, can further understand the teacher tracker's thinking process, and accelerate the model convergence speed.
[0072] 4. The lightweight target tracker training method based on knowledge distillation provided by the present invention introduces student mutual learning knowledge SML, and the student trackers learn and guide each other to further improve each other's accuracy.
[0073] 5. The lightweight target tracker training method based on knowledge distillation provided by the present invention has a model compression rate of nearly 9 times and a computational cost reduction of 10 times for the student tracker compared to the teacher tracker. At the same time, it can also obtain higher tracking accuracy than the teacher tracker. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 Schematic diagram of a twin tracker based on knowledge distillation in an embodiment of the present invention.
[0075] Figure 2 (a) is a schematic diagram of the teacher attention guiding TAG in an embodiment of the present invention.
[0076] Figure 2 (b) is a schematic diagram of spatial attention mapping in an embodiment of the present invention.
[0077] Figure 2 (c) is a schematic diagram of channel attention mapping in an embodiment of the present invention.
[0078] Figure 3 It is a schematic diagram of students learning SML from each other in an example of the present invention.
[0079] Figure 4 This is an evaluation diagram of the student tracker in the example of the present invention on OTB100. DETAILED DESCRIPTION
[0080] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0081] The lightweight target tracker training method based on knowledge distillation provided by the present invention is shown in the overall schematic diagram as follows: Figure 1 As shown in the figure, an efficient lightweight target tracker is obtained by passing four parts of knowledge to the student tracker: supervision information GTS of the true label, teacher adaptive bounded knowledge TAB, teacher attention guided knowledge TAG, and student mutual learning knowledge SML.
[0082] (1) The supervision information of the real label GTS (generated from the dataset) provides the student tracker with the most realistic standard answer from the real label. Due to the deep semantic information, it is somewhat difficult for the student tracker with a smaller brain capacity to understand, so it needs to be tutored by the teacher tracker. First, the intersection and union ratio information between the anchor box and the target bounding rectangle can be used to obtain the corresponding point label information. For the classification and regression branches, there are the real label information GT of the classification branch and the real label information GT of the regression branch. cls And the label information GT of the regression branch reg Next, C S and R S Represent the classification output and regression output of the student tracker respectively, so the loss expression of GTS is:
[0083]
[0084] in, Cross entropy is used to calculate the loss function of the loss classification branch, The smooth L1 loss function is used to calculate the loss function of the regression branch. The definition of the hyperparameter λ is used to balance the importance of the two parts.
[0085] (2) Teacher Adaptive Bounded Knowledge TAB, which means the knowledge that the student tracker directly obtains from the final output of the teacher tracker, provides the most intuitive understanding of the knowledge from the teacher tracker. However, the teacher may provide knowledge that is completely inconsistent with the true label. By introducing an adaptive bound to avoid this part of the error as much as possible, the student can get more accurate guidance.
[0086] The adaptation margin is set to the difference between the loss of the student tracker and the teacher tracker to the true label value.
[0087] Furthermore, the classification boundary is extracted from the classification branch output layer of the teacher tracker and the student tracker, which is defined as:
[0088]
[0089] B clsClassification boundaries, The loss between the teacher tracker and the true label value, C T is the classification branch output of the teacher tracker, C S is the classification branch output of the student tracker,
[0090] The regression boundary is extracted from the regression branch output layer of the teacher tracker and the student tracker, which is defined as:
[0091]
[0092] Furthermore, for the classification branch, TAB provides the student tracker with the softened loss from the output layer of the teacher tracker classification branch only when the classification boundary value is less than a preset threshold. cls , TAB stops providing loss for the student tracker. The TAB transfer loss for the classification branch is defined as:
[0093]
[0094] Where KL represents KL divergence loss. t is the temperature parameter, which means softening the original classification probability to extract dark knowledge.
[0095] For the regression branch, TAB provides the student tracker with the softened loss from the output layer of the teacher tracker regression branch only when both the classification boundary value and the regression boundary value are less than the preset threshold. As long as one of the two boundary values exceeds the preset threshold, TAB stops providing loss to the student tracker. The TAB transfer loss of the regression branch is defined as:
[0096]
[0097] in, represents the smooth L1 loss function.
[0098] Furthermore, by weighting these two parts of loss, we can get the overall TAB transfer loss, which is defined as follows:
[0099]
[0100] (3) Teacher attention-guiding knowledge TAG, such as Figure 2 As shown in (a), it can provide the student tracker with guidance from the teacher tracker's spatial attention and channel attention on the input image, so that the student tracker can further understand the teacher's thinking process and focus the learning interest in the right direction.
[0101] like Figure 2 As shown in (b), the feature layer F extracted by the twin backbone network C×H×WCompress along the channel dimension to obtain the spatial attention map, mapping The formula is:
[0102]
[0103] C is the number of channels in the feature layer, H is the height and width W of the feature layer, and F is the width and height of the feature layer. i,*,* ,like Figure 2 As shown in (c), the feature layer F extracted by the twin backbone network C×H×W Compress the image along its width and height dimensions to obtain the channel attention map. The formula is:
[0104]
[0105] Furthermore, for the search branch x, the optimization goal of TAG is to reduce the channel attention and spatial attention loss of the backbone features of the template branch between the student tracker and the teacher tracker. The loss is defined as follows:
[0106]
[0107] Feature graph of the search branch of the student tracker, Feature graph of the search branch of the teacher tracker
[0108] For the template branch z, the optimization goal of TAG is to reduce the channel attention and spatial attention loss of the search branch backbone features between the student tracker and the teacher tracker. The loss is defined as follows:
[0109]
[0110] Feature graph of the template branch of the student tracker, Feature graph of the search branch of the teacher tracker
[0111] Furthermore, by adding these two losses together, we can get the overall TAG transfer loss, which is defined as follows:
[0112]
[0113] (4) Students learn from each other. SML aims to enable multiple students to learn from and guide each other so as to achieve common progress. Figure 3 As shown, two lightweight student trackers S1 and S2 are selected. For S1, the classification results of S2 are extracted. And the regression results For knowledge transfer, the loss function is defined as:
[0114]
[0115] in It is the process of obtaining the KL divergence of the softened classification results. The formula is:
[0116]
[0117] It represents the process of obtaining smooth L1 for the regression output of the teacher tracker and the student tracker, and its formula is:
[0118]
[0119] For S2, extract the classification results of S1 And the regression results For knowledge transfer, the loss function is defined as:
[0120]
[0121] (5) Knowledge aggregation. For the student tracker S1, the total loss of the entire knowledge distillation framework can be defined as:
[0122]
[0123] For the student tracker S2, the total loss of the entire knowledge distillation framework can be defined as:
[0124]
[0125] Among them, α, β, and γ are adjustable hyperparameters regarding the importance weight of each knowledge.
[0126] It should be emphasized that the knowledge distillation framework we designed is only used in the training phase of the twin tracker, so it does not cause any additional computational and storage burden in the tracking phase. In addition, the knowledge distillation strategies in this embodiment are all based on features and responses, so it is applicable to all twin trackers and is not restricted to a fixed structure. The lightweight single target tracker based on knowledge distillation of the present invention is trained by the above training method and can be tracked in video sequences or actual scenes.
[0127] The lightweight target tracker of the present invention has a model compression rate of nearly 9 times and a computational cost reduction of 10 times compared to the original teacher tracker, and can run on the CPU at an ultra-real-time speed of 66FPS. At the same time, it can obtain tracking accuracy close to or even higher than that of the teacher model. For the uniformity of comparison, all experiments are run in a python3.8, pytorch1.10.1 and cuda11.3 environment on a server with an IntelXeon 5218R CPU and 4 RTX 3090 graphics cards. The specific experiments are as follows.
[0128] This embodiment performs 50 rounds of distributed training on four GPUs with a batch size of 64. The backbone networks selected for the two student trackers are Alexnet and Mobilenet-v2, both of which are pre-trained on the ImageNet dataset, and these parameters will be frozen in the first ten rounds of distillation training. During the training process, after the first five rounds of warm-up, the learning rate will gradually increase from 1e-3 to 5e-3, and then exponentially decay to 5e-4 in the remaining training rounds. In addition, the momentum of 0.9 is set to 0.9, and the weight decay is set to 1e-4. Some parameters of the training process are set as follows: regression branch weight λ=1.2, threshold parameter th in TAB cls =th reg =0.01, temperature parameter t=10, and the weight parameters of each part of the knowledge summary are α=β=γ=1.
[0129] Figure 4 The evaluation results of the lightweight target tracker trained in this example on OTB100 are shown in Figure 2. Our trackers Ours(M) and Ours(A) have significantly improved performance compared to those before distillation (SiamRPN++(M) and SiamRPN++(A)). In addition, Ours(M) surpasses the teacher tracker (SiamRPN++(R)) in both the success rate graph and the accuracy graph.
[0130] Table 1 shows the evaluation results of the lightweight target tracker trained in this embodiment on VOT2018. According to the comparison in Table 1, the tracker in this embodiment ensures high accuracy while also ensuring real-time performance (>20fps on CPU).
[0131] Table 1 VOT2018 evaluation results
[0132]
[0133]
[0134] Table 2 compares the computational complexity and storage cost of the trackers before and after distillation. Compared with SiamRPN++(R) before distillation, the trackers Ours(M) and Ours(A) in this embodiment have 5 and 9 times the model compression rate, use 7 and 10 times less computation, and the real-time running frame rate is improved to 4 and 11 times.
[0135] Table 2 Comparison of tracker computation and storage cost before and after distillation
[0136]
[0137] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A lightweight target tracker training method based on knowledge distillation, characterized in that: The lightweight target tracker is composed of a student tracker and a teacher tracker. The training of the lightweight target tracker includes the following steps: Four parts of knowledge are passed to the student tracker for learning: supervision information of the real label GTS, teacher adaptive bounded knowledge TAB, teacher attention guidance knowledge TAG, and student mutual learning knowledge SML; The supervision information GTS of the true label provides the student tracker with the most realistic standard answer from the true label; The teacher adaptive bounded knowledge TAB refers to the knowledge that the student tracker directly obtains from the final output of the teacher tracker; The teacher attention guidance knowledge TAG provides guidance for the student tracker from the teacher tracker's spatial attention and channel attention to the input image; The student mutual learning knowledge SML is intended to allow multiple students to learn from and guide each other to achieve the goal of common progress; The specific process of transferring the real label supervision information GTS is as follows: The intersection-and-union ratio between the anchor box and the target bounding rectangle is used to obtain the corresponding point label information and obtain the true label information GT of the classification branch. cls And the true label information GT of the regression branch reg ; Next, C S and R S Represent the classification output and regression output of the student tracker respectively, so the loss expression of GTS is: in, is the loss function of the classification branch, and cross entropy is used to calculate the loss. As the loss function of the regression branch, smooth L1 loss is used to calculate the loss; the definition of the hyperparameter λ is used to balance the importance of the two parts.
2. The lightweight target tracker training method based on knowledge distillation according to claim 1 is characterized in that: The specific process of the transfer of the teacher adaptive bounded knowledge TAB is as follows: Set the adaptation margin to the difference between the student tracker and the teacher tracker’s loss to the true label value; The classification boundary is extracted from the classification branch output layer of the teacher tracker and the student tracker, which is defined as: B cls Classification boundaries, is the loss between the teacher tracker and the true label value of the classification branch, is the loss between the true label value of the student tracker and the classification branch, C T is the classification branch output of the teacher tracker, C S is the classification branch output of the student tracker; The regression boundary is extracted from the regression branch output layer of the teacher tracker and the student tracker, which is defined as: B reg Return to the border, is the loss between the teacher tracker and the true label value of the regression branch, is the loss between the true label value of the student tracker and the regression branch, R T is the regression branch output of the teacher tracker, R S is the regression branch output of the student tracker, For the classification branch, TAB provides the student tracker with the softened loss from the output layer of the classification branch of the teacher tracker only when the classification boundary value is less than the preset threshold; when the classification boundary value exceeds the preset threshold, TAB stops providing the loss to the student tracker; for the regression branch, TAB provides the student tracker with the softened loss from the output layer of the regression branch of the teacher tracker only when both the classification boundary value and the regression boundary value are less than the preset threshold; as long as one of the two boundary values exceeds the preset threshold, TAB stops providing the loss to the student tracker.
3. The lightweight target tracker training method based on knowledge distillation according to claim 2 is characterized in that: The TAB transfer loss for the classification branch is defined as: Among them, KL represents KL divergence loss, t is the temperature parameter, which means softening the original classification probability to extract dark knowledge th cls The preset threshold for the classification boundary value; The TAB transfer loss of the regression branch is defined as: in, represents the smooth L1 loss function; th cls is the preset threshold of the classification boundary value, th reg The preset threshold for the regression boundary value.
4. The lightweight target tracker training method based on knowledge distillation according to claim 3 is characterized in that: The overall TAB transfer loss is defined as: Where λ is the weight value.
5. The lightweight target tracker training method based on knowledge distillation according to claim 1 or 3, characterized in that: The specific process of the teacher's attention-guiding knowledge TAG is as follows: The feature layer F extracted from the twin backbone network C×H×W Compress along the channel dimension to obtain the spatial attention map, mapping The formula is: Where C is the number of channels in the feature layer, H is the height of the feature layer, and W is the width of the feature layer; F i,*,* is the feature layer of the i-th channel; The feature layer F extracted from the twin backbone network C×H×W Compress the image along its width and height dimensions to obtain the channel attention map. The formula is: where F *,j,k is a feature layer with a height of j and a width of k.
6. The lightweight target tracker training method based on knowledge distillation according to claim 5 is characterized in that: For the search branch x, the optimization goal of TAG is to reduce the channel attention and spatial attention loss of the backbone features of the template branch between the student tracker and the teacher tracker. The loss is defined as follows: in Feature graph of the search branch of the student tracker, Feature graph of the search branch of the teacher tracker; For the template branch z, the optimization goal of TAG is to reduce the channel attention and spatial attention loss of the search branch backbone features between the student tracker and the teacher tracker. The loss is defined as follows: in Feature graph of the template branch of the student tracker, Feature graph of the search branch of the teacher tracker.
7. The lightweight target tracker training method based on knowledge distillation according to claim 6 is characterized in that: The overall TAG transfer loss is defined as:
8. The lightweight target tracker training method based on knowledge distillation according to claim 1 is characterized in that: The specific process of the transfer of the student mutual learning knowledge SML is as follows: Select two lightweight student trackers S1 and S2. For S1, extract the classification results of S2 And the regression results For knowledge transfer, the loss function is defined as: in It is the process of obtaining the KL divergence of the softened classification results. The formula is: is the classification output of the first student tracker S1; is the classification output of the second student tracker S2; It represents the process of obtaining smooth L1 for the regression output of the teacher tracker and the student tracker, and its formula is: is the regression output of the first student tracker S1; is the regression output of the second student tracker S2; For S2, extract the classification results of S1 And the regression results For knowledge transfer, the loss function is defined as:
9. The lightweight target tracker training method based on knowledge distillation according to claim 1 is characterized in that: For the student tracker S1, the total loss of the entire knowledge distillation framework is defined as: is the supervised information GTS loss of the true label of the student tracker S1, TAB transfer loss for Student Tracker S1, Channel attention and spatial attention losses for student tracker S1; For the student tracker S2, the total loss of the entire knowledge distillation framework is defined as: in, is the supervised information GTS loss of the true label of the student tracker S2, TAB transfer loss for Student Tracker S2, are the channel attention and spatial attention losses of the student tracker S2; α, β, γ are adjustable hyperparameters regarding the importance weight of each knowledge.
