Multi-task sensing method and device, storage medium and product

By setting the resolution of the front-view image to be higher than that of the surrounding-view image, feature extraction and fusion technology is used to generate high-quality bird's-eye view feature maps, which solves the problem of low task perception accuracy in autonomous driving and improves the accuracy and calculation of perception results. efficiency.

CN118608924APending Publication Date: 2024-09-06CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410802999.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The accuracy of task perception results in existing autonomous driving technology is low, especially when identifying obstacles and drivable areas such as pedestrians and cars on the road.

Method used

By setting the resolution of the front-view image to be greater than the resolution of the peripheral-view image, the first feature extraction network and the second feature extraction network are used to extract features from the image, generate feature maps at multiple downsampling multiples, and perform feature fusion. Depth estimation and voxel grid mapping, generate high-quality bird's-eye view feature maps to perform multi-task perception operations.

Benefits of technology

It improves the accuracy of task perception results, reduces computational complexity and memory consumption, and generates images with more visibility and practical value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608924A
    Figure CN118608924A
Patent Text Reader

Abstract

The invention relates to a multi-task perception method and device, a storage medium and a product, and the method comprises the steps: carrying out the feature extraction of a front-view image through a first feature extraction network, and obtaining a feature map of the front-view image under a plurality of downsampling multiples; performing feature extraction on the panoramic image by using a second feature extraction network to obtain feature maps of the panoramic image under a plurality of downsampling multiples; the first feature extraction network is different from the second feature extraction network, and the resolution of the front view image is greater than that of the panoramic image; obtaining a first bird's-eye view BEV feature map based on the feature maps of the images under the plurality of downsampling multiples; and executing a multi-task sensing operation based on the first BEV feature map to obtain task sensing results corresponding to the multiple tasks. Therefore, the purpose of improving the accuracy of a task sensing result is achieved by setting the resolution ratio of the front view image to be greater than that of the panoramic image in consideration that the front view image has higher information value than the panoramic image during automatic driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving, and in particular to a multi-task perception method, device, storage medium and product. Background Art

[0002] Self-driving cars need to accurately identify obstacles such as pedestrians and cars on the road, accurately locate the obstacles, predict their speed, and identify the drivable areas in order to correctly perform driving tasks.

[0003] At present, cameras are installed on the left front, front, right front, left rear, rear and right rear of the car. The six images of the same size collected by the six cameras are subjected to feature extraction and feature fusion, and then converted into a BEV feature map in the Bird's Eye View (BEV) space, and then the driving task is performed based on the BEV feature map. However, during the test, the technicians found that the accuracy of the task perception results was low. Summary of the invention

[0004] One of the objects of the present invention is to provide a multi-task perception method to solve the problem of low accuracy of task perception results in the prior art; the second object is to provide a multi-task perception device; the third object is to provide a multi-task perception equipment; the fourth object is to provide a computer-readable storage medium; the fifth object is to provide a computer program product.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A multi-task perception method, the multi-task perception method comprising:

[0007] Using a first feature extraction network to extract features from the front view image, and obtaining feature maps of the front view image at multiple downsampling multiples;

[0008] Using a second feature extraction network to extract features from the surrounding view image, and obtaining feature maps of the surrounding view image at multiple downsampling multiples; wherein the first feature extraction network is different from the second feature extraction network, and the resolution of the front view image is greater than the resolution of the surrounding view image;

[0009] Based on the feature maps of each image at multiple downsampling multiples, a first bird's-eye view BEV feature map is obtained;

[0010] A multi-task perception operation is performed based on the first BEV characteristic map to obtain task perception results corresponding to each of the multiple tasks.

[0011] According to the above technical means, considering that the forward view image has higher information value than the surrounding view image during autonomous driving, the accuracy of the task perception results is improved by setting the resolution of the forward view image to be greater than that of the surrounding view image.

[0012] Furthermore, the first bird's-eye view BEV feature map is obtained based on the feature maps of each image at multiple downsampling multiples, including: performing feature fusion on the feature maps of each image at multiple downsampling multiples to obtain a fused feature map of each image at a preset downsampling multiple; and obtaining the first BEV feature map based on the fused feature maps of each image at a preset downsampling multiple.

[0013] According to the above technical means, feature fusion can be used to combine feature maps at different downsampling multiples, thereby generating an image with more visibility and practical value while retaining the original data information. Here, the first BEV feature map is obtained by selecting the fused feature map based on each image at a preset downsampling multiple in order to reduce a certain amount of computing power.

[0014] Furthermore, the first BEV feature map is obtained based on the fused feature maps of the images at a preset downsampling multiple, including: performing depth estimation on the fused feature maps corresponding to the images to obtain depth maps corresponding to the images; converting into corresponding second BEV feature maps based on the depth maps corresponding to the images and corresponding internal and external parameters of the camera; and obtaining the first BEV feature map based on the second BEV feature maps corresponding to the images.

[0015] According to the above technical means, the internal and external parameters of the camera include the posture and position information of the camera. Combined with the depth map corresponding to each image, the pixel points can be accurately mapped into the three-dimensional space.

[0016] Furthermore, the first BEV feature map is obtained based on the second BEV feature map corresponding to each image, including: mapping the feature points in the second BEV feature map corresponding to each image to the corresponding voxel grid; performing a pooling operation on all feature points in each voxel grid, and projecting them onto a two-dimensional plane to obtain the first BEV feature map.

[0017] According to the above technical means, by performing a pooling operation on all feature points in each voxel grid, the computational complexity and memory consumption are reduced while ensuring important information.

[0018] Further, the method of extracting features from the front view image using the first feature extraction network to obtain feature maps of the front view image at multiple downsampling multiples includes: preprocessing the front view image to obtain a preprocessed front view image; extracting features from the preprocessed front view image using the first feature extraction network to obtain feature maps at multiple downsampling multiples; the method of extracting features from the surrounding view image using the second feature extraction network to obtain feature maps of the surrounding view image at multiple downsampling multiples includes: preprocessing the surrounding view image to obtain a preprocessed surrounding view image; and extracting features from the preprocessed surrounding view image using the second feature extraction network to obtain feature maps at multiple downsampling multiples.

[0019] Furthermore, the multi-task perception operation is performed based on the first BEV feature map to obtain task perception results corresponding to each of the multiple tasks, including: performing feature extraction on the first BEV feature map to obtain a third BEV feature map at multiple downsampling multiples; performing feature fusion on the third BEV feature map at multiple downsampling multiples to obtain a fourth BEV feature map at the preset downsampling multiples; performing three-dimensional target detection on the fourth BEV feature map at the preset downsampling multiples to obtain a target detection result; performing upsampling processing on the third BEV feature map at multiple downsampling multiples to obtain multiple fifth BEV feature maps with the same resolution as the first BEV feature map; performing channel stitching processing on the multiple fifth BEV feature maps to obtain a sixth BEV feature map; performing drivable area segmentation processing on the sixth BEV feature map to obtain a drivable area segmentation result.

[0020] Furthermore, the multi-task perception method also includes: pre-training a third feature extraction network based on a sample forward-view image to obtain a pre-trained third feature extraction network; pre-training a fourth feature extraction network based on a sample peripheral view image to obtain a pre-trained fourth feature extraction network; inputting each sample image into a first multi-task learning network including the pre-trained third feature extraction network and the pre-trained fourth feature extraction network to obtain a task perception prediction result corresponding to each task; obtaining a target loss value corresponding to the first multi-task learning network based on the loss weight, task perception prediction result and task perception true result corresponding to each task; training the first multi-task learning network based on the target loss value to obtain a trained second multi-task learning network; wherein the second multi-task learning network includes a first feature extraction network for extracting features from the forward-view image, and a second feature extraction network for extracting features from the peripheral view image.

[0021] A multi-task sensing device, characterized in that the multi-task sensing device comprises:

[0022] A first processing unit is used to extract features from the front view image using a first feature extraction network to obtain feature maps of the front view image at multiple downsampling multiples;

[0023] The first processing unit is further used to extract features from the surrounding image using a second feature extraction network to obtain feature maps of the surrounding image at multiple downsampling multiples; wherein the first feature extraction network is different from the second feature extraction network, and the resolution of the front view image is greater than the resolution of the surrounding view image;

[0024] A second processing unit is used to obtain a first bird's-eye view BEV feature map based on the feature maps of each image at multiple downsampling multiples;

[0025] The task perception unit is used to perform a multi-task perception operation based on the first BEV characteristic map to obtain task perception results corresponding to each of the multiple tasks.

[0026] A multi-task aware device comprises: a processor and a memory configured to store a computer program that can be run on the processor, wherein the processor is configured to execute the steps of the above method when running the computer program.

[0027] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0028] A computer program product comprises a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the steps of the aforementioned method are implemented.

[0029] Beneficial effects of the present invention:

[0030] (1) The present invention takes into account that the forward-view image has higher information value than the surrounding image during autonomous driving, and by setting the resolution of the forward-view image to be greater than the resolution of the surrounding image, the accuracy of the task perception result is improved;

[0031] (2) The present invention can combine feature maps at different downsampling multiples through feature fusion, thereby generating an image with more visibility and practical value while retaining the original data information. Here, the first BEV feature map is obtained by selecting the fused feature map based on each image at a preset downsampling multiple in order to reduce a certain amount of computing power. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 The process diagram of the multi-task perception method in the embodiment of the present invention is as follows Figure 1 ;

[0033] Figure 2A schematic diagram of a camera installation position is provided as an example of an embodiment of the present invention;

[0034] Figure 3 The process diagram of the multi-task perception method in the embodiment of the present invention is as follows Figure 2 ;

[0035] Figure 4 A schematic diagram of the composition structure of a multi-task sensing device in an embodiment of the present invention;

[0036] Figure 5 Schematic diagram of the composition structure of a multi-task sensing device in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0038] The embodiment of the present invention provides a multi-task perception method. Figure 1 The process diagram of the multi-task perception method in the embodiment of the present invention is as follows Figure 1 ,like Figure 1 As shown, the multi-task perception method may include the following steps:

[0039] S101: Perform feature extraction on the front view image using a first feature extraction network to obtain feature maps of the front view image at multiple downsampling multiples.

[0040] S102: extracting features from the surrounding view image using a second feature extraction network to obtain feature maps of the surrounding view image at multiple downsampling multiples; wherein the first feature extraction network is different from the second feature extraction network, and the resolution of the front view image is greater than the resolution of the surrounding view image.

[0041] A camera is installed at the front of the car to capture the front view image of the car, i.e., the front view image. Cameras are also installed at other positions of the car to capture other view images, i.e., the surrounding view images, in addition to the front view image. Each camera captures the corresponding image at the same time, i.e., the time when each camera captures the image can be consistent.

[0042] The embodiment of the present invention illustrates a schematic diagram of a camera installation position, such as Figure 2As shown, cameras are installed at the left front, front, right front, left rear, rear and right rear of the car respectively, among which the image taken by the front camera is the front view image, and the images taken by the left front camera, right front camera, left rear camera, rear and right rear camera are called peripheral view images.

[0043] In the embodiment of the present application, the resolution of the front view image is greater than the resolution of the surrounding view image. For example, the resolution of the front view image is 3840x2048, and the resolution of the surrounding view image is 1920x1280.

[0044] In the embodiment of the present application, the downsampling multiple may include 4, 8, 16 and 32. If the resolution of the front view image is 3840x2048, the first feature extraction network is used to extract features thereon to obtain feature maps with resolutions of 960x512, 480x256, 240x128, and 120x64. If the resolution of the surrounding view image is 1920x1280, the second feature extraction network is used to extract features thereon to obtain feature maps with resolutions of 480x320, 240x160, 120x80, and 60x40.

[0045] In an embodiment of the present application, the first feature extraction network may be Resnet50 or Darknet53, and the second feature extraction network may be Resnet18 or Darknet19.

[0046] S103: Obtain a first bird's-eye view BEV feature map based on the feature maps of each image at multiple downsampling multiples.

[0047] The first bird's-eye view (BEV) BEV feature map refers to the feature map of the image of the car's surroundings observed from the car's bird's-eye view. With the help of the first BEV feature map, detailed information about the car's surroundings can be obtained, such as road structure, obstacle locations, and traffic signs.

[0048] S104: Perform a multi-task perception operation based on the first BEV characteristic map to obtain task perception results corresponding to each of the multiple tasks.

[0049] The first BEV feature map contains detailed information about the car's surroundings, such as road structure, obstacle locations, and traffic lights. This information is crucial for tasks such as perception, decision-making, and planning of the autonomous driving system.

[0050] The multi-task perception operation refers to performing multiple different perception task processing on the first BEV feature map, which may include road detection, vehicle detection, pedestrian detection, traffic sign recognition, etc. Accordingly, the road detection task may output the boundary and category information of the road, the vehicle detection task may output the location, size and speed of the surrounding vehicles, and the traffic sign recognition task may output the type and meaning of the recognized traffic sign.

[0051] In an embodiment of the present invention, considering that the forward view image has higher information value than the surrounding view image during autonomous driving, the accuracy of the task perception result is improved by setting the resolution of the forward view image to be greater than the resolution of the surrounding view image.

[0052] In some embodiments, S102 may include: performing feature fusion on feature maps of each image at multiple downsampling multiples to obtain fused feature maps of each image at a preset downsampling multiple; and obtaining the first BEV feature map based on the fused feature maps of each image at the preset downsampling multiple.

[0053] In an embodiment of the present invention, the feature maps of each image at multiple downsampling multiples are used as inputs of a feature fusion network, and the fused feature maps of each image at a preset downsampling multiple are output. The preset downsampling multiple can be any downsampling multiple among the multiple downsampling multiples. The fused feature map at the preset downsampling multiple not only contains the information of the feature map at the preset downsampling multiple, but also introduces the information of the feature maps at other downsampling multiples through cross-scale fusion, thereby improving the quality and robustness of the fused feature map.

[0054] In the embodiment of the present invention, the feature fusion network may be BiFPN or secondfpn.

[0055] In some embodiments, the first BEV feature map is obtained based on the fused feature maps of the images at a preset downsampling multiple, including: performing depth estimation on the fused feature maps corresponding to the images to obtain the depth maps corresponding to the images; converting the depth maps corresponding to the images and the corresponding internal and external parameters of the camera into the corresponding second BEV feature maps; and obtaining the first BEV feature map based on the second BEV feature maps corresponding to the images.

[0056] In the embodiment of the present invention, the fused feature map of each image is used as the input of the depth estimation model, and the depth map of each image is output, and the depth map includes the depth value of each pixel.

[0057] In an embodiment of the present invention, the internal and external parameters of the camera include internal parameters and external parameters. The internal parameters include the focal length of the camera, the coordinates of the principal point, etc., which describe the conversion relationship between the camera coordinate system and the image coordinate system. The external parameters include the rotation matrix and the translation vector, which describe the conversion relationship between the camera coordinate system and the world coordinate system. Based on the depth map of each image, the two-dimensional coordinates of each pixel point in the depth map in the image coordinate system and the internal parameters of the corresponding camera, the three-dimensional coordinates of each pixel point in the depth map in the camera coordinate system are obtained. Then, using the external parameters of the corresponding camera, the three-dimensional coordinates of each pixel point in the depth map in the camera coordinate system are converted into three-dimensional coordinates in the vehicle coordinate system, that is, the second BEV feature map corresponding to each image is obtained.

[0058] In some embodiments, the first BEV feature map is obtained based on the second BEV feature map corresponding to each image, including: mapping the feature points in the second BEV feature map corresponding to each image to the corresponding voxel grid; performing a pooling operation on all feature points in each voxel grid, and projecting them onto a two-dimensional plane to obtain the first BEV feature map.

[0059] Voxel is the abbreviation of volume element, which is a point with size in three-dimensional space. It can be regarded as a small square, which is equivalent to a pixel in three-dimensional space. For example, a three-dimensional space area is composed of 50 meters in front, behind, left and right of a car. The three-dimensional space area is divided into grids, and each grid can be understood as a voxel.

[0060] In an embodiment of the present invention, the three-dimensional coordinates of the feature points in the second BEV feature map corresponding to each image are divided by the resolution of the voxel grid to obtain the voxel coordinates of each feature point, so as to map the feature points in the second BEV feature map of each image to the corresponding voxel grid.

[0061] Pooling is a dimensionality reduction operation. Pooling all feature points in each voxel grid can extract the maximum value of the feature in each voxel network or the average value of the feature in each voxel grid. By pooling all feature points in each voxel grid, the computational complexity and memory consumption can be reduced while ensuring important information.

[0062] In some embodiments, S101 may include: preprocessing the front view image to obtain a preprocessed front view image; and extracting features from the preprocessed front view image using the first feature extraction network to obtain feature maps at multiple downsampling multiples. S102 may include: preprocessing the surrounding view image to obtain a preprocessed surrounding view image; and extracting features from the preprocessed surrounding view image using the second feature extraction network to obtain feature maps at multiple downsampling multiples.

[0063] In an embodiment of the present invention, preprocessing may include downsampling, filtering, contrast enhancement, etc. For example, the forward-looking image is downsampled from a resolution of 3840x2048 to 960x512, and then the noise and unnecessary details are removed by filtering to make it smoother, and then contrast enhancement is performed to adjust parameters such as brightness and contrast, thereby obtaining a preprocessed forward-looking image. The peripheral image is downsampled from a resolution of 1920x1280 to 960x640, and then the noise and unnecessary details are removed by filtering to make it smoother, and then contrast enhancement is performed to adjust parameters such as brightness and contrast, thereby obtaining a preprocessed forward-looking image. Among them, downsampling can be achieved by directly removing some pixels or using an interpolation algorithm (such as bilinear interpolation, cubic spline interpolation, etc.). Filtering operations include mean filtering, median filtering, Gaussian filtering, etc.

[0064] Furthermore, the preprocessed forward-looking image with a resolution of 960x512 is used as the input of the first feature extraction network, and the feature maps with downsampling multiples of 4, 8, 16, and 32 are output, that is, the feature maps with resolutions of 240x128, 120x64, 60x32, and 30x16. The first feature extraction network here can be Resnet50 or Darknet53. The preprocessed surrounding image with a resolution of 960x640 is used as the input of the second feature extraction network, and the feature maps with downsampling multiples of 4, 8, 16, and 32 are output, that is, the feature maps with resolutions of 240x160, 120x80, 60x40, and 30x20 are output. The second feature extraction network here can be Resnet18 or Darknet19.

[0065] In some embodiments, S103 may include: performing feature extraction on the first BEV feature map to obtain a third BEV feature map at multiple downsampling multiples;

[0066] Performing feature fusion on the third BEV feature graphs under multiple downsampling multiples to obtain a fourth BEV feature graph under the preset downsampling multiple; performing three-dimensional target detection on the fourth BEV feature graph under the preset downsampling multiple to obtain a target detection result;

[0067] The third BEV feature map at multiple downsampling multiples is upsampled to obtain multiple fifth BEV feature maps with the same resolution as the first BEV feature map; the multiple fifth BEV feature maps are channel stitched to obtain a sixth BEV feature map; the sixth BEV feature map is segmented into a drivable area to obtain a drivable area segmentation result.

[0068] In an embodiment of the present invention, the first BEV feature map is used as an input of a feature extraction network, and a third BEV feature map of the first BEV feature map under multiple downsampling multiples is output. The feature extraction network here can be Resnet18 or Darknet19. The downsampling multiples can include 4, 8, 16, and 32.

[0069] In an embodiment of the present invention, the third BEV feature map under multiple downsampling multiples is used as the input of the feature fusion network, and the fourth BEV feature map under the preset downsampling multiple is output. The preset downsampling multiple is any downsampling multiple among the multiple downsampling multiples. The feature fusion network here can be BiFPN or secondfpn.

[0070] In an embodiment of the present invention, the fourth BEV feature map under a preset downsampling multiple is used as the input of the three-dimensional target detection module, and the target detection result is output. The target detection result includes at least one of the following: category, location information, length, width, height, direction and speed of the target object. The target object includes at least one of the following: cars, pedestrians, and green plants.

[0071] In the embodiment of the present invention, channel stitching processing is performed on multiple fifth BEV feature maps, and the resolution of the obtained sixth BEV feature map is the same as the resolution of the first BEV feature map, and the number of its channels is the sum of the number of channels of the multiple fifth BEV feature maps.

[0072] In the embodiment of the present invention, the sixth BEV characteristic map is used as the input of the drivable area segmentation module, and the drivable area segmentation result obtained is usually a binary image or a probability map, including the location and shape information of the drivable area. This information can be used in many aspects of the automatic driving system, such as vehicle deviation warning, lane keeping, and autonomous driving path planning.

[0073] In some embodiments, the multi-task perception method also includes: pre-training a third feature extraction network based on a sample forward-view image to obtain a pre-trained third feature extraction network; pre-training a fourth feature extraction network based on a sample peripheral view image to obtain a pre-trained fourth feature extraction network; inputting each sample image into a first multi-task learning network including the pre-trained third feature extraction network and the pre-trained fourth feature extraction network to obtain a task perception prediction result corresponding to each task; obtaining a target loss value corresponding to the first multi-task learning network based on the loss weight, task perception prediction result and task perception true result corresponding to each task; training the first multi-task learning network based on the target loss value to obtain a trained second multi-task learning network; wherein the second multi-task learning network includes a first feature extraction network for extracting features from the forward-view image, and a second feature extraction network for extracting features from the peripheral view image.

[0074] In the embodiment of the present invention, during model training, two different two-dimensional feature extraction networks for forward vision and circumferential vision are first pre-trained on two-dimensional target detection data respectively, so that the model pays more attention to the target area features, and then the BEV overall network training is performed to improve the model accuracy. The sum of the loss weights corresponding to each of the multiple tasks is 1. In the case of including a three-dimensional target detection task and a drivable area segmentation task, the corresponding loss weights are 0.5.

[0075] Based on the above embodiments, the present invention illustrates a multi-task perception method. Figure 3 The process diagram of the multi-task perception method in the embodiment of the present invention is as follows Figure 2 ,like Figure 3 As shown, the multi-task perception method may include:

[0076] S301: pre-processing the front view image with a resolution of 3840x2048 to obtain a front view image with a resolution of 960x512.

[0077] S302: pre-processing the panoramic image with a resolution of 1920x1280 to obtain a panoramic image with a resolution of 960x640.

[0078] S303: Use the Resnet50 network to extract features from the front view image with a resolution of 960x512, and output feature maps with downsampling multiples of 4, 8, 16, and 32, that is, feature maps with resolutions of 240x128, 120x64, 60x32, and 30x16.

[0079] The Resnet50 network is the first feature extraction network.

[0080] S304: Use the Resnet18 network to extract features from the panoramic image with a resolution of 960x640, and output feature maps with downsampling multiples of 4, 8, 16, and 32, that is, feature maps with resolutions of 240x160, 120x80, 60x40, and 30x20.

[0081] The Resnet18 network is the second feature extraction network.

[0082] S305: Using the BiFPN network, feature fusion is performed on feature maps with resolutions of 240x128, 120x64, 60x32, and 30x16 to obtain a fused feature map of the front view image with a downsampling factor of 16, that is, a fused feature map with a resolution of 60x32.

[0083] S306: Using the BiFPN network, feature fusion is performed on the feature maps with resolutions of 240x160, 120x80, 60x40, and 30x20 to obtain a fused feature map of the panoramic image with a downsampling factor of 16, that is, a fused feature map with a resolution of 60x40.

[0084] S307: Based on the fused feature maps of each image with a downsampling factor of 16, a first BEV feature map with a resolution of 128×128 is obtained.

[0085] It can be understood that the LSS method is used to realize depth estimation, and the intrinsic and extrinsic parameters of the camera are read in, and the fusion feature map of each image with a downsampling factor of 16 is converted to the BEV space in the vehicle coordinate system. The resolution of the first BEV feature map is 128x128, and the physical size of each point is 0.8m, that is, the perception space of the BEV space is 51.2m in the front, back, left and right.

[0086] S308: Use the Resnet18 network to extract features from the first BEV feature map with a resolution of 128x128, and output feature maps with downsampling multiples of 4, 8, 16, and 32, that is, third BEV feature maps with resolutions of 32x32, 16x16, 8x8, and 4x4.

[0087] S309: Use the secondfpn network to perform feature fusion on the third BEV feature maps with resolutions of 32x32, 16x16, 8x8, and 4x4 to obtain a fourth BEV feature map with a downsampling multiple of 16, that is, a fourth BEV feature map with a resolution of 8x8.

[0088] S310: Upsample the third BEV feature map with resolutions of 32x32, 16x16, 8x8, and 4x4 to 128x128 and perform channel stitching to obtain a sixth BEV feature map.

[0089] S311: Use the fourth BEV feature map with a resolution of 8x8 as the input of the three-dimensional object detection module and output the object detection result.

[0090] S312: Using the sixth BEV characteristic map with a resolution of 128×128 as an input of a drivable area segmentation module to obtain a drivable area segmentation result.

[0091] To implement the method of the embodiment of the present invention, based on the same inventive concept, the embodiment of the present invention further provides a multi-task sensing device. Figure 4 FIG. 1 is a schematic diagram of the composition structure of a multi-task sensing device according to an embodiment of the present invention. Figure 4 As shown, the multi-task sensing device 40 includes:

[0092] The first processing unit 401 is used to extract features from the front view image using a first feature extraction network to obtain feature maps of the front view image at multiple downsampling multiples;

[0093] The first processing unit 401 is further used to extract features from the surrounding view image using a second feature extraction network to obtain feature maps of the surrounding view image at multiple downsampling multiples; wherein the first feature extraction network is different from the second feature extraction network, and the resolution of the front view image is greater than the resolution of the surrounding view image;

[0094] The second processing unit 402 is used to obtain a first bird's-eye view BEV feature map based on the feature maps of each image at multiple downsampling multiples;

[0095] The task sensing unit 403 is used to perform a multi-task sensing operation based on the first BEV characteristic map to obtain task sensing results corresponding to each of the multiple tasks.

[0096] In the embodiment of the present invention, considering that the forward view image has higher information value than the surrounding view image during autonomous driving, the accuracy of the task perception result is improved by setting the resolution of the forward view image to be greater than the resolution of the surrounding view image.

[0097] In some embodiments, the second processing unit 402 is further used to perform feature fusion on the feature maps of each image at multiple downsampling multiples to obtain a fused feature map of each image at a preset downsampling multiple; and obtain the first BEV feature map based on the fused feature maps of each image at the preset downsampling multiple.

[0098] In some embodiments, the second processing unit 402 is further used to perform depth estimation on the fused feature maps corresponding to the images to obtain depth maps corresponding to the images; convert the depth maps corresponding to the images and the corresponding internal and external parameters of the camera into corresponding second BEV feature maps; and obtain the first BEV feature map based on the second BEV feature maps corresponding to the images.

[0099] In some embodiments, the second processing unit 402 is further used to map the feature points in the second BEV feature map corresponding to each image to the corresponding voxel grid; perform pooling operation on all feature points in each voxel grid, and project them onto a two-dimensional plane to obtain the first BEV feature map.

[0100] In some embodiments, the first processing unit 401 is further used to preprocess the forward view image to obtain a preprocessed forward view image; perform feature extraction on the preprocessed forward view image to obtain a feature map at multiple downsampling multiples; preprocess the surrounding view image to obtain a preprocessed surrounding view image; perform feature extraction on the preprocessed surrounding view image to obtain a feature map at multiple downsampling multiples.

[0101] In some embodiments, the task perception unit 403 is further used to perform feature extraction on the first BEV feature map to obtain a third BEV feature map at multiple downsampling multiples; perform feature fusion on the third BEV feature map at multiple downsampling multiples to obtain a fourth BEV feature map at the preset downsampling multiples; perform three-dimensional target detection on the fourth BEV feature map at the preset downsampling multiples to obtain a target detection result; perform upsampling processing on the third BEV feature map at multiple downsampling multiples to obtain multiple fifth BEV feature maps with the same resolution as the first BEV feature map; perform channel stitching processing on the multiple fifth BEV feature maps to obtain a sixth BEV feature map; perform drivable area segmentation processing on the sixth BEV feature map to obtain a drivable area segmentation result.

[0102] In some embodiments, it also includes a training unit for pre-training a third feature extraction network based on a sample forward-view image to obtain a pre-trained third feature extraction network; pre-training a fourth feature extraction network based on a sample surrounding view image to obtain a pre-trained fourth feature extraction network; inputting each sample image into a first multi-task learning network including the pre-trained third feature extraction network and the pre-trained fourth feature extraction network to obtain a task-perceived prediction result corresponding to each task; obtaining a target loss value corresponding to the first multi-task learning network based on the loss weight, task-perceived prediction result and task-perceived true result corresponding to each task; training the first multi-task learning network based on the target loss value to obtain a trained second multi-task learning network; wherein the second multi-task learning network includes a first feature extraction network for extracting features from the forward-view image, and a second feature extraction network for extracting features from the surrounding view image.

[0103] The embodiment of the present invention also provides another multi-task sensing device, Figure 5 FIG. 1 is a schematic diagram of the composition structure of a multi-task sensing device in an embodiment of the present invention. Figure 5 As shown, the multi-task perception device 50 includes: a processor 501 and a memory 502 configured to store a computer program that can be run on the processor;

[0104] The processor 501 is configured to execute the method steps in the aforementioned embodiment when running a computer program.

[0105] Of course, in practical applications, Figure 5 As shown, the various components in the multi-task sensing device 50 are coupled together via a bus system 503. It is understood that the bus system 503 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 503 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as bus system 503.

[0106] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present invention do not specifically limit this.

[0107] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.

[0108] In an exemplary embodiment, an embodiment of the present invention further provides a computer-readable storage medium for storing a computer program.

[0109] Optionally, the computer-readable storage medium can be applied to any one of the methods in the embodiments of the present invention, and the computer program enables the computer to execute the corresponding processes implemented by the processor in each method in the embodiments of the present invention. For the sake of brevity, they are not described here.

[0110] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0111] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0112] In addition, all functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art may understand that all or part of the steps of implementing the above-mentioned method embodiments may be completed by hardware related to program instructions, and the aforementioned program may be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical disks.

[0113] The methods disclosed in the several method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.

[0114] The features disclosed in several product embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new product embodiments.

[0115] The features disclosed in several method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0116] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which 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 multi-task perception method, characterized in that: The multi-task perception method comprises: Using a first feature extraction network to extract features from the front view image, and obtaining feature maps of the front view image at multiple downsampling multiples; Using a second feature extraction network to extract features from the surrounding view image, and obtaining feature maps of the surrounding view image at multiple downsampling multiples; wherein the first feature extraction network is different from the second feature extraction network, and the resolution of the front view image is greater than the resolution of the surrounding view image; Based on the feature maps of each image at multiple downsampling multiples, a first bird's-eye view BEV feature map is obtained; A multi-task perception operation is performed based on the first BEV characteristic map to obtain task perception results corresponding to each of the multiple tasks.

2. The multi-task perception method according to claim 1, characterized in that: The method of obtaining a first bird's-eye view BEV feature map based on the feature maps of each image at multiple downsampling multiples includes: Performing feature fusion on the feature maps of each image at multiple downsampling multiples to obtain a fused feature map of each image at a preset downsampling multiple; The first BEV feature map is obtained based on the fusion feature maps of the images at a preset downsampling multiple.

3. The multi-task perception method according to claim 2, characterized in that: The step of obtaining the first BEV feature map based on the fusion feature map of each image at a preset downsampling multiple includes: Performing depth estimation on the fused feature maps corresponding to the images to obtain depth maps corresponding to the images; Based on the depth map corresponding to each image and the corresponding internal and external parameters of the camera, converting into a corresponding second BEV feature map; The first BEV feature map is obtained based on the second BEV feature map corresponding to each image.

4. The multi-task perception method according to claim 3, characterized in that: The obtaining the first BEV feature map based on the second BEV feature map corresponding to each image includes: Mapping the feature points in the second BEV feature map corresponding to each image to the corresponding voxel grid; A pooling operation is performed on all feature points in each voxel grid and projected onto a two-dimensional plane to obtain the first BEV feature map.

5. The multi-task perception method according to claim 1, characterized in that: The method of extracting features from the front view image using the first feature extraction network to obtain feature maps of the front view image at multiple downsampling multiples includes: Preprocessing the front view image to obtain a preprocessed front view image; Using the first feature extraction network to extract features from the preprocessed front view image, to obtain feature maps at multiple downsampling multiples; The method of extracting features from the surrounding image using the second feature extraction network to obtain feature maps of the surrounding image at multiple downsampling multiples includes: Preprocessing the surrounding image to obtain a preprocessed surrounding image; The second feature extraction network is used to extract features from the preprocessed surrounding image to obtain feature maps at multiple downsampling multiples.

6. The multi-task perception method according to claim 1, characterized in that: The performing of a multi-task perception operation based on the first BEV characteristic graph to obtain task perception results corresponding to each of the multiple tasks includes: Performing feature extraction on the first BEV feature map to obtain a third BEV feature map at multiple downsampling multiples; Performing feature fusion on the third BEV feature graphs under multiple downsampling multiples to obtain a fourth BEV feature graph under the preset downsampling multiple; performing three-dimensional target detection on the fourth BEV feature graph under the preset downsampling multiple to obtain a target detection result; The third BEV feature map at multiple downsampling multiples is upsampled to obtain multiple fifth BEV feature maps with the same resolution as the first BEV feature map; the multiple fifth BEV feature maps are channel stitched to obtain a sixth BEV feature map; the sixth BEV feature map is segmented into a drivable area to obtain a drivable area segmentation result.

7. The multi-task perception method according to any one of claims 1 to 6, characterized in that: The multi-task perception method also includes: Pre-training the third feature extraction network based on the sample front view image to obtain a pre-trained third feature extraction network; Pre-training the fourth feature extraction network based on the sample surrounding image to obtain a pre-trained fourth feature extraction network; Inputting each sample image into a first multi-task learning network including the pre-trained third feature extraction network and the pre-trained fourth feature extraction network to obtain a task perception prediction result corresponding to each task; Based on the loss weights corresponding to each task, the task-aware prediction results, and the task-aware actual results, obtaining a target loss value corresponding to the first multi-task learning network; The first multi-task learning network is trained based on the target loss value to obtain a trained second multi-task learning network; wherein the second multi-task learning network includes a first feature extraction network for extracting features from the front view image, and a second feature extraction network for extracting features from the peripheral view image.

8. A multi-task sensing device, characterized in that: The multitasking aware device comprises: a processor and a memory configured to store a computer program capable of running on the processor, Wherein, the processor is configured to execute the steps of the multi-task perception method described in any one of claims 1 to 7 when running the computer program.

9. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the multi-task perception method according to any one of claims 1 to 7 are implemented.

10. A computer program product, comprising a computer program or instructions, which, when executed by a processor, implements the steps of the multi-task perception method according to any one of claims 1 to 7.