Target detection method, system and in-memory computing chip

By deploying the target detection network on the in-memory computing chip, the problems of storage wall and power consumption wall in the von Neumann architecture are solved, end-to-end target detection is achieved, the system architecture is simplified, power consumption is reduced, and efficiency is improved. Detection efficiency.

CN115019146BActive Publication Date: 2024-10-15JIMEI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210694330.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2024-10-15
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

The traditional von Neumann architecture has "storage wall" and "power wall" problems in target detection, resulting in high system complexity and high energy consumption. The non-maximum suppression algorithm needs to be completed based on the CPU, which increases the system complexity. .

Method used

Deploy the target detection network on the in-memory computing chip, including target detection network, feature extraction neural network, message communication neural network and feature post-processing neural network, to achieve end-to-end target detection, reduce dependence on the CPU, and directly in-memory The detection task is completed on the computing chip.

Benefits of technology

It simplifies the system architecture, reduces the design and deployment complexity, achieves ultra-low power target detection, improves parallel computing capabilities, and reduces development and deployment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115019146B_ABST
    Figure CN115019146B_ABST
Patent Text Reader

Abstract

The present invention relates to a target detection method, system and in-memory computing chip. The method is applied to the in-memory computing chip, and the method includes: obtaining an image to be detected; inputting the image to be detected into a target detection network to obtain candidate prediction frame information output by the target detection network; inputting the candidate prediction frame information into a feature extraction neural network to obtain designated feature information between adjacent candidate prediction frames output by the feature extraction neural network; inputting the designated feature information between adjacent candidate prediction frames into a message communication neural network to obtain feature vectors of multiple candidate prediction frames; inputting the feature vectors into a feature post-processing neural network to obtain target confidences of each of the multiple candidate prediction frames; determining a target frame from multiple candidate prediction frames according to the target confidences, and sending the target frame information to a display device so that the display device displays the target frame. In this way, the target detection method is implemented in the in-memory computing chip to reduce the complexity of the target detection system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a target detection method, system and in-memory computing chip. Background Art

[0002] The von Neumann architecture is commonly used in modern computer system structures. In this architecture, the processor that performs computing tasks and the memory responsible for data storage are usually separated from each other. Therefore, each time the processor performs an operation, it needs to read data from the memory into the processor, wait for the data to be processed, and then write it back to the memory. Under AI computing based on big data, the "storage wall" and "power consumption wall" challenges of the von Neumann architecture are highlighted. The so-called "storage wall" problem refers to the growing gap between memory performance and operator performance; and the "power consumption wall" problem refers to the high energy cost of moving data back and forth between the memory and the operator.

[0003] Target detection is one of the basic tasks in the field of machine vision. Its core work is to detect and identify target objects in image information. Therefore, it is also used in various application scenarios, such as target detection in video surveillance. Its effect will directly affect the subsequent tracking, action recognition and behavior description. In related technologies, target detection usually requires the use of non-maximum suppression (NMS) algorithm. From the algorithm flow of NMS, it can be seen that the algorithm has a large number of loops and sorting operations, which need to be completed by a CPU based on the traditional von Neumann architecture. In this case, it is also necessary to design additional data buses, drivers, etc. between the CPU based on the traditional von Neumann architecture and the in-memory computing chip as an accelerator, making the system more complicated. Summary of the invention

[0004] The purpose of the present invention is to provide a target detection method, system and in-memory computing chip to reduce the deployment complexity of the target detection method. End-to-end target detection can be achieved only on the in-memory computing chip without using a CPU, and system power consumption can be reduced.

[0005] In order to achieve the above object, in a first aspect, the present invention provides a target detection method, which is applied to an in-memory computing chip, and the method comprises:

[0006] Acquire the image to be detected;

[0007] Inputting the image to be detected into a target detection network to obtain candidate prediction box information output by the target detection network, wherein the candidate prediction box information includes information of each of a plurality of candidate prediction boxes, and the candidate prediction box is an area in the image to be detected;

[0008] Inputting the candidate prediction box information into a feature extraction neural network to obtain specified feature information between adjacent candidate prediction boxes output by the feature extraction neural network;

[0009] Input the specified feature information between adjacent candidate prediction boxes into the message communication neural network to obtain feature vectors of multiple candidate prediction boxes;

[0010] Inputting the feature vector into a feature post-processing neural network to obtain target confidences of respective candidate prediction boxes;

[0011] According to the target confidence, a target frame is determined from the multiple candidate prediction frames, and information of the target frame is sent to a display device so that the display device displays the target frame.

[0012] Optionally, the feature extraction neural network is trained in the following manner:

[0013] Get training images from the training dataset;

[0014] Inputting the training image into the object detection network to obtain training prediction box information, wherein the training prediction box information includes information of each of a plurality of training prediction boxes, and the training prediction box is an area in the training image;

[0015] Determine an intersection-and-union ratio between adjacent training prediction frames among the multiple training prediction frames, and use a training prediction frame corresponding to an intersection-and-union ratio greater than a preset threshold as a target training prediction frame;

[0016] Determine the training feature information between adjacent prediction boxes in the target training prediction box, use the training feature information as real label data, use a preset loss function to train the neural network, and obtain the feature extraction neural network after the neural network training is completed.

[0017] Optionally, determining the target box from the multiple candidate prediction boxes according to the target confidence includes one of the following:

[0018] Taking a preset number of candidate prediction boxes with the highest target confidence as the target box;

[0019] The candidate prediction box whose target confidence is greater than a preset confidence threshold is used as the target box.

[0020] Optionally, the specified feature information between adjacent candidate prediction frames includes at least one of the following: the confidence that the target object is contained in the first candidate prediction frame, the confidence that the target object is contained in the second candidate prediction frame, the intersection-and-union ratio between the first candidate prediction frame and the second candidate prediction frame, the X-axis distance between the center point of the first candidate prediction frame and the center point of the second candidate prediction frame, the Y-axis distance between the center point of the first candidate prediction frame and the center point of the second candidate prediction frame, the ratio of the height of the first candidate prediction frame to the height of the second candidate prediction frame, the ratio of the width of the first candidate prediction frame to the width of the second candidate prediction frame, and the difference between the first ratio and the second ratio, wherein the first ratio is the ratio of the width to the height of the first candidate prediction frame, the second ratio is the ratio of the width to the height of the second candidate prediction frame, and the first candidate prediction frame and the second candidate prediction frame are adjacent candidate prediction frames.

[0021] Optionally, the feature extraction neural network obtains specified feature information between adjacent candidate prediction boxes through processing of a fully connected layer and a ReLU layer, and the message communication neural network obtains feature vectors of multiple candidate prediction boxes through a fully connected layer, a ReLU layer, a Concatenate operation, and a Pooling operation.

[0022] Optionally, the message communication neural network is a learnable NMS neural network.

[0023] In a second aspect, the present invention provides a target detection system, the system is deployed in an in-memory computing chip, the system includes a target detection network, a feature extraction neural network, a message communication neural network, a feature post-processing neural network, and a result output module;

[0024] The object detection network is used to process the image to be detected and output candidate prediction box information, wherein the candidate prediction box information includes information of each of a plurality of candidate prediction boxes, and the candidate prediction box is an area in the image to be detected;

[0025] The feature extraction neural network is used to process the candidate prediction box information and output specified feature information between adjacent candidate prediction boxes;

[0026] The message communication neural network is used to process the specified feature information between adjacent candidate prediction boxes and output feature vectors of multiple candidate prediction boxes;

[0027] The feature post-processing neural network is used to process the feature vector and output target confidence of each of the multiple candidate prediction boxes;

[0028] The result output module is used to determine a target frame from the multiple candidate prediction frames according to the target confidence, and send information of the target frame to a display device so that the display device displays the target frame.

[0029] Optionally, the result output module is used to determine the target box from the multiple candidate prediction boxes according to the target confidence in one of the following ways:

[0030] Taking a preset number of candidate prediction boxes with the highest target confidence as the target box;

[0031] The candidate prediction box whose target confidence is greater than a preset confidence threshold is used as the target box.

[0032] Optionally, the feature extraction neural network is used to obtain specified feature information between adjacent candidate prediction boxes through processing of a fully connected layer and a ReLU layer, and the message communication neural network is used to obtain feature vectors of multiple candidate prediction boxes through a fully connected layer, a ReLU layer, a Concatenate operation, and a Pooling operation.

[0033] In a third aspect, the present invention provides an in-memory computing chip, comprising the target detection system provided by any embodiment of the second aspect of the present invention.

[0034] Through the above technical solutions, the design complexity of the target detection method is reduced, and the problem that the traditional target detection algorithm requires a CPU based on the von Neumann architecture is solved, so that the overall system architecture can be simplified, and the development cost and deployment cost are indirectly reduced. Secondly, since the end-to-end target detection method is implemented on the in-memory computing chip, the entire target detection network can enjoy the benefits of high parallelism and low energy consumption of in-memory computing, providing a feasible means of realizing ultra-low power target detection systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of CrossBar, the core unit in the in-memory computing chip architecture.

[0036] Figure 2 It is a schematic diagram of the main steps of the traditional NMS algorithm.

[0037] Figure 3 It is a deployment structure diagram of the target detection algorithm in the related technology.

[0038] Figure 4 It is the parameter processing process of the target detection network.

[0039] Figure 5 FIG. 4 is a flow chart of a target detection method shown in an exemplary embodiment.

[0040] Figure 6 It is a deployment structure diagram of the target detection algorithm in the present invention.

[0041] Figure 7 It is the process of target detection method. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0043] Before introducing the embodiments of the present invention, the problems existing in the related art are first analyzed.

[0044] In recent years, with the technological advances in target detection algorithms and edge computing devices, many designs for edge target detection devices have appeared on the market. A complete design solution includes two parts: algorithm design and chip architecture selection. From the perspective of algorithm design, target detection algorithms usually include two core steps: deep learning-based detection networks and non-maximum suppression. This type of target detection algorithm usually runs on a general-purpose processor based on the von Neumann architecture. From the perspective of chip architecture selection, the non-maximum suppression algorithm is not suitable for in-memory computing chip architectures, so it is usually necessary to use additional chips (such as general-purpose processors based on the von Neumann architecture) in addition to the in-memory computing chip to assist in completing the non-maximum suppression function, and the system complexity is high.

[0045] In order to solve or improve the "storage wall" and "power wall" problems of the von Neumann architecture, the in-memory computing architecture integrates logic units and storage units, and performs operations directly inside the storage units, alleviating the bandwidth and latency bottlenecks between the processor and the memory, and reducing the energy consumption caused by data transfer. In addition, the in-memory computing architecture uses memory arrays to complete large-scale parallel operations, which is suitable for highly parallel operations such as matrix multiplication. This is another major advantage compared to the traditional von Neumann architecture that executes instructions sequentially. At present, the core of AI based on deep learning is large-scale matrix operations. Under the in-memory computing architecture, large-scale matrix operations can be efficiently mapped to the Crossbar array. Figure 1As shown, if you want to complete the dot multiplication operation between matrix W and vector X, where matrix W includes w1, w2, w3, w4, w5, w6, w7, w8, w9, and vector X includes x1, x2, x3, Crossbar saves the data in matrix W in the form of resistance, and vector X is input in the form of voltage. According to Ohm's law, the output of Crossbar is the result of the matrix dot multiplication operation in the form of current. Therefore, the Crossbar in the in-memory computing architecture can also be said to be a "natural" matrix multiplication operation unit. Compared with the traditional von Neumann architecture that sequentially fetches instructions, fetches several data each time for multiplication or addition operations, and finally stores the results back to the memory, the in-memory computing architecture has great power consumption advantages. For example Figure 1 As shown, CrossBar completes one operation as shown in the figure, and the traditional CPU needs 9 multiplication operations and 6 addition operations.

[0046] In order to improve the accuracy of the target detection algorithm, the mainstream algorithm divides the target detection task into two steps. In the first step, the target detection algorithm finds as many target boxes as possible as candidates to cover the vast majority of objects in the scene. However, this may cause the algorithm to propose multiple candidate target boxes for an object, and these target boxes are highly overlapping. Therefore, in the second step, it is usually necessary to use the non-maximum suppression algorithm (NMS) to delete redundant candidate target boxes and retain the most desired candidate target box as the final detection result.

[0047] The key operations of the NMS algorithm are as follows: Figure 2 As shown. R represents the target frame coordinate set that is finally retained, B represents the coordinate information set of the candidate target frame proposed by AI, and S represents the confidence set of the candidate target frame proposed by AI. The overall process is: when B is not empty, continuously take out a highest score s from S (one by one in order from high to low), and the corresponding candidate target frame coordinate information H, and add H to R, and delete H from B. Then traverse the remaining B sets, and delete the coordinate information and confidence of the candidate target frame whose intersection ratio (intersection area / union area) with the candidate target frame represented by H reaches a certain threshold from the B set and the S set, until B is finally an empty set, the algorithm ends, and returns the retained target frame coordinate set R. Therefore, the NMS algorithm can retain the one with the highest confidence among multiple candidate target frames that are close to each other, and delete other redundant candidate target frames.

[0048] The cost of deploying the traditional NMS algorithm on the in-memory computing architecture is high. From the NMS algorithm flow, it can be seen that the algorithm has a large number of loops and sorting operations, which are more suitable for completion under the traditional von Neumann architecture and are not suitable for the in-memory computing architecture. It is for this reason that the in-memory computing chip is often used as an accelerator to complete the matrix multiplication operation in the target detection backbone network, while the NMS algorithm is handed over to the CPU based on the traditional von Neumann architecture to complete. Figure 3 It is a deployment structure diagram of the target detection algorithm in related technologies, such as Figure 3 As shown in FIG. 1 , the traditional NMS algorithm is deployed in the CPU. In this case, it is necessary to design additional data buses, drivers, etc. between the CPU based on the traditional von Neumann architecture and the in-memory computing chip as an accelerator, which makes the system more complicated.

[0049] In addition, in the related art, the first step for target detection is to extract artificial features of the candidate boxes. The production of artificial features again involves operations that in-memory computing chips are not good at. Taking the calculation of the intersection-over-union (IOU) value as an example, it involves the calculation of the intersection area of ​​the two candidate boxes, the calculation of the union area, and the ratio between the intersection and the union. It is essentially not suitable for completion on the in-memory computing chip architecture based on the Crossbar array. The Crossbar array is only suitable for multiplication of two matrices, where one matrix represents the input information and the other matrix represents the matrix projection operation on the input information, and the latter is often numerically fixed. If you want to use the Crossbar array to perform IOU calculations on two candidate boxes, it means that both matrices processed by the Crossbar array are flexible and variable.

[0050] Figure 4 It is the parameter processing process of the target detection network. Figure 4 As shown in the figure, for example, the size of the input image to be detected is 448×448×3. After several convolutional and pooling layer operations, 14×14×25 output information can be obtained, and this data is reorganized into 196×25 candidate prediction box information, where 196 represents the number of candidate prediction boxes, 25 is composed of 1+20+4, 1 represents the confidence of the candidate prediction box, that is, the possibility of the candidate prediction box containing the target object, 20 represents the probability of the object in the candidate prediction box corresponding to each category, and 4 represents the coordinate position of the candidate prediction box, for example, it can be the position information of four vertices. Among them, the parameters used in the convolution process have been Figure 4 For example, the first convolution operation parameter Filter is 3×3, Padding is 1, and other parameters are not listed one by one.

[0051] In view of this, the present invention proposes a design scheme that can implement an end-to-end target detection algorithm on an in-memory computing chip architecture through the joint design of a target detection algorithm and an in-memory computing chip architecture, thereby reducing system complexity and facilitating the realization of an ultra-low power consumption target detection system.

[0052] Figure 5 Detailed Description of the Invention This is a flow chart of a target detection method shown in an exemplary embodiment. The method is applied to an in-memory computing chip. The method includes S101 to S106.

[0053] In S101, an image to be detected is obtained.

[0054] In S102, the image to be detected is input into a target detection network to obtain candidate prediction box information output by the target detection network, wherein the candidate prediction box information includes information of respective candidate prediction boxes, and the candidate prediction box is an area in the image to be detected.

[0055] In S103, the candidate prediction box information is input into a feature extraction neural network to obtain designated feature information between adjacent candidate prediction boxes output by the feature extraction neural network.

[0056] In S104, designated feature information between adjacent candidate prediction boxes is input into a message communication neural network to obtain feature vectors of multiple candidate prediction boxes.

[0057] In S105, the feature vector is input into a feature post-processing neural network to obtain target confidences of the respective candidate prediction boxes.

[0058] In S106, a target frame is determined from the multiple candidate prediction frames according to the target confidence, and information of the target frame is sent to a display device so that the display device displays the target frame.

[0059] like Figure 6 As shown, the target detection network, feature extraction neural network, and message communication neural network are all deployed in the in-memory computing chip. In the present invention, an end-to-end target detection algorithm is implemented on the in-memory computing chip architecture without the need to use a CPU, thereby reducing system complexity and system power consumption.

[0060] In the present invention, considering that the in-memory computing chip is not good at calculating the intersection area of ​​two candidate boxes, the union area, the ratio between the intersection and the union, etc., a feature extraction neural network is used to directly output the specified feature information between adjacent candidate prediction boxes. The feature extraction neural network is a bridge between the target detection network and the message communication neural network, and further converts the information of multiple candidate prediction boxes into the form required by the message communication neural network. Since the design is based on a neural network, it can be deployed on an in-memory computing chip, which meets the design goal of deploying an end-to-end target detection network on an in-memory computing chip.

[0061] Through the above technical solutions, the design complexity of the target detection method is reduced, and the problem that the traditional target detection algorithm requires a CPU based on the von Neumann architecture is solved, so that the overall system architecture can be simplified, and the development cost and deployment cost are indirectly reduced. Secondly, since the end-to-end target detection method is implemented on the in-memory computing chip, the entire target detection network can enjoy the benefits of high parallelism and low energy consumption of in-memory computing, providing a feasible means of realizing ultra-low power target detection systems.

[0062] For example, the message communication neural network may be a learnable NMS neural network.

[0063] In one embodiment, the feature extraction neural network is trained in the following manner:

[0064] Get training images from the training dataset;

[0065] Inputting the training image into the object detection network to obtain training prediction box information, wherein the training prediction box information includes information of each of a plurality of training prediction boxes, and the training prediction box is an area in the training image;

[0066] Determine an intersection-and-union ratio between adjacent training prediction frames among the multiple training prediction frames, and use a training prediction frame corresponding to an intersection-and-union ratio greater than a preset threshold as a target training prediction frame;

[0067] Determine the training feature information between adjacent prediction boxes in the target training prediction box, use the training feature information as real label data, use a preset loss function to train the neural network, and obtain the feature extraction neural network after the neural network training is completed.

[0068] Among them, the training data set can be a Pascal VOC data set, and the preset loss function can be an MSE (Mean Square Error) loss function. For example, the real label data is used as the Ground Truth for model training, and the neural network is trained by MSE until the training is completed to obtain a feature extraction neural network.

[0069] In one embodiment, the specified feature information between adjacent candidate prediction frames includes at least one of the following: the confidence that the target object is contained in the first candidate prediction frame, the confidence that the target object is contained in the second candidate prediction frame, the intersection-and-union ratio between the first candidate prediction frame and the second candidate prediction frame, the X-axis distance between the center point of the first candidate prediction frame and the center point of the second candidate prediction frame, the Y-axis distance between the center point of the first candidate prediction frame and the center point of the second candidate prediction frame, the ratio of the height of the first candidate prediction frame to the height of the second candidate prediction frame, the ratio of the width of the first candidate prediction frame to the width of the second candidate prediction frame, and the difference between the first ratio and the second ratio, wherein the first ratio is the ratio of the width and height of the first candidate prediction frame, the second ratio is the ratio of the width and height of the second candidate prediction frame, and the first candidate prediction frame and the second candidate prediction frame are adjacent candidate prediction frames.

[0070] For example, taking the first candidate prediction box as box A and the second candidate prediction box as box B, the specified feature information between box A and box B includes at least one of the following: confidence that the target object is contained in box A, confidence that the target object is contained in box B, intersection-over-union (IOU) ratio between box A and box B, X-axis distance between center points of box A and box B, Y-axis distance between center points of box A and box B, height of box A / height of box B, width of box A / width of box B, width of box A / height of box A-width of box B / height of box B.

[0071] In one embodiment, the feature extraction neural network obtains specified feature information between adjacent candidate prediction boxes through processing of a fully connected layer and a ReLU layer, and the message communication neural network obtains feature vectors of multiple candidate prediction boxes through a fully connected layer, a ReLU layer, a Concatenate operation, and a Pooling operation.

[0072] Figure 7 is the process of target detection method. Figure 7 As shown, the size of the input image to be detected is, for example, 448×448×3, and the size of the candidate prediction box information output by the target detection network is 14×14×25. The information of the size of 14×14×25 is obtained by Figure 4 The method shown in the figure is used to obtain the specified feature information between adjacent candidate prediction boxes after being processed by the fully connected layer and the ReLU layer in the feature extraction neural network. Figure 7 The artificial features in the represent the specified feature information in the present invention. The specified feature information has been introduced in detail above. The information size output by the feature extraction neural network is the number of adjacent candidate prediction boxes × 9.

[0073] The specified feature information between adjacent candidate prediction boxes is input into the message communication neural network. First, it is processed by the fully connected FC and ReLU, and the feature vector with the size of the number of adjacent candidate prediction boxes × 128 is output. Then, after the Concatenate operation, the feature vector with the size of the number of adjacent candidate prediction boxes × 256 is output. Then, after the fully connected FC and ReLU processing, the feature vector with the size of the number of adjacent candidate prediction boxes × 128 is output. Then, after the Pooling operation, the feature vector with the size of 14×14×128 is output. Among them, the message communication neural network can be combined with the zero matrix or the 14×14×64 feature vector output by the previous batch of message communication neural networks, and accumulated multiple times in a cycle to achieve the effect of improving accuracy. Then the feature vector is input into the feature post-processing neural network, and after several times of fully connected layers and ReLU layers, a 196×1 vector is obtained, which represents the confidence of the 196 candidate prediction boxes. Finally, the candidate prediction boxes are sorted according to this confidence, and the high-scoring candidate prediction boxes are taken as the target box as the output.

[0074] It should be noted that the data sizes given above in the present invention and the data sizes given in the figures are only examples and do not constitute limitations on the implementation modes of the present invention.

[0075] In one embodiment, determining the target box from the multiple candidate prediction boxes according to the target confidence in S106 may include one of the following:

[0076] Taking a preset number of candidate prediction boxes with the highest target confidence as the target box;

[0077] The candidate prediction box whose target confidence is greater than a preset confidence threshold is used as the target box.

[0078] Among them, the preset number and the preset confidence threshold can be preset, and there is no restriction on their values.

[0079] The present invention also provides a target detection system, which is deployed on an in-memory computing chip, and includes a target detection network, a feature extraction neural network, a message communication neural network, a feature post-processing neural network, and a result output module;

[0080] The object detection network is used to process the image to be detected and output candidate prediction box information, wherein the candidate prediction box information includes information of each of a plurality of candidate prediction boxes, and the candidate prediction box is an area in the image to be detected;

[0081] The feature extraction neural network is used to process the candidate prediction box information and output specified feature information between adjacent candidate prediction boxes;

[0082] The message communication neural network is used to process the specified feature information between adjacent candidate prediction boxes and output feature vectors of multiple candidate prediction boxes;

[0083] The feature post-processing neural network is used to process the feature vector and output target confidence of each of the multiple candidate prediction boxes;

[0084] The result output module is used to determine a target frame from the multiple candidate prediction frames according to the target confidence, and send information of the target frame to a display device so that the display device displays the target frame.

[0085] Optionally, the result output module is used to determine the target box from the multiple candidate prediction boxes according to the target confidence in one of the following ways:

[0086] Taking a preset number of candidate prediction boxes with the highest target confidence as the target box;

[0087] The candidate prediction box whose target confidence is greater than a preset confidence threshold is used as the target box.

[0088] Optionally, the feature extraction neural network is used to obtain specified feature information between adjacent candidate prediction boxes through processing of a fully connected layer and a ReLU layer, and the message communication neural network is used to obtain feature vectors of multiple candidate prediction boxes through a fully connected layer, a ReLU layer, a Concatenate operation, and a Pooling operation.

[0089] The present invention also provides an in-memory computing chip, comprising the target detection system provided in the above embodiment.

[0090] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A target detection method, It is characterized in that The method is applied to an in-memory computing chip, and the method comprises: Acquire the image to be detected; Inputting the image to be detected into a target detection network to obtain candidate prediction box information output by the target detection network, wherein the candidate prediction box information includes information of each of a plurality of candidate prediction boxes, and the candidate prediction box is an area in the image to be detected; Inputting the candidate prediction frame information into a feature extraction neural network to obtain designated feature information between adjacent candidate prediction frames output by the feature extraction neural network, wherein the designated feature information between adjacent candidate prediction frames includes: the confidence that the target object is contained in the first candidate prediction frame, the confidence that the target object is contained in the second candidate prediction frame, the intersection-and-union ratio between the first candidate prediction frame and the second candidate prediction frame, the X-axis distance between the center point of the first candidate prediction frame and the center point of the second candidate prediction frame, the Y-axis distance between the center point of the first candidate prediction frame and the center point of the second candidate prediction frame, the ratio of the height of the first candidate prediction frame to the height of the second candidate prediction frame, the ratio of the width of the first candidate prediction frame to the width of the second candidate prediction frame, and the difference between the first ratio and the second ratio, wherein the first ratio is the ratio of the width to the height of the first candidate prediction frame, the second ratio is the ratio of the width to the height of the second candidate prediction frame, and the first candidate prediction frame and the second candidate prediction frame are adjacent candidate prediction frames; Input the specified feature information between adjacent candidate prediction boxes into the message communication neural network to obtain feature vectors of multiple candidate prediction boxes; Inputting the feature vector into a feature post-processing neural network to obtain target confidences of respective candidate prediction boxes; Determining a target frame from the multiple candidate prediction frames according to the target confidence, and sending information of the target frame to a display device so that the display device displays the target frame; The feature extraction neural network is trained in the following way: Get training images from the training dataset; Inputting the training image into the object detection network to obtain training prediction box information, wherein the training prediction box information includes information of each of a plurality of training prediction boxes, and the training prediction box is an area in the training image; Determine an intersection-and-union ratio between adjacent training prediction frames among the multiple training prediction frames, and use a training prediction frame corresponding to an intersection-and-union ratio greater than a preset threshold as a target training prediction frame; The training feature information between adjacent prediction frames in the target training prediction frame is determined, the training feature information is used as real label data, a preset loss function is used to train the neural network, and when the neural network training is completed, the feature extraction neural network is obtained.

2. The target detection method according to claim 1, It is characterized in that The determining the target frame from the multiple candidate prediction frames according to the target confidence comprises one of the following: Taking a preset number of candidate prediction boxes with the highest target confidence as the target box; The candidate prediction box whose target confidence is greater than a preset confidence threshold is used as the target box.

3. The target detection method according to claim 1, It is characterized in that The feature extraction neural network obtains specified feature information between adjacent candidate prediction boxes through the processing of the fully connected layer and the ReLU layer, and the message communication neural network obtains feature vectors of multiple candidate prediction boxes through the fully connected layer, the ReLU layer, the Concatenate operation, and the Pooling operation.

4. The target detection method according to any one of claims 1 to 3, It is characterized in that The message communication neural network is a learnable NMS neural network.

5. A target detection system, It is characterized in that The system is deployed on an in-memory computing chip, and includes a target detection network, a feature extraction neural network, a message communication neural network, a feature post-processing neural network, and a result output module; The object detection network is used to process the image to be detected and output candidate prediction box information, wherein the candidate prediction box information includes information of each of a plurality of candidate prediction boxes, and the candidate prediction box is an area in the image to be detected; The feature extraction neural network is used to process the candidate prediction frame information and output designated feature information between adjacent candidate prediction frames, wherein the designated feature information between adjacent candidate prediction frames includes: the confidence that the target object is contained in the first candidate prediction frame, the confidence that the target object is contained in the second candidate prediction frame, the intersection-and-union ratio between the first candidate prediction frame and the second candidate prediction frame, the X-axis distance between the center point of the first candidate prediction frame and the center point of the second candidate prediction frame, the Y-axis distance between the center point of the first candidate prediction frame and the center point of the second candidate prediction frame, the ratio of the height of the first candidate prediction frame to the height of the second candidate prediction frame, the ratio of the width of the first candidate prediction frame to the width of the second candidate prediction frame, and the difference between the first ratio and the second ratio, wherein the first ratio is the ratio of the width to the height of the first candidate prediction frame, the second ratio is the ratio of the width to the height of the second candidate prediction frame, and the first candidate prediction frame and the second candidate prediction frame are adjacent candidate prediction frames; The message communication neural network is used to process the specified feature information between adjacent candidate prediction boxes and output feature vectors of multiple candidate prediction boxes; The feature post-processing neural network is used to process the feature vector and output target confidence of each of the multiple candidate prediction boxes; The result output module is used to determine a target frame from the multiple candidate prediction frames according to the target confidence, and send information of the target frame to a display device so that the display device displays the target frame; The feature extraction neural network is trained in the following way: Get training images from the training dataset; Inputting the training image into the object detection network to obtain training prediction box information, wherein the training prediction box information includes information of each of a plurality of training prediction boxes, and the training prediction box is an area in the training image; Determine an intersection-and-union ratio between adjacent training prediction frames among the multiple training prediction frames, and use a training prediction frame corresponding to an intersection-and-union ratio greater than a preset threshold as a target training prediction frame; The training feature information between adjacent prediction frames in the target training prediction frame is determined, the training feature information is used as real label data, a preset loss function is used to train the neural network, and when the neural network training is completed, the feature extraction neural network is obtained.

6. The target detection system according to claim 5, It is characterized in that The result output module is used to determine the target frame from the multiple candidate prediction frames according to the target confidence in one of the following ways: Taking a preset number of candidate prediction boxes with the highest target confidence as the target box; The candidate prediction box whose target confidence is greater than a preset confidence threshold is used as the target box.

7. The target detection system according to claim 5, It is characterized in that The feature extraction neural network is used to obtain specified feature information between adjacent candidate prediction boxes through processing of a fully connected layer and a ReLU layer, and the message communication neural network is used to obtain feature vectors of multiple candidate prediction boxes through a fully connected layer, a ReLU layer, a Concatenate operation, and a Pooling operation.

8. An in-memory computing chip, It is characterized in that A target detection system comprising any one of claims 5 to 7.