Target detection method, computer device, computer readable storage medium and vehicle
By rasterizing the three-dimensional point cloud of the vehicle's driving environment and weighting it with an attention mechanism, the problem of difficulty in detecting long-distance targets in the existing technology is solved, and accurate detection of long- and near-distance targets is achieved, improving detection efficiency and accuracy. sex.
Patent Information
- Application Number
- CN202210564922.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-05-23
AI Technical Summary
Existing target detection methods are difficult to quickly and accurately detect long-distance targets, resulting in vehicles being unable to maintain a sufficient safe distance when driving at high speeds, increasing driving risks.
By rasterizing the three-dimensional point cloud of the vehicle driving environment, determining the sparsity of each point cloud grid and calculating the convolution hole rate, performing hole sparse convolution processing, extracting point cloud raster features, and using attention The mechanism weights the features to obtain global point cloud features for target detection.
It achieves accurate detection of long-distance and short-range targets, improves the accuracy of target detection, reduces the amount of calculation and shortens detection time through sparse convolution.
Smart Images

Figure CN115082891B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and specifically provides a target detection method, a computer device, a computer-readable storage medium, and a vehicle. Background Art
[0002] In order to ensure the driving safety of the vehicle, it is usually necessary to detect targets such as vehicles or pedestrians in the driving environment during the driving process, and then control the vehicle to maintain a certain safe distance from these targets according to the positions of these targets. However, the current conventional target detection method is only applicable to the detection of close-range targets and cannot quickly and accurately detect distant targets. The safety distance requirement for vehicles is even greater when driving at high speeds. If distant targets cannot be detected in a timely and accurate manner, a sufficient safety distance cannot be guaranteed, thereby increasing the driving risk of the vehicle.
[0003] Accordingly, the art needs a new technical solution to solve the above problems. Summary of the invention
[0004] In order to overcome the above-mentioned defects, the present invention is proposed to provide a target detection method, a computer device, a computer-readable storage medium and a vehicle that solve or at least partially solve the technical problem of how to detect distant targets in a timely and accurate manner.
[0005] In a first aspect, the present invention provides a target detection method, the method comprising:
[0006] Rasterizing the point cloud space of the three-dimensional point cloud in the vehicle driving environment to form a plurality of three-dimensional point cloud grids, and using the point cloud grid containing the three-dimensional point cloud as the target point cloud grid;
[0007] According to the sparsity of each of the target point cloud grids, determining the convolution void rate corresponding to each of the target point cloud grids, wherein the convolution void rate is positively correlated with the sparsity;
[0008] Performing dilation processing on the sparse convolution according to the convolution dilation rate to form a dilated sparse convolution;
[0009] Extracting point cloud grid features of the corresponding target point cloud grid through the hole sparse convolution;
[0010] The point cloud grid features are weighted using an attention mechanism to obtain global point cloud features;
[0011] Target detection is performed according to the global point cloud features.
[0012] In a technical solution of the above target detection method, before the step of “determining the convolution void rate corresponding to each of the target point cloud grids according to the sparsity of each of the target point cloud grids”, the method further includes determining the sparsity of each of the target point cloud grids in the following manner:
[0013] Obtain the point cloud grids adjacent to the current target point cloud grid within a preset neighborhood range;
[0014] Determining the number of grids of the target point cloud grid in the adjacent point cloud grids;
[0015] The sparsity of the current target point cloud grid is determined according to the number of grids.
[0016] In a technical solution of the above target detection method, the step of "determining the convolution void rate corresponding to each of the target point cloud grids according to the sparsity of each of the target point cloud grids" specifically includes determining the convolution void rate corresponding to the current target point cloud grid according to the sparsity of the current target point cloud grid by the following formula:
[0017]
[0018] Among them, d r represents the convolution void rate, N represents the number of grids of the adjacent point cloud grids, M represents the number of grids of the target point cloud grid in the adjacent point cloud grids, represents sparsity, s1 and s2 represent preset hyperparameters, Indicates a round-up operation.
[0019] In a technical solution of the above target detection method, the step of “adopting an attention mechanism to weight the point cloud grid features to obtain global point cloud features” specifically includes:
[0020] rasterizing the point cloud space of the three-dimensional point cloud in the vehicle driving environment again to form a plurality of three-dimensional super grids, wherein the super grid includes a plurality of the point cloud grids;
[0021] For each of the supergrids, the point cloud grid features of each point cloud grid in the supergrid are weighted by using an attention mechanism to obtain a first attention weighted feature of each point cloud grid, and the supergrid features of the supergrid are determined according to the first attention weighted feature;
[0022] Using an attention mechanism to weight the super-grid features of the super-grids respectively, to obtain a second attention weighted feature of each super-grid;
[0023] The global point cloud feature is obtained according to the first attention weighted feature of each point cloud grid and the second attention weighted feature of the super grid feature to which each point cloud grid belongs.
[0024] In a technical solution of the above-mentioned target detection method, the step of "obtaining the global point cloud feature according to the first attention weighted feature of each point cloud grid and the second attention weighted feature of the super grid feature to which each point cloud grid belongs" specifically includes:
[0025] Performing feature splicing on the first attention weighted feature of each point cloud grid and the second attention weighted feature of the super grid feature to which each point cloud grid belongs, and acquiring the global point cloud feature according to the result of feature splicing;
[0026] or,
[0027] Feature splicing is performed on the first attention weighted feature of each point cloud grid, the super grid feature of the super grid feature to which each point cloud grid belongs, and the second attention weighted feature, and the global point cloud feature is obtained according to the result of feature splicing.
[0028] In a technical solution of the above target detection method, the step of “determining the supergrid feature of the supergrid according to the first attention weighted feature” specifically includes:
[0029] The first attention weighted features of each point cloud grid in the super grid are averaged to obtain a mean feature, and the mean feature is used as the super grid feature of the point cloud super grid.
[0030] In a technical solution of the above target detection method, before the step of "rasterizing the point cloud space of the three-dimensional point cloud in the vehicle driving environment to form a plurality of three-dimensional point cloud grids", the method further includes:
[0031] The three-dimensional point cloud in the vehicle driving environment is obtained through a long-distance environment perception device.
[0032] In a second aspect, a computer device is provided, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the target detection method described in any one of the technical solutions of the above-mentioned target detection method.
[0033] In a third aspect, a computer-readable storage medium is provided, which stores a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the target detection method described in any one of the technical solutions of the above-mentioned target detection method.
[0034] In a fourth aspect, a vehicle is provided, the vehicle comprising the computer device described in the above-mentioned computer device technical solution.
[0035] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0036] In the technical solution of the present invention, the point cloud space of the three-dimensional point cloud in the vehicle driving environment can be rasterized to form multiple three-dimensional point cloud grids, and the point cloud grid containing the three-dimensional point cloud is used as the target point cloud grid. After determining the target point cloud grid, the convolution void rate corresponding to each target point cloud grid is determined according to the sparsity of each target point cloud grid, and the convolution void rate is positively correlated with the sparsity; the sparse convolution is processed according to the convolution void rate to form a void sparse convolution; the point cloud grid features of the corresponding target point cloud grid are extracted through the void sparse convolution. Finally, the attention mechanism is used to weight the point cloud grid features to obtain the global point cloud features, and the target detection is performed based on the global point cloud features.
[0037] Through the above implementation, whether it is a long-distance target or a close-distance target, rich features can be extracted for target detection, thereby improving the accuracy of target detection. In addition, the point cloud grid features extracted by sparse convolution are sparse, and using such sparse point cloud grid features for target detection can significantly reduce the amount of calculation, thereby reducing the detection time of target detection.
[0038] Furthermore, in the technical solution for implementing the present invention, when the attention mechanism is used to weight the point cloud grid features and obtain the global point cloud features, the point cloud space of the three-dimensional point cloud in the vehicle driving environment can be rasterized again to form multiple three-dimensional super grids, and the super grid includes multiple point cloud grids; for each super grid, the attention mechanism is used to weight the point cloud grid features of each point cloud grid in the super grid respectively to obtain the first attention weighted features of each point cloud grid, and the super grid features of the super grid are determined according to the first attention weighted features; the attention mechanism is used to weight the super grid features of the super grid respectively to obtain the second attention weighted features of each super grid; the global point cloud features are obtained according to the first attention weighted features of each point cloud grid and the second attention weighted features of the super grid features to which each point cloud grid belongs.
[0039] The global point cloud features obtained through the above implementation method integrate the global features of the point cloud grid features in the local area of the super grid and the global features of the point cloud grid features in the entire point cloud space. In this way, when performing target detection based on the global point cloud features, global features at different levels can be taken into account, thereby further improving the accuracy of target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. Among them:
[0041] Figure 1 is a schematic flow chart of main steps of a target detection method according to an embodiment of the present invention;
[0042] Figure 2 1 is a flow chart of main steps of a method for determining a convolution void rate corresponding to a target point cloud grid according to an embodiment of the present invention;
[0043] Figure 3 It is a flowchart of the main steps of a method for weighting point cloud grid features using an attention mechanism to obtain global point cloud features according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0045] In the description of the present invention, "processor" may include hardware, software or a combination of the two. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Computer-readable storage media include any suitable medium that can store program code, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc.
[0046] See attached Figure 1 , Figure 1 FIG. 1 is a schematic flow chart of the main steps of a target detection method according to an embodiment of the present invention. Figure 1 As shown, the target detection method in the embodiment of the present invention mainly includes the following steps S101 to S106.
[0047] Step S101: performing rasterization processing on the point cloud space of the three-dimensional point cloud in the vehicle driving environment to form a plurality of three-dimensional point cloud grids, and taking the point cloud grid containing the three-dimensional point cloud as the target point cloud grid.
[0048] A three-dimensional point cloud refers to three-dimensional data determined based on the echo signal reflected back to the vehicle after the environmental point in the vehicle's driving environment receives the electromagnetic wave sent by the vehicle to it, and the three-dimensional data contains the coordinates of the environmental point in the three-dimensional coordinate system. In an embodiment of the present invention, the vehicle can send electromagnetic waves to the environmental points in the driving environment through environmental perception devices such as radar, wherein the radar includes but is not limited to millimeter-wave radar and laser radar. In some embodiments, a three-dimensional point cloud in the vehicle's driving environment can be obtained through a long-distance environmental perception device, and a three-dimensional point cloud within a long range can be collected through the long-distance environmental perception device, so that the detection of distant targets can be realized. In a preferred embodiment, a laser radar can be used as a long-distance environmental perception device, and a three-dimensional point cloud in the vehicle's driving environment can be obtained through the laser radar.
[0049] Point cloud space refers to the three-dimensional space formed by the point cloud coordinate system of the three-dimensional point cloud. The point cloud space is divided according to the three dimensions of the x, y and z axes in the point cloud coordinate system to form multiple three-dimensional point cloud grids. A point cloud grid is a voxel (Volume Pixel) in the point cloud space.
[0050] Step S102: According to the sparsity of each target point cloud grid, determine the convolution dilated rate corresponding to each target point cloud grid, and the convolution dilated rate is positively correlated with the sparsity.
[0051] Sparsity refers to the distribution of other target point cloud grids around the target point cloud grid. If the number of other target point cloud grids around is greater, the sparsity is smaller; if the number of other target point cloud grids around is smaller, the sparsity is greater.
[0052] The convolution dilation rate is positively correlated with the sparsity, which means that the greater the sparsity, the greater the convolution dilation rate, and the smaller the sparsity, the smaller the convolution dilation rate.
[0053] The smaller the sparsity, the more three-dimensional point clouds there are around the target point cloud grid (there are many other target point cloud grids around, so there are more three-dimensional point clouds). Using a smaller hole rate to process the sparse convolution, you can extract richer local detail features through hole sparse convolution; the larger the sparsity, the fewer three-dimensional point clouds there are around the target point cloud grid (there are fewer other target point cloud grids around, so there are fewer three-dimensional point clouds). Using a larger hole rate to process the sparse convolution, you can extract the features of the three-dimensional point clouds far away from the current target point cloud grid through hole sparse convolution to enrich the features of the current target point cloud grid. In this way, whether it is a long-distance target or a close-distance target, rich features can be extracted for target detection, which improves the accuracy of target detection.
[0054] Step S103: Dilate the sparse convolution according to the convolution dilation rate to form a dilated sparse convolution.
[0055] In this embodiment, the conventional hole processing method in the field of convolution technology can be used to perform hole processing on the sparse convolution using the convolution hole rate determined in step S102. The embodiment of the present invention does not specifically limit the method of hole processing, as long as the sparse convolution can be processed according to the convolution hole rate to form a hole sparse convolution.
[0056] Step S104: extracting point cloud grid features of the corresponding target point cloud grid through hole sparse convolution.
[0057] In this embodiment, the point cloud data of the target point cloud grid can be input into the hole sparse convolution, and the point cloud grid features can be obtained by performing convolution operation on the input point cloud data through the hole sparse convolution. In the case of multiple layers of sparse convolution, for the first layer of sparse convolution, the input point cloud data is the initial point cloud grid features of the point cloud grid; for non-first layer of sparse convolution, the input point cloud data is the output data of the previous layer of sparse convolution.
[0058] Among them, when the point cloud space of the three-dimensional point cloud in the vehicle driving environment is rasterized to form multiple three-dimensional point cloud grids in step S101, the coordinate mean of the three-dimensional point cloud in each point cloud grid can be calculated, and the coordinate mean is used as the initial point cloud grid feature of each point cloud grid.
[0059] It should be noted that, in the case of multiple layers of sparse convolution, each layer of sparse convolution can be processed with a hole according to the method described in step S102 to step S103 to form a hole sparse convolution. In other embodiments, a part of the sparse convolution can also be processed with a hole according to the method described in step S102 to step S103 to form a hole sparse convolution. Those skilled in the art can flexibly select the sparse convolution to be processed with a hole according to actual needs, and the embodiment of the present invention does not specifically limit this.
[0060] Step S105: Use the attention mechanism to weight the point cloud grid features to obtain global point cloud features.
[0061] In this embodiment, a global attention mechanism algorithm can be used to weight the point cloud grid features to obtain global point cloud features.
[0062] The attention mechanism is used to weight the point cloud grid features, and the obtained global point cloud features realize the global information fusion of the point cloud grid features. Therefore, target detection based on the global point cloud features can further improve the accuracy of target detection.
[0063] Step S106: performing target detection based on global point cloud features.
[0064] In this embodiment, the targets include at least pedestrians, motor vehicles and non-motor vehicles, etc. Those skilled in the art can flexibly set the target type to be detected according to actual needs.
[0065] Based on the method described in steps S101 to S106, whether it is a long-distance target or a short-distance target, rich features can be extracted for target detection, thereby improving the accuracy of target detection. At the same time, using sparse convolution for target detection can significantly reduce the amount of calculation, thereby reducing the detection time of target detection and improving detection efficiency.
[0066] The above steps S102 and S105 are further explained below.
[0067] Since the sparsity represents the distribution of other target point cloud grids around the target point cloud grid, the sparsity can be determined according to the number of other target point cloud grids around the target point cloud grid. Figure 2 In some implementations of the above step S102, the sparsity of the target point cloud grid may be determined through the following steps S1021 to S1024.
[0068] Step S1021: Acquire point cloud grids that are adjacent to the current target point cloud grid within a preset neighborhood range.
[0069] The preset neighborhood range refers to a certain range in the point cloud space with the current target point cloud grid as the center. Since the sparsity represents the distribution of other target point cloud grids around the target point cloud grid, the size of the preset neighborhood range will directly affect whether the determination of sparsity is accurate.
[0070] In some preferred embodiments, the size of the preset neighborhood range can be determined according to the receptive field (Receptive Field) of the sparse convolution. If the sparsity of the target point cloud grid in the neighborhood range is small, it indicates that there are more point cloud features in the receptive field of the sparse convolution, and there is no need to use a larger convolution void rate to expand the receptive field to extract rich features; if the sparsity of the target point cloud grid in the neighborhood range is large, it indicates that there are fewer point cloud features in the receptive field of the sparse convolution, and a larger convolution void rate is needed to expand the receptive field to extract rich features. Since the convolution kernel size can represent the size of the receptive field of the sparse convolution, in this embodiment, the size of the neighborhood range can be determined according to the convolution kernel size of the sparse convolution. Specifically, if the convolution kernel size of the sparse convolution is D×D×D, then the preset neighborhood range is the three-dimensional space range formed by D×D×D point cloud grids, and D>1. For the point cloud grid located at the center of this three-dimensional space range, the other D×D×D-1 point cloud grids in the three-dimensional space range are all adjacent point cloud grids. For example, the convolution kernel size of the sparse convolution is 3×3×3. In the three-dimensional space range formed by 3×3×3 point cloud grids, for the point cloud grid located at the center of this three-dimensional space range, the other 26 point cloud grids are adjacent grids.
[0071] Determining the preset neighborhood range according to the receptive field of the sparse convolution can more accurately evaluate the sparsity of the target point cloud grid, thereby improving the accuracy of determining the convolution void rate using sparsity.
[0072] Step S1022: Determine the number of grids of the target point cloud grid in the adjacent point cloud grids.
[0073] Step S1023: Determine the sparsity of the current target point cloud grid according to the number of grids.
[0074] The sparsity is negatively correlated with the number of grids. The more grids there are, the smaller the sparsity is. The fewer grids there are, the larger the sparsity is. Specifically, in some embodiments, the sparsity S can be calculated by the following formula (1): p .
[0075]
[0076] In formula (1), N represents the total number of point cloud grids adjacent to the current target point cloud grid, and M represents the number of target point cloud grids in the adjacent point cloud grids.
[0077] Step S1024: Determine the convolution void rate corresponding to each target point cloud grid according to the sparsity of each target point cloud grid.
[0078] The positive correlation between the convolution void rate and the sparsity means that the greater the sparsity, the greater the convolution void rate, and the smaller the sparsity, the smaller the convolution void rate. Specifically, in some embodiments, the convolution void rate corresponding to the target point cloud grid can be determined by the following formula (2).
[0079]
[0080] In formula (2), d r represents the convolution void rate, N represents the number of adjacent point cloud grids, M represents the number of target point cloud grids in the adjacent point cloud grids, represents sparsity, s1 and s2 represent preset hyperparameters, It should be noted that those skilled in the art can flexibly set the specific values of the preset hyperparameters s1 and s2 according to actual needs. The values of s1 and s2 can be equal or unequal. For example, in some preferred embodiments, the preset hyperparameters s1=1 and s2=1.
[0081] Through the above steps S1021 to S1024, the sparsity of each target point cloud grid can be accurately obtained, and then the convolution void rate corresponding to each target point cloud grid can be accurately determined.
[0082] The above is a further description of step S102 , and the following is a further description of step S105 .
[0083] In some implementations of the above step S105, a multi-level attention mechanism can be used to weight the point cloud grid features, so that the acquired global point cloud features can simultaneously integrate the global features of the point cloud grid features in the local area of the super grid and the global features of the point cloud grid features in the entire point cloud space. In this way, when performing target detection based on the global point cloud features, global features at different levels can be taken into account, thereby improving the accuracy of target detection. Figure 3 In this embodiment, the point cloud grid features can be weighted through the following steps S1051 to S1055 to obtain global point cloud features.
[0084] Step S1051: rasterizing the point cloud space of the three-dimensional point cloud in the vehicle driving environment again to form a plurality of three-dimensional super grids, wherein the super grid includes a plurality of point cloud grids.
[0085] The method of rasterizing the point cloud space again in this embodiment is similar to the method of rasterizing the point cloud space in the aforementioned step S101, the main difference being that the size of the super grid formed by the rasterization process in step S1051 is larger than the size of the point cloud grid formed by the rasterization process in step S101.
[0086] Step S1052: For each super grid, the attention mechanism is used to weight the point cloud grid features of each point cloud grid in the super grid respectively to obtain the first attention weighted features of each point cloud grid.
[0087] In this embodiment, a global attention mechanism algorithm can be used to weight the point cloud grid features to obtain a first attention weighted feature.
[0088] Step S1053: Determine the super-grid feature of the super-grid according to the first attention weighted feature.
[0089] Since each supergrid includes multiple point cloud grids, after determining the first attention weighted features of each point cloud grid, the supergrid features of the supergrid can be determined based on the first attention weighted features of the point cloud grids in the supergrid. In some preferred embodiments, the first attention weighted features of each point cloud grid in the supergrid can be averaged to obtain a mean feature, and the mean feature is used as the supergrid feature of the point cloud supergrid. The mean feature can more intuitively represent the feature trend of the supergrid, which is conducive to improving the accuracy of subsequent steps when using the global point cloud features determined by the supergrid features for target detection.
[0090] Step S1054: using the attention mechanism to weight the super-grid features of the super-grid respectively, to obtain the second attention weighted features of each super-grid.
[0091] In this embodiment, the global attention mechanism algorithm can also be used to weight the super grid features to obtain the second attention weighted features.
[0092] Step S1055: Obtain the global point cloud feature according to the first attention weighted feature of each point cloud grid and the second attention weighted feature of the super grid feature to which each point cloud grid belongs.
[0093] The global point cloud features determined by the first attention weighted features and the second attention weighted features are combined with the global features of the point cloud grid features in the local area of the super grid and the global features of the point cloud grid features in the entire point cloud space. In this way, when performing target detection based on the global point cloud features, global features at different levels can be taken into account to improve the accuracy of target detection.
[0094] In some implementations, the first attention weighted feature and the second attention weighted feature may be directly spliced, and the global point cloud feature may be obtained based on the result of the feature splicing. Specifically, in this implementation, the new feature formed by the first attention weighted feature and the second attention weighted feature splicing may be directly used as the global point cloud feature.
[0095] In other embodiments, in addition to splicing the first attention weighted feature with the second attention weighted feature, the super-grid feature of the super-grid feature to which the point cloud grid belongs can also be spliced, so that the global point cloud feature simultaneously integrates the global feature of the point cloud grid feature in the local area of the super-grid, the global feature of the point cloud grid feature in the entire point cloud space, and the super-grid feature, further improving the accuracy of target detection. Specifically, in this embodiment, the first attention weighted feature of each point cloud grid, the super-grid feature of the super-grid feature to which each point cloud grid belongs, and the second attention weighted feature can be spliced, and the new feature formed after the feature splicing is used as the global point cloud feature.
[0096] It should be noted that although the embodiment of the present invention only provides a specific implementation method of using a two-level attention mechanism to weight the point cloud grid features to obtain global point cloud features. However, those skilled in the art can understand that, without departing from the technical principles of the present invention, the two-level attention mechanism can also be expanded, and the point cloud grid features can be weighted by more levels of attention mechanisms to obtain global point cloud features. The technical solutions after the hierarchical expansion or replacement of these attention mechanisms still fall within the scope of protection of the present invention.
[0097] For example, after executing step S1054, step S1055 is not executed, but the point cloud space of the three-dimensional point cloud is once again rasterized to form multiple three-dimensional super-large grids, so that the super-large grid includes multiple super-grids. Then, for each super-large grid, the attention mechanism is used to weight the super-grid features of each super-grid in the super-large grid, and the third attention weighted feature of each super-large grid is obtained. Finally, according to the first attention weighted feature, the second attention weighted feature and the third attention weighted feature, the global point cloud feature is obtained, that is, the point cloud grid feature is weighted by the three-level attention mechanism to obtain the global point cloud feature.
[0098] Through the method described in the above steps S1051 to S1055, more accurate and layered global point cloud features can be obtained, which can significantly improve the accuracy of target detection.
[0099] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
[0100] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0101] Furthermore, the present invention also provides a computer device. In one embodiment of a computer device according to the present invention, the computer device includes a processor and a storage device, the storage device can be configured to store a program for executing the target detection method of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the target detection method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer device can be a device formed by various electronic devices.
[0102] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the target detection method of the above method embodiment, and the program can be loaded and run by the processor to implement the above target detection method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
[0103] Furthermore, the present invention also provides a vehicle. In an embodiment of a vehicle according to the present invention, the vehicle may include the computer device described in the above-mentioned computer device embodiment. In this embodiment, the vehicle may be an autonomous driving vehicle, an unmanned vehicle, or other vehicles. In addition, according to the type of power source, the vehicle in this embodiment may be a fuel vehicle, an electric vehicle, a hybrid vehicle that mixes electric energy and fuel, or a vehicle that uses other new energy sources.
[0104] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A target detection method, characterized in that: The method comprises: Rasterizing the point cloud space of the three-dimensional point cloud in the vehicle driving environment to form a plurality of three-dimensional point cloud grids, and using the point cloud grid containing the three-dimensional point cloud as the target point cloud grid; According to the sparsity of each of the target point cloud grids, determining the convolution void rate corresponding to each of the target point cloud grids, wherein the convolution void rate is positively correlated with the sparsity; Performing dilation processing on the sparse convolution according to the convolution dilation rate to form a dilated sparse convolution; Extracting point cloud grid features of the corresponding target point cloud grid through the hole sparse convolution; The point cloud grid features are weighted using an attention mechanism to obtain global point cloud features; Performing target detection according to the global point cloud features; The method further includes determining the sparsity of each target point cloud grid by: Obtain the point cloud grids adjacent to the current target point cloud grid within a preset neighborhood range; Determining the number of grids of the target point cloud grid in the adjacent point cloud grids; The sparsity of the current target point cloud grid is determined according to the number of grids.
2. The target detection method according to claim 1, characterized in that: The step of “determining the convolution void rate corresponding to each of the target point cloud grids according to the sparsity of each of the target point cloud grids” specifically includes determining the convolution void rate corresponding to the current target point cloud grid according to the sparsity of the current target point cloud grid by the following formula: Among them, d r represents the convolution void rate, N represents the number of grids of the adjacent point cloud grids, M represents the number of grids of the target point cloud grid in the adjacent point cloud grids, represents sparsity, s1 and s2 represent preset hyperparameters, Indicates a round-up operation.
3. The target detection method according to claim 1, characterized in that: The step of "adopting an attention mechanism to weight the point cloud grid features to obtain global point cloud features" specifically includes: rasterizing the point cloud space of the three-dimensional point cloud in the vehicle driving environment again to form a plurality of three-dimensional super grids, wherein the super grid includes a plurality of the point cloud grids; For each of the supergrids, the point cloud grid features of each point cloud grid in the supergrid are weighted by using an attention mechanism to obtain a first attention weighted feature of each point cloud grid, and the supergrid features of the supergrid are determined according to the first attention weighted feature; Using an attention mechanism to weight the super-grid features of the super-grids respectively, to obtain a second attention weighted feature of each super-grid; The global point cloud feature is obtained according to the first attention weighted feature of each point cloud grid and the second attention weighted feature of the super grid feature to which each point cloud grid belongs.
4. The target detection method according to claim 3, characterized in that: The step of "obtaining the global point cloud feature according to the first attention weighted feature of each point cloud grid and the second attention weighted feature of the super grid feature to which each point cloud grid belongs" specifically includes: Performing feature splicing on the first attention weighted feature of each point cloud grid and the second attention weighted feature of the super grid feature to which each point cloud grid belongs, and acquiring the global point cloud feature according to the result of feature splicing; or, Feature splicing is performed on the first attention weighted feature of each point cloud grid, the super grid feature of the super grid feature to which each point cloud grid belongs, and the second attention weighted feature, and the global point cloud feature is obtained according to the result of feature splicing.
5. The target detection method according to claim 3, characterized in that: The step of “determining the supergrid feature of the supergrid according to the first attention weighted feature” specifically includes: The first attention weighted features of each point cloud grid in the super-grid are averaged to obtain a mean feature, and the mean feature is used as the super-grid feature of the super-grid.
6. The target detection method according to claim 1, characterized in that: Before the step of "rasterizing the point cloud space of the three-dimensional point cloud in the vehicle driving environment to form a plurality of three-dimensional point cloud grids", the method further includes: The three-dimensional point cloud in the vehicle driving environment is obtained through a long-distance environment perception device.
7. A computer device comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by the processor to execute the target detection method according to any one of claims 1 to 6.
8. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the target detection method according to any one of claims 1 to 6.
9. A vehicle, characterized in that: The vehicle comprises the computer device of claim 7.
