Three-dimensional semantic scene completion method, device, and medium
Through the interactive aggregation of binocular images and bird's-eye view BEV, the Stereo volume is constructed, which solves the problems of high cost and low accuracy of 3D semantic scene completion in the existing technology, and achieves efficient and accurate 3D semantic scene completion.
Patent Information
- Application Number
- PCT/CN2024/083430
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2024-03-23
- Publication Date
- 2024-10-03
AI Technical Summary
In the existing 3D semantic scene completion technology, the cost of using LiDAR is high, the portability is poor, and the monocular RGB image has strong fuzziness, which results in the inaccurate 3D semantic scene completion effect and the inability to complete high-fidelity completion efficiently and quickly.
Binocular images are used for three-dimensional semantic scene completion. The target image is processed through the first preset network to obtain image feature information, and a binocular stereoscopic Stereo volume is constructed. The volume is used for three-dimensional semantic scene completion, and the bird's-eye view BEV information is combined for interactive aggregation. , improve the accuracy and authenticity of completion.
It is possible to improve the accuracy and fidelity of three-dimensional semantic scene completion on the basis of cost savings, enhance the portability and completion quality of the device, and is suitable for a variety of complex scenes.
Smart Images

Figure CN2024083430_03102024_PF_FP_ABST
Abstract
Description
Three-dimensional semantic scene completion method, device and medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number 202310316943.4, filed on March 24, 2023, entitled “Three-dimensional semantic scene completion method, device and medium,” the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0003] The present disclosure relates to the field of computer vision technology, and in particular to a three-dimensional semantic scene completion method, device, and medium. Background Art
[0004] At present, with the rapid development of computer vision technology, applications related to computer vision technology (such as autonomous driving, robot navigation, and augmented reality) are also constantly improving.
[0005] In the process of applying sensors in the real world, there are various limitations (limited field of view, measurement noise or sparse results), which lead to the limitation of the sensor's perception and measurement content. Therefore, the 3D semantic scene completion (SSC) technology in computer vision technology can be used to perform geometric and semantic segmentation of the scene to be predicted, and then a dense 3D scene can be inferred from incomplete observations. In related technologies, lidar is usually used in the 3D semantic scene completion system to explicitly combine 3D geometric input to complete 3D semantic scene completion; or the 3D semantic scene completion system can be trained with a large amount of 3D prior knowledge through monocular color RGB (red, green, blue) images to complete 3D semantic scene completion.
[0006] However, using lidar for 3D semantic scene completion in the aforementioned methods is costly and has limited portability. Furthermore, due to the inherent ambiguity of monocular RGB images, 3D semantic scene completion systems trained using monocular RGB images suffer from poor model accuracy, making it impossible to complete 3D semantic scene completion efficiently, quickly, and with high fidelity.
[0007] Public content
[0008] Based on this, it is necessary to provide a three-dimensional semantic scene completion method, device and medium to address the above technical problems. By adopting the method disclosed in the present invention, three-dimensional semantic scene completion can be completed efficiently, quickly and with high fidelity.
[0009] In a first aspect, a three-dimensional semantic scene completion method is provided, the method comprising: processing a target image using a first preset network to obtain image feature information corresponding to the target image, wherein the target image includes a binocular image; constructing a first volume based on the image feature information, wherein the first volume includes a first binocular stereo volume; and performing three-dimensional semantic scene completion based on the first volume.
[0010] In a second aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the steps of the method of the above-mentioned first aspect and any possible implementation of the first aspect are implemented.
[0011] In a third aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method of the above-mentioned first aspect and any possible implementation method of the first aspect are implemented.
[0012] In a fourth aspect, a computer program product is provided, which includes instructions. When the instructions are executed, the steps of the method of the above-mentioned first aspect and any possible implementation manner of the first aspect are implemented.
[0013] When performing 3D semantic scene completion using the method disclosed herein, a target image can first be processed using a first preset network to obtain image feature information corresponding to the target image; a first volume (e.g., a first binocular stereo volume) can then be constructed based on the image feature information; and finally, 3D semantic scene completion can be performed based on the first volume. In this manner, by using the target image to construct a first volume including the first stereo volume and using this first volume to perform 3D semantic scene completion, while saving costs and making the 3D semantic scene completion device portable, the accuracy and fidelity of the 3D semantic scene completion can also be improved because the first volume includes the stereo volume. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] FIG1 is a flow chart of a three-dimensional semantic scene completion method provided by an embodiment of the present disclosure;
[0015] FIG2 is a schematic diagram of a method for completing a three-dimensional semantic scene according to an embodiment of the present disclosure;
[0016] FIG3 is a second schematic diagram of the three-dimensional semantic scene completion method provided by an embodiment of the present disclosure;
[0017] FIG4 is a third schematic diagram of a three-dimensional semantic scene completion method provided by an embodiment of the present disclosure;
[0018] FIG5 is a schematic structural diagram of a three-dimensional semantic scene completion device provided by an embodiment of the present disclosure;
[0019] FIG6 is a structural block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0020] The present disclosure is further described in detail below with reference to the following embodiments and accompanying drawings. It should be understood that the specific embodiments described herein are merely intended to illustrate the relevant disclosure and are not intended to limit the disclosure. It should also be noted that, for ease of description, only portions relevant to the disclosure are shown in the accompanying drawings.
[0021] The following are explanations of the terms appearing in this disclosure:
[0022] 1. Binocular image
[0023] Humans have two eyes, each capable of producing parallax differences in the imagery of the same object, enabling them to clearly perceive the three-dimensional world. Based on this principle, a computer's two eyes are often implemented using binocular vision. Binocular vision involves acquiring image information from two cameras and calculating parallax, enabling the computer to perceive the three-dimensional world. This is the principle behind binocular vision.
[0024] Based on the above principle, computers typically use binocular cameras to capture images of the same target, generating binocular images: left and right images. The pixel positions of the same target in the left and right images differ, creating parallax. This allows the computer system to construct a three-dimensional world. Generally, parallax matching is required to ensure the computer's 3D image quality. (For example, parallax matching involves finding a pair of corresponding pixels in the left and right images of the same target.)
[0025] 2. Stereo Matching
[0026] Binocular stereo matching has long been a research hotspot in binocular vision. A binocular camera captures two viewpoint images of the same scene, one left and one right. Using a stereo matching algorithm, a disparity map (i.e., the left and right images mentioned above) is generated, which in turn generates a depth map. Depth maps have a wide range of applications. Because they record the distance of objects in a scene from the camera, they can be used for measurement, 3D reconstruction, and virtual viewpoint synthesis.
[0027] It should be noted that, in the absence of conflict, the embodiments of the present disclosure, that is, the features of the embodiments, can be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] In recent years, significant progress has been made in AI-based research on computer vision, deep learning, machine learning, image processing, and image recognition. Artificial Intelligence (AI) is an emerging science and technology that studies and develops theories, methods, technologies, and application systems for simulating and extending human intelligence. AI is a comprehensive discipline encompassing numerous technologies, including chips, big data, cloud computing, the Internet of Things, distributed storage, deep learning, machine learning, and neural networks. Computer vision, a key branch of AI, specifically enables machines to understand the world. Computer vision technologies typically include face recognition, liveness detection, fingerprint recognition and anti-counterfeiting verification, biometric recognition, face detection, pedestrian detection, object detection, pedestrian recognition, image processing, image recognition, image semantic understanding, image retrieval, text recognition, video processing, video content recognition, 3D reconstruction, virtual reality, augmented reality, simultaneous localization and mapping (SLAM), computational photography, and robot navigation and positioning. With the research and advancement of artificial intelligence technology, this technology has been applied in many fields, such as security control, urban management, traffic management, building management, park management, facial access, facial attendance, logistics management, warehouse management, robots, intelligent marketing, computational photography, mobile phone imaging, cloud services, smart homes, wearable devices, unmanned driving, autonomous driving, smart medical care, facial payment, facial unlocking, fingerprint unlocking, identity verification, smart screens, smart TVs, cameras, mobile Internet, live streaming, beauty, makeup, medical beauty, smart temperature measurement and other fields.
[0029] The three-dimensional semantic scene completion method provided by the present disclosure can be executed by electronic devices such as vehicle-mounted terminals, cameras, mobile phones, etc., or by a server.
[0030] Optionally, in another embodiment of the present disclosure, FIG1 is a flowchart of a three-dimensional semantic scene completion method provided by an embodiment of the present disclosure. Specifically, referring to FIG1 , the method includes the following steps:
[0031] Step 101: Process a target image using a first preset network to obtain image feature information corresponding to the target image.
[0032] In an embodiment of the present disclosure, the first preset network may be used to extract image feature information from a target image.
[0033] In a possible embodiment, the above-mentioned image feature information may include: image depth information, image structure information, image color information, image parallax information, image line information, etc.
[0034] In the embodiment of the present disclosure, the first preset network may be preset by the terminal device or may be customized by the user.
[0035] In the disclosed embodiment, the first preset network is obtained through learning and training. Specifically, before processing the target image, the first preset network can be trained using a large number of images and their corresponding image feature information to enable it to learn to analyze and extract image feature information from different images.
[0036] In a possible embodiment, the first preset network may be constructed as a two-dimensional UNET for EfficientNetB7.
[0037] In the embodiment of the present disclosure, the target image may be an image captured by a terminal that executes the three-dimensional semantic scene completion method.
[0038] In one possible embodiment, the target image may include a binocular image. The binocular image includes a left-eye image and a right-eye image. For example, when the terminal executing the 3D semantic scene completion method is a vehicle, the vehicle may activate a camera to capture binocular images, i.e., the left-eye image and the right-eye image as target images, and use the EfficientNetB7 to construct a two-dimensional UNET to process the binocular images and collect image feature information from the binocular images.
[0039] Step 102: Construct a first volume based on the above image feature information.
[0040] In the embodiment of the present disclosure, the process of constructing the first volume can be constructed by a volume constructor.
[0041] In the implementation of the present disclosure, the above-mentioned volume constructor can be used to simulate and restore the three-dimensional space information corresponding to the target image based on the image feature information.
[0042] In a possible embodiment, the volume constructor is a binocular stereo volume constructor.
[0043] It can be understood that in the embodiment of the present disclosure, the target image is a two-dimensional plane image, and the three-dimensional semantic scene completion is to restore the three-dimensional spatial information corresponding to the two-dimensional plane image as much as possible based on the two-dimensional plane image. Therefore, through the above-mentioned image feature information, the volume constructor can analyze and calculate the depth information corresponding to the two-dimensional plane image in the three-dimensional space, obtain the three-dimensional image information corresponding to the two-dimensional plane image, and finally present it in the form of "volume".
[0044] In the embodiment of the present disclosure, the first volume may be used to represent three-dimensional data information corresponding to the target image.
[0045] In a possible embodiment, the first volume includes a first binocular stereo volume.
[0046] It can be understood that when the above-mentioned target image includes a binocular image, the binocular image is similar to the human eye, and can better and more comprehensively display the depth information in the same space from different angles through the parallax information of the image, and then accurately restore the three-dimensional spatial information corresponding to the two-dimensional target image.
[0047] Step 103: Perform three-dimensional semantic scene completion based on the first volume.
[0048] It is understandable that after obtaining the first volume containing the depth information, the depth information and three-dimensional space information corresponding to the first volume can be used to complete the three-dimensional semantic scene of the target image.
[0049] In the 3D semantic scene completion method provided in the embodiments of the present disclosure, a target image can be first processed using a first preset network to obtain image feature information corresponding to the target image; a first volume (e.g., a first binocular stereo volume) can then be constructed based on the image feature information; and finally, 3D semantic scene completion can be performed based on the first volume. In this way, by using the target image to construct a first volume including the first stereo volume and using this first volume to perform 3D semantic scene completion, while saving costs and making the 3D semantic scene completion device portable, the accuracy and fidelity of the 3D semantic scene completion can also be improved because the first volume includes the stereo volume.
[0050] In the embodiment described above, it is described how to construct a first volume and perform three-dimensional semantic scene completion based on the first volume. In another embodiment of the present disclosure, it is described how to specifically construct the first volume using binocular images. For example, the "obtaining image feature information corresponding to the above-mentioned target image" involved in the embodiment described above includes: obtaining image feature information corresponding to the above-mentioned binocular image. On this basis, the specific implementation of "constructing the first volume" involved in the embodiment described above includes: obtaining a disparity volume based on the image feature information corresponding to the above-mentioned binocular image; determining the depth volume based on the above-mentioned disparity volume; and determining the above-mentioned first stereo volume based on the above-mentioned depth volume.
[0051] Exemplarily, the above-mentioned disparity volume is a volume generated according to disparity information (ie, image feature information) of the binocular image.
[0052] Illustratively, the depth volume is obtained by further processing and converting the disparity volume.
[0053] It should be noted that the principle of converting a disparity volume into a depth volume is specifically analyzed as follows: the reason for the formation of disparity is that the left and right images are viewed from two different positions. Therefore, the left and right images have a directional difference. On this basis, this directional difference will cause the object to have a certain displacement in the left and right images. This displacement then forms disparity information, which can represent depth information, and then use depth information to represent stereo information in three-dimensional space. Based on this, depth information can be derived from disparity information, that is, the disparity volume can be converted into a depth volume.
[0054] In a possible embodiment, the present disclosure converts the disparity information in the image feature information into a depth volume, and then obtains the first stereo volume by making a specific example description as follows:
[0055] As shown in Figure 2, the first stereo volume constructor uses epipolar constraints to obtain the image feature information corresponding to the binocular images from the left and right images. Then, using group association, the disparity volume is constructed using the image feature information corresponding to the binocular images. The specific construction process can be achieved by the following formula (1):
[0056] Where <·,·> represents the inner product, N c Indicates the number of channels of input features, N g Indicates the number of groups, and They represent the feature group of the image feature information of the g-th left image and the feature group of the image feature information of the right image. Then, the disparity volume is converted into a depth volume. The specific conversion process can be achieved by the following formula (2):
[0057] Among them, f u and f v Indicates the horizontal and vertical focal lengths, (c u , c v ) is the camera center.
[0058] It can be understood that after the above-mentioned depth volume is obtained, the depth volume can be determined as the first Stereo volume.
[0059] In this way, the disparity volume is derived from the image features of the binocular image, and the depth volume is derived from the disparity volume, ultimately determining the first stereo volume. This first stereo volume can then be used for 3D semantic scene completion. This maximizes the accuracy and authenticity of 3D semantic scene completion while controlling costs, improving its quality.
[0060] The aforementioned embodiments describe how to utilize binocular stereo matching technology to construct a first volume using binocular stereo volumes. In another embodiment of the present disclosure, the 3D semantic scene completion solution is further optimized by introducing the concept of a bird's-eye view (BEV) image, utilizing both the bird's-eye view (BEV) and binocular images to complete 3D semantic scene completion. For example, where the target image includes a binocular image and a bird's-eye view (BEV) image, the "obtaining image feature information corresponding to the target image" in the aforementioned embodiments includes obtaining image feature information corresponding to the binocular image and image feature information corresponding to the BEV image. Based on this, the specific implementation of the "constructing a first volume based on the image feature information" mentioned above includes constructing a first stereo volume and a first BEV volume using the image feature information corresponding to the binocular image. Furthermore, following the "constructing a first volume based on the image feature information" mentioned above, the specific implementation further includes interactively aggregating the first stereo volume and the first BEV volume to generate the first volume.
[0061] Exemplarily, the first BEV volume is related to image feature information of the left-eye image.
[0062] It should be noted that the first BEV volume can be constructed only through the image feature information of the left eye image.
[0063] Exemplarily, the image feature information corresponding to the above-mentioned BEV image may include: image depth information, image structure information, image color information, image parallax information, image line information, etc.
[0064] Exemplarily, the processes of constructing the first Stereo volume and constructing the first BEV volume can be constructed respectively through different volume constructors.
[0065] In one embodiment, the volume constructor includes a stereo volume constructor and a BEV volume constructor. The terminal device constructs a first stereo volume using the stereo volume constructor and constructs a first BEV volume using the BEV volume constructor using image feature information corresponding to the BEV image.
[0066] Furthermore, the Stereo volume constructor and the BEV volume constructor are pre-trained volume constructors.
[0067] Exemplarily, after acquiring a binocular image and a bird's-eye view (BEV) image, a first Stereo volume and a first BEV volume are constructed, and finally, relevant information of the first Stereo volume and relevant information of the first BEV volume are interactively aggregated.
[0068] In this way, by interactively aggregating information between the first BEV volume and the first Stereo volume corresponding to the BEV bird's-eye view, the scope of application of three-dimensional semantic scene completion can be further expanded (for example, its applicability in extreme areas with severe occlusion or high reflection), thereby improving the reliability of the three-dimensional semantic scene completion method disclosed in the present invention.
[0069] The aforementioned embodiment describes how to construct a first volume using both BEV and binocular images. Another embodiment of the present disclosure further describes how to utilize BEV. For example, the "constructing the first BEV volume" described in the aforementioned embodiment includes extracting image feature information from the left image; and processing the image feature information from the left image using a first preset algorithm to construct the first BEV volume.
[0070] Exemplarily, the image feature information of the left-eye image can be extracted through the first preset network.
[0071] In a possible embodiment, the first preset network may include a convolutional neural network.
[0072] Exemplarily, the first preset algorithm may be preset by the terminal device or customized by the user.
[0073] In a possible embodiment, the specific implementation of the first BEV volume is as follows:
[0074] As shown in Figure 2, first, the visual features extracted from the left image are input into the convolutional neural network, and the BEV volume, V BEV :
[0075] In the embodiment described above, it is introduced that the first volume can be constructed together with the BEV bird's-eye view and the binocular image. In another embodiment of the present disclosure, it is described how to use data information to improve the quality of the interactive aggregation of the BEV bird's-eye view and the binocular image. For example, the "interactive aggregation of the above-mentioned first Stereo volume and the above-mentioned first BEV volume to generate the first volume" mentioned above includes: based on the information of the above-mentioned first Stereo volume, using the second preset algorithm, generating the first data information corresponding to the above-mentioned first Stereo volume, and based on the information of the above-mentioned first BEV volume, using the above-mentioned second preset algorithm, generating the second data information corresponding to the above-mentioned first BEV volume; using the above-mentioned first data information to generate the second BEV volume, and using the second data information to generate the second Stereo volume; generating the above-mentioned first volume based on the above-mentioned second Stereo volume and the above-mentioned second BEV volume.
[0076] Exemplarily, the second preset algorithm may be preset by the terminal device or may be user-defined, which is not limited in the embodiments of the present disclosure.
[0077] Exemplarily, the second preset algorithm may be used to extract the first stereo volume information and the first BEV volume information, and generate first data information corresponding to the first stereo volume information and second data information corresponding to the first BEV volume.
[0078] Exemplarily, the first data information is used to reliably predict the volume of the first BEV, and the second data information is used to reliably predict the first Stereo.
[0079] In a possible embodiment, the first data information is a first attention matrix corresponding to the first Stereo volume, and the second data information is a second attention matrix corresponding to the first BEV volume.
[0080] It can be understood that the above-mentioned first attention matrix can be used to help the first BEV volume extract more accurate, reliable and useful information in the first BEV volume, and accordingly, the above-mentioned second attention matrix can be used to help the first Stereo volume extract more accurate, reliable and useful information in the first Stereo volume.
[0081] In a possible embodiment, the second preset algorithm may be an algorithm corresponding to a cross-attention operation.
[0082] It should be noted that the above-mentioned cross-attention operation can generate a first attention matrix corresponding to the first Stereo volume and a second attention matrix corresponding to the first BEV volume based on the information of the first Stereo volume and the information of the first BEV volume.
[0083] Exemplarily, the second Stereo volume and the second BEV volume are interactively aggregated to generate the first volume.
[0084] The following is a description with reference to FIG3 and a specific example:
[0085] For the first Stereo volume V Stereo , according to the first Stereo volume, obtain the information in the first Stereo volume, including query Q S ,key K S and value V S (i.e. the information of the first Stereo volume mentioned above) and the information in the first BEV volume, including queryQ B ,key K B and value V B; Then, a guided attention matrix M representing the interactive guidance is constructed using the cross attention operation (i.e., the second preset algorithm mentioned above) S ∈R HW×HW (i.e. the first attention matrix mentioned above), the specific formula of the cross attention operation is as follows: M S =CrossAtt(V Stereo ,V BEV )=softmax(K B T Q S ),(3)
[0086] Similarly, a cross-attention operation (i.e., the second preset algorithm mentioned above) is used to construct a guided attention matrix M representing the interactive guidance. B ∈R HW×HW (i.e. the second attention matrix mentioned above), the specific formula of the cross attention operation is as follows: M B =CrossAtt(V Stereo ,V BEV )=softmax(K S T Q B ),(4)
[0087] After obtaining the above-mentioned guided attention matrix M S and the guided attention matrix M B After that, the attention matrix M can be guided S Cross-combined with the first BEV volume, using the guided attention matrix M S Help the first BEV volume to make a reliable prediction and generate the second BEV volume, which can further improve the reliability compared with the first BEV volume. Similarly, the attention matrix M can be guided S Cross-combined with the first Stereo volume, using the guided attention matrix M B This helps the first Stereo volume to be reliably predicted and generates a second Stereo volume, thereby further improving the reliability compared to the first Stereo volume.
[0088] It can be understood that in this way, the first attention matrix M S The relevant information of the first Stereo volume is taken into account, thus providing another perspective on the spatial importance of the first BEV volume. Similarly, the second attention matrix M B By softmax(K S T Q B ) generation, thus providing another perspective on the spatial importance of the first stereo volume, which can encourage reliable geometric information to interact with each other.
[0089] In this way, by selectively filtering reliable information from the first stereo volume and the first BEV volume, namely the first data information and the second data information, and then using the first data information and the second data information to interactively guide the first BEV volume and the first stereo volume, an updated first volume is obtained through this cross-attention mechanism. Compared with the first volume in the previous embodiment, the reliability of the first volume in this embodiment is further improved.
[0090] In the embodiment described above, it is described how to use data information to improve the interactive aggregation quality of BEV and binocular images. In another embodiment of the present disclosure, it is described how to further improve the interactive aggregation quality of BEV and binocular images, specifically, how to further enhance the reliability of the first data information and the second data information. For example, the "generating first data information corresponding to the first Stereo volume" mentioned above includes: filtering the estimated first data information according to the first prediction confidence information to generate the first data information, and the confidence of the first data information is greater than the second preset threshold; at the same time, the "generating the second data information corresponding to the first BEV volume" mentioned above includes: filtering the estimated second data information according to the second prediction confidence information to generate the second data information, and the confidence of the second data information is greater than the third preset threshold.
[0091] Exemplarily, the first prediction confidence information and the second prediction confidence information are preset by the terminal device.
[0092] In a possible embodiment, the first prediction reliability information may be a preset first confidence map. Similarly, the first prediction reliability information may be a preset second confidence map.
[0093] It can be understood that the first confidence map and the second confidence map are both confidence maps that have been learned and trained and can be directly used to screen the first data information and the second data information.
[0094] Exemplarily, the estimated first data information refers to data information that has been generated by using a second preset algorithm before the first data information.
[0095] Exemplarily, the estimated second data information refers to data information that has been generated by using a second preset algorithm before the second data information.
[0096] It can be understood that this embodiment updates the data information that has already been generated. Based on this, the content described in this embodiment is how to further improve and enhance the reliability of the data information based on the data information that has already been generated.
[0097] Exemplarily, the second preset threshold is used to indicate a threshold corresponding to data information in the first data information that is estimated to meet the requirements for three-dimensional semantic scene completion.
[0098] Exemplarily, the third preset threshold is used to indicate a threshold corresponding to data information in the second data information that is estimated to meet the three-dimensional semantic scene completion requirement.
[0099] It is understandable that, generally, the first data information and the second data information both contain multiple pieces of information, but not all of the data information meets the quality requirements. On this basis, the first data information and the second data information are screened using the first prediction confidence information and the second prediction confidence information, respectively. If the threshold corresponding to a portion of the data information in the first data information is estimated to be higher than the second preset threshold, and the threshold corresponding to a portion of the data information in the second data information is estimated to be higher than the third preset threshold, the portion of data information can be considered to meet the requirements and be reliable, and can be screened out as the first data information and the second data information.
[0100] Exemplarily, the second preset threshold and the third preset threshold may be preset by the terminal device or may be user-defined.
[0101] The following is a specific example to illustrate the execution process of the above embodiment:
[0102] Assume that the terminal device already has a Stereo confidence map C S ∈R H×W (the above-mentioned first prediction confidence information) and BEV confidence map C B ∈R H×W In the case of , the preset softmax function can be used to convert the depth cost value into a probability form, and then the highest probability value is taken as the prediction confidence in all depth hypothesis planes in the depth dimension. The above process of using the preset softmax function and screening the highest probability value as the prediction confidence is shown in the following formula (5):
[0103] In the above formula (5), the preset softmax function is applied to the depth dimension, the preset WTA represents the winner-takes-all operation, and the preset D max Indicates the length of the depth dimension.
[0104] Next, transform the dimension of the Stereo confidence map into And use it to update the previous estimated first attention matrix (i.e. the estimated first data information above) as shown below: S =M S ⊙CS ,(6)
[0105] Where ⊙ represents multiplication, through which the geometric information of reliable regions is preserved, while low-confidence regions are suppressed.
[0106] Finally, the filtered first attention matrix M′ is used S Multiply the value vector V of the first BEV volume B To obtain the interactive second BEV volume V′ BEV (i.e. the volume of the second BEV mentioned above), as shown in the following formula (7): V′ BEV =M′ S ⊙V B (7)
[0107] Similarly, the corresponding interactive Stereo volume V′ Strereo It is generated in a symmetrical way, the specific process is as follows:
[0108] First, the preset softmax function is used to convert the depth cost value into a probability form, and then the highest probability value is taken as the prediction confidence in all depth hypothesis planes in the depth dimension. The above process of using the preset softmax function and screening the highest probability value as the prediction confidence is shown in the following formula (8):
[0109] In the above formula (5), the preset softmax function is applied to the depth dimension, the preset WTA represents the winner-takes-all operation, and the preset D ,ax Indicates the length of the depth dimension.
[0110] Next, the dimension of the BEV confidence map is transformed into And use it to update the previously estimated second attention matrix (i.e. the above-mentioned estimated first data information), as shown in the following formula (9): M′ B =M B ⊙C B ,(9)
[0111] Where ⊙ represents multiplication, through which the geometric information of reliable regions is preserved, while low-confidence regions are suppressed.
[0112] Finally, the filtered second attention matrix M′ is used B Multiply by the value vector V of the first Stereo volume S To obtain the interactive second Stereo volume V′ BEV As shown in the following formula (10): V′ Stereo =M′ B ⊙V S (10)
[0113] To further enhance the effectiveness of the aforementioned data, this embodiment provides a filtering strategy based on depth confidence, which explicitly leverages the geometric information behind the first volume. Its goal is to leverage the depth distribution information in the first volume to enhance the guidance effect similar to that of the attention matrix.
[0114] The aforementioned embodiment describes how to construct a first volume using interactive aggregation of BEV and binocular images. In another embodiment of the present disclosure, a specific method for interactive aggregation using BEV and binocular images is described. For example, the aforementioned "interactive aggregation of the first stereo volume and the first BEV volume to generate the first volume" includes serially aggregating the first BEV volume and the first stereo volume to generate the first volume.
[0115] Exemplarily, the series aggregation may include: performing volume series connection on the first Stereo volume and the first BEV volume, and exchanging information, thereby finally achieving interactive aggregation of the first Stereo volume and the first BEV volume.
[0116] The following is a specific example to illustrate the execution process of the above embodiment:
[0117] First, the first BEV volume and the first Stereo volume are connected in series to generate a series volume V cat , then, the volume V in series cat As input, output aggregate volume V agg (ie the first volume mentioned above).
[0118] It is understandable that, in a specific implementation, the first BEV volume and the first Stereo volume may be connected in series, or the first BEV volume and the first Stereo volume may be improved to generate a second BEV volume and a second Stereo volume, and then connected in series. For example, first, the second BEV volume and the second Stereo volume are connected in series to generate a series volume V′. cat , then, the volume V′ in series cat As input, output aggregate volume V agg (ie the first volume mentioned above).
[0119] In a specific implementation, as shown in FIG4 , the aforementioned “concatenating the first BEV volume and the first Stereo volume to generate a first volume” includes: concatenating the first Stereo volume and the first BEV volume to generate a concatenated volume; calculating the concatenated volume using a third preset algorithm to obtain the transformed representation information in the concatenated volume; compressing the transformed representation information through average pooling to generate a first channel descriptor; capturing the channel dependency corresponding to the first channel descriptor using an excitation layer to generate a second channel descriptor; and calculating the second channel descriptor using a fourth preset algorithm in combination with the transformed representation information to generate the first volume.
[0120] Exemplarily, the third preset algorithm may be preset or user-defined, and this is not limited in the embodiment of the present disclosure.
[0121] In a possible embodiment, the third preset algorithm includes: an algorithm corresponding to residual three-dimensional 3D convolution.
[0122] Exemplarily, the fourth preset algorithm may be preset or user-defined, and this is not limited in the embodiment of the present disclosure.
[0123] The following is a specific example to illustrate the execution process of the above embodiment:
[0124] (1) When the first BEV volume and the first Stereo volume are connected in series, the specific solution is as follows:
[0125] First, the first BEV volume V BEV and the first Stereo volume V Stereo Connect in series to generate a series volume V cat ; Then, the volume of the series As input, output aggregate volume V agg As shown in Figure 3, first connect the volume V cat Input into the residual 3D convolution for regularization and channel adjustment, and generate the transformed representation information V f ∈R C×D×H×W Then, average pooling is used to compress the representation into a channel descriptor z c ∈R C , shrink V along the depth dimension D and the spatial dimension H×W f :
[0126] Subsequently, an excitation layer is used to capture its channel dependencies. Specifically, the channel descriptor is updated to z′ via two stacked bottleneck convolutions with nonlinear activations. c : z′c =σ(W2δ(W1z c )),
[0127] Among them, W1 and W2 represent 1×1×1 convolution for dimension reduction, δ represents the standard GELU nonlinear activation function, and σ represents the Sigmoid function. Then, use z′ c To reweight the previously transformed feature information V along the channel dimension f , by re-weighting and aggregating the information between different channels. The process is expressed as: V agg =P(z′ c ⊙V f ),
[0128] Where P consists of GELU nonlinear activation function, group normalization and point-wise convolution. Point-wise convolution encourages channel-aware mixing with a kernel size of 1×1×1, and the resulting aggregate volume V is agg , the aggregate volume takes into account the characteristics of the first BEV volume and the first Stereo volume.
[0129] (2) When the second BEV volume and the second Stereo volume are connected in series, the specific solution is as follows
[0130] First, the second BEV volume and the second Stereo volume are connected in series to generate a series volume V′ cat , then, the volume of the series As input, output aggregate volume V agg As shown in Figure 3, first connect the volume V' cat Input into the residual 3D convolution for regularization and channel adjustment, and generate the transformed representation information V f ∈R C×D×H×W Afterwards, the representation is compressed into a channel descriptor z using average pooling. c ∈R C , shrink V along the depth dimension D and the spatial dimension H×W f :
[0131] Subsequently, an excitation layer is used to capture its channel dependencies. Specifically, the channel descriptor is updated to z′ via two stacked bottleneck convolutions with nonlinear activations. c : z′ c =σ(W2δ(W1z c )),
[0132] Where W1 and W2 represent 1×1×1 convolution for dimensionality reduction, δ represents the standard GELU nonlinear activation function, and σ represents the Sigmoid function. Then, use z′ cTo reweight the transformed feature information V along the channel dimension f , by re-weighting and aggregating the information between different channels. The process is expressed as: V agg =P(z′ c ⊙V f ),
[0133] Where P consists of GELU nonlinear activation function, group normalization and point-wise convolution. Point-wise convolution encourages channel-aware mixing with a kernel size of 1×1×1, and the resulting aggregate volume V is agg , the aggregate volume takes into account the characteristics of the second BEV volume and the second Stereo volume.
[0134] In this way, through the above-mentioned aggregation method, the respective advantages of Stereo volume and BEV volume are fully utilized, so that the two types of volumes can complement each other and form an effective aggregate volume.
[0135] In the embodiment described above, a detailed description is given of how to construct the first volume using binocular images and BEV images. In another embodiment of the present disclosure, a description is given of how to combine binocular images and BEV images to complete a three-dimensional semantic scene. For example, the "constructing a first BEV volume" mentioned above includes: constructing a first BEV volume and generating contextual feature information; on this basis, the "performing a three-dimensional semantic scene completion based on the first volume" mentioned above includes: generating three-dimensional voxel feature information using the above-mentioned contextual feature information and the above-mentioned first volume; and processing the three-dimensional voxel feature information using a second preset network to complete the three-dimensional semantic scene.
[0136] Exemplarily, the context feature information is feature information associated with the first BEV volume.
[0137] It is understandable that context feature information can be generated synchronously while constructing the first BEV volume.
[0138] In a possible embodiment, the first BEV volume and context feature information are generated by a first BEV volume constructor.
[0139] Exemplarily, the second preset network may be preset by the terminal device or may be customized by the user, which is not limited in the embodiment of the present disclosure.
[0140] In a possible embodiment, the second preset network may be a three-dimensional UNET serving as a codec network.
[0141] The following is a specific example to illustrate the execution process of the above embodiment:
[0142] First, generate the first BEV volume and generate context feature information C BEV Then, the bird's-eye view feature information extracted from the BEV bird's-eye view is placed at a specific position in the BEV bird's-eye view through the outer product operation, and the three-dimensional voxel feature information is aggregated. This process is calculated by the following formula (11):
[0143] Among them, V agg (i.e., the aggregate volume mentioned above) and C BEV First, the deformation is expanded in the channel dimension and the depth dimension respectively.
[0144] Next, the aggregated 3D voxel feature information F is processed using a 3D UNET (i.e., the second UNET mentioned above) as an encoder-decoder network. agg Finally, the 3D void space pyramid pooling ASPP module and the softmax function are used to generate the prediction result, which represents the final three-dimensional completion scene.
[0145] In this way, further processing of the aggregated volume in combination with contextual information can better fuse the representation corresponding to the Stereo volume and the representation corresponding to the BEV volume used to enrich the semantic context, give full play to the respective advantages of the Stereo volume and the BEV volume, complement each other, and improve the accuracy and authenticity of three-dimensional semantic scene completion.
[0146] In the above-mentioned embodiment, a complete flow chart for generating a disparity map is introduced. FIG5 is a schematic diagram of the structure of a 3D semantic scene completion device provided by an embodiment of the present disclosure. The 3D semantic scene completion device 600 includes: an acquisition unit 601, a construction unit 602, and an execution unit 603.
[0147] The acquisition unit 601 is used to process a target image using a first preset network to obtain image feature information corresponding to the target image, where the target image includes a binocular image. The construction unit 602 is used to construct a first volume based on the image feature information obtained by the acquisition unit 601, where the first volume includes a first binocular stereo volume. The execution unit 603 is used to perform three-dimensional semantic scene completion based on the first volume constructed by the construction unit 602.
[0148] In one embodiment, the apparatus 600 further includes a determination unit 604; the acquisition unit 601 is specifically configured to acquire image feature information corresponding to the binocular image; the acquisition unit 601 is specifically configured to acquire a disparity volume based on the image feature information corresponding to the binocular image acquired by the acquisition unit 601; the determination unit 604 is configured to determine the disparity volume acquired by the acquisition unit 601 as a depth volume; and the determination unit 604 is further configured to determine the first stereo volume based on the depth volume acquired by the acquisition unit 601.
[0149] In one embodiment, when the target image includes a binocular image and a bird's-eye view (BEV) image, the acquisition unit 601 is specifically used to acquire image feature information corresponding to the binocular image and image feature information corresponding to the BEV image; the construction unit 602 is specifically used to construct a first Stereo volume and a first BEV volume using the image feature information corresponding to the binocular image and the image feature information corresponding to the BEV image acquired by the acquisition unit 601, where the first BEV volume is related to the image feature information of the left-eye image; the execution unit 603 is further used to interactively aggregate the first Stereo volume and the first BEV volume constructed by the construction unit 602 to generate a first volume.
[0150] In one embodiment, the device 600 further includes an extraction unit 605; the extraction unit 605 is used to extract the image feature information of the above-mentioned left-eye image; the construction unit 602 is specifically further used to use a first preset algorithm to process the image feature information of the above-mentioned left-eye image extracted by the extraction unit 605 to construct the above-mentioned first BEV volume.
[0151] In one embodiment, the execution unit 603 is specifically used to generate first data information corresponding to the first stereo volume based on the information of the first stereo volume using a second preset algorithm, and to generate second data information corresponding to the first BEV volume based on the information of the first BEV volume using the second preset algorithm. The first data information is used to reliably predict the first BEV volume, and the second data information is used to reliably predict the first stereo volume; the second BEV volume is generated using the first data information, and the second stereo volume is generated using the second data information; the first volume is generated based on the second stereo volume and the second BEV volume.
[0152] In one embodiment, the execution unit 603 is specifically used to filter the estimated first data information according to the first prediction confidence information to generate the above-mentioned first data information, and the confidence of the above-mentioned first data information is greater than the second preset threshold; according to the second prediction confidence information, the estimated second data information is filtered to generate the above-mentioned second data information, and the confidence of the above-mentioned second data information is greater than the third preset threshold.
[0153] In one embodiment, the execution unit 603 is specifically configured to perform serial aggregation on the first BEV volume and the first Stereo volume to generate a first volume.
[0154] In one embodiment, the execution unit 603 is specifically used to concatenate the above-mentioned first Stereo volume and the above-mentioned first BEV volume to generate a concatenated volume; use a third preset algorithm to calculate the above-mentioned concatenated volume to obtain the transformed representation information in the above-mentioned concatenated volume; compress the above-mentioned transformed representation information through average pooling to generate a first channel descriptor; use the excitation layer to capture the channel dependency corresponding to the first channel descriptor to generate a second channel descriptor; use a fourth preset algorithm combined with the above-mentioned transformed representation to calculate the above-mentioned second channel descriptor to generate the above-mentioned first volume.
[0155] In one embodiment, the construction unit 602 is specifically used to construct a first BEV volume and generate contextual feature information; the execution unit 603 is specifically used to use the above-mentioned contextual feature information and the above-mentioned first volume to generate three-dimensional voxel feature information; and use the second preset network to process the above-mentioned three-dimensional voxel feature information to perform three-dimensional semantic scene completion.
[0156] For the specific definition of the three-dimensional semantic scene completion device, please refer to the definition of the three-dimensional semantic scene completion method above, which will not be repeated here. The various modules of the above-mentioned three-dimensional semantic scene completion device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0157] In one embodiment, an electronic device is provided. FIG6 is a block diagram of the electronic device provided in an embodiment of the present disclosure. The electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the aforementioned embodiment of the three-dimensional semantic scene completion method.
[0158] The embodiments of the present disclosure further provide a computer-readable storage medium storing a computer program. When the processor executes the computer program, the aforementioned binocular stereo matching method embodiment is implemented.
[0159] The present disclosure provides a computer program product including instructions that, when executed, enable the method described in the present disclosure to be performed. For example, the steps of the 3D semantic scene completion method shown in FIG1 can be performed.
Claims
1. Three-dimensional semantic scene completion method, where: The method comprises: Processing a target image using a first preset network to obtain image feature information corresponding to the target image, wherein the target image includes a binocular image; Constructing a first volume according to the image feature information, wherein the first volume includes a first binocular stereo volume; Perform three-dimensional semantic scene completion according to the first volume.
2. The method according to claim 1, wherein: The acquiring of image feature information corresponding to the target image includes: Obtaining image feature information corresponding to the binocular image; The constructing of the first volume comprises Acquire a disparity volume according to image feature information corresponding to the binocular image; Determine a depth volume according to the parallax volume; The first Stereo volume is determined according to the depth volume.
3. The method according to claim 1, wherein: In the case where the target image includes the binocular image and the bird's-eye view (BEV) image, the acquiring of image feature information corresponding to the target image includes: Acquire image feature information corresponding to the binocular image and image feature information corresponding to the BEV image; The step of constructing a first volume according to the image feature information includes: Constructing a first Stereo volume and a first BEV volume by using the image feature information corresponding to the binocular image and the image feature information corresponding to the BEV image, wherein the first BEV volume is related to the image feature information of the left eye image; After constructing the first volume according to the image feature information, the method includes: The first Stereo volume and the first BEV volume are interactively aggregated to generate a first volume.
4. The method according to claim 3, wherein: The constructing of the first BEV volume comprises: Extracting image feature information of the left-eye image; The first BEV volume is constructed by processing the image feature information of the left-eye image using a first preset algorithm.
5. The method according to claim 3 or 4, wherein: The interactively aggregating the first Stereo volume and the first BEV volume to generate a first volume includes: Based on the information of the first Stereo volume, using a second preset algorithm, generating first data information corresponding to the first Stereo volume, and based on the information of the first BEV volume, using the second preset algorithm, generating second data information corresponding to the first BEV volume, wherein the first data information is used to reliably predict the first BEV volume, and the second data information is used to reliably predict the first Stereo volume; Using the first data information, generating a second BEV volume, and using the second data information, generating a second Stereo volume; The first volume is generated according to the second Stereo volume and the second BEV volume.
6. The method according to claim 5, wherein: The generating of the first data information corresponding to the first Stereo volume includes: According to the first prediction confidence information, the estimated first data information is screened to generate the first data information, wherein the confidence of the first data information is greater than a second preset threshold; The generating of the second data information corresponding to the first BEV volume includes: According to the second prediction confidence information, the estimated second data information is screened to generate the second data information, and the confidence of the second data information is greater than a third preset threshold.
7. The method according to any one of claims 3 to 6, wherein: The interactively aggregating the first Stereo volume and the first BEV volume to generate a first volume includes: The first BEV volume and the first Stereo volume are aggregated in series to generate a first volume.
8. The method according to claim 7, wherein: The step of serially aggregating the first BEV volume and the first Stereo volume to generate a first volume includes: Connecting the first Stereo volume and the first BEV volume in series to generate a series volume; Calculating the series volume using a third preset algorithm to obtain transformed characterization information in the series volume; Compressing the transformed representation information through average pooling to generate a first channel descriptor; The channel dependency corresponding to the first channel descriptor is captured by using the excitation layer to generate a second channel descriptor; The second channel descriptor is calculated by combining the transformed representation with a fourth preset algorithm to generate the first volume.
9. The method according to claim 3, wherein: The constructing of the first BEV volume comprises: Constructing a first BEV volume and generating context feature information; The performing three-dimensional semantic scene completion according to the first volume includes: generating three-dimensional voxel feature information using the context feature information and the first volume; The three-dimensional voxel feature information is processed using a second preset network to perform three-dimensional semantic scene completion.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the three-dimensional semantic scene completion method as described in any one of claims 1-9 is implemented.
11. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the three-dimensional semantic scene completion method as described in any one of claims 1 to 9.
12. A computer program product, comprising instructions, which, when executed, implement the three-dimensional semantic scene completion method as claimed in any one of claims 1 to 9.
Citation Information
Patent Citations
Large-scale target three-dimensional reconstruction method and system based on binocular vision
CN113963107A
Image three-dimensional reconstruction method and device, electronic equipment and storage medium
CN114548238A
Three-dimensional semantic scene completion method and device, equipment and medium
CN115631489A
Three-dimensional semantic scene completion method, equipment and medium
CN116523990A
Semantic segmentation method and apparatus for three-dimensional image, terminal, and storage medium
US20210049397A1
Cited By
Three-dimensional semantic scene completion method based on hierarchical grouping aggregation
CN119540454A
