A visual three-dimensional semantic scene completion method and device, electronic equipment and storage medium

By employing deep-semantic voxel guidance and residual fusion techniques, the problem of insufficient 2D semantic evidence in 3D semantic scene completion was solved, local geometric and semantic details were restored, and the accuracy of 3D scene completion was improved.

CN123181689APending Publication Date: 2026-11-27SHENZHEN POLYTECHNIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611317663.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing camera-based 3D semantic scene completion methods, insufficient 2D semantic evidence leads to the degradation of 3D voxel representation, and local geometric and semantic details are weakened during depth enhancement, voxel pooling, and temporal aggregation.

Method used

We employ deep-semantic voxel guidance, fuse temporal voxel features through residual methods, combine boundary and category guidance with a lightweight deep encoder and a 2D semantic segmenter, and refine the local geometric and semantic details using learnable weights and projected null response masks.

Benefits of technology

While maintaining the ability of temporal networks to infer invisible spaces, it effectively recovers the local geometric and semantic details that are weakened by depth boosting, voxel pooling, and temporal aggregation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181689A_ABST
    Figure CN123181689A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of visual three-dimensional semantic scene completion method, device, electronic equipment and medium.The method includes: obtaining multiple images, camera parameter and self car pose;Multi-scale image features and depth probability are extracted and mapped to three-dimensional voxel grid;Align historical frame voxel features and fill non-responsive voxel, to deformable three-dimensional cross attention refines occluded voxel;Depth probability and two-dimensional segmentation map are converted into depth-semantic voxel guide;According to the soft inhibition of projection empty response mask time sequence voxel feature, with the learnable weight of upper limit constraint, time sequence feature and depth-semantic guide are fused by residual three-dimensional refinement module;After three-dimensional encoder and query type semantic occupancy decoder, output dense three-dimensional semantic occupancy result.The present application fuses depth-semantic guide in residual mode, restores local geometry and semantic details while maintaining time sequence inference capability, solves the problem of voxel representation degradation caused by insufficient two-dimensional semantic evidence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent driving technology, and in particular to a visual three-dimensional semantic scene completion method, device, electronic device, and storage medium. Background Technology

[0002] 3D Semantic Scene Completion (SSC) aims to jointly predict whether each voxel in 3D space is occupied and its semantic category, constructing a dense 3D representation of environmental elements such as roads, vehicles, buildings, and pedestrians. This can serve tasks such as autonomous driving path planning, motion prediction, and robot navigation. Unlike 2D semantic segmentation, which only describes visible surfaces, this technology also needs to infer occluded or out-of-observation areas, thus facing two core problems: geometric completion and semantic recognition. Methods based on camera RGB images have significant application value due to their low cost and ease of deployment. A typical workflow involves: extracting multi-scale visual features through a 2D image encoder; projecting the 2D features into a 3D voxel space using monocular depth distribution and camera parameters; and finally outputting dense semantic voxels through a 3D decoder.

[0003] Existing camera-based 3D semantic scene completion methods suffer from technical problems due to insufficient 2D semantic evidence leading to degraded 3D voxel representations. On the one hand, image features generated by general visual encoders are mainly represented based on texture and local appearance, lacking category-level semantic constraints. Semantic ambiguities of visually similar categories and sparse objects continue to propagate and dilute during depth upscaling, voxel pooling, and temporal aggregation, causing 3D decoders to infer based on degraded representations. On the other hand, while multi-scale depth upscaling and voxel aggregation can obtain a continuous global scene layout, they also smooth out small objects, thin structures, object outlines, and distant regions, resulting in degradation of local geometric and semantic details after temporal aggregation. Summary of the Invention

[0004] In view of this, it is necessary to provide a visual 3D semantic scene completion method, device, electronic device and storage medium to solve the problem that in the prior art, after projecting 2D features into 3D voxel space using monocular depth distribution and camera parameters, the depth upscaling, voxel pooling and temporal aggregation processes weaken local geometric and semantic details, resulting in degradation of local geometric and semantic details after temporal aggregation, that is, the 3D voxel representation is degraded due to insufficient 2D semantic evidence.

[0005] To achieve the above-mentioned technical objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a visual three-dimensional semantic scene completion method, comprising the following steps: Acquire RGB images of the current frame and historical frames, camera parameters for each frame, and vehicle pose; A two-dimensional image encoder is used to extract multi-scale image features of the current frame and historical frames respectively, and a depth branch is used to predict the probability distribution of discrete depth intervals at each pixel position; The image features at each scale are multiplied by the corresponding depth probability to form the frustum features. Based on the camera parameters, the sampling points of the frustum features are mapped to a three-dimensional voxel grid, and geometric perceptual voxel pooling is performed. By using the vehicle's pose, the voxel features of historical frames are transformed to the current coordinate system. Voxels that do not have a valid response in the current frame are filled with historical memory. Occluded voxels are refined using deformable 3D cross attention to obtain multi-scale voxel features and projected empty response masks constructed in time. The depth probability distribution is converted into geometric guidance by a lightweight depth encoder, and the segmentation map output by the 2D semantic segmenter is converted into boundary and category guidance by category embedding and semantic encoder, thus completing scale alignment and 2D to 3D mapping to form depth-semantic voxel guidance. The temporal voxel features are softly suppressed by the projection empty response mask. The original temporal voxel features and the depth-semantic voxels are guided into the residual 3D refinement module by the learnable weights with upper limit constraints to obtain multi-scale voxel features with enhanced details. The refined multi-scale voxel features are input into the 3D encoder and the query-based semantic occupancy decoder, and the dense 3D semantic occupancy results are output.

[0006] Furthermore, after extracting multi-scale image features of the current frame and historical frames using a two-dimensional image encoder, the method further includes: During the training phase only, a visual-language teacher model with fixed input parameters for the current frame image is used to construct text prompts and category mappings based on the category definitions of the target dataset, thereby obtaining pixel-level visual-language features and a two-dimensional category probability map. The features of the student image in the current frame are constrained by feature-level distillation and category distribution-level distillation. The visual-language teacher model, text encoder, teacher feature adaptation path, and auxiliary logic supervision are only enabled during the training phase and removed during the inference phase.

[0007] Furthermore, the characteristic stage distillation includes: The teacher's visual-linguistic features and the student's image features are projected onto the same channel dimension through an adapter. Then, channel-wise fusion weights are generated through global pooling, channel attention, and the Sigmoid function to construct semantically enhanced teacher target features. Student features are brought closer to the semantically enhanced target features after the gradient stops through L1 norm loss.

[0008] Furthermore, the category distribution stage distillation includes: Student probabilities are obtained by using student features with an auxiliary two-dimensional segmentation head. Using the teacher class probability after class mapping and size alignment as the soft supervision objective, the class discrimination ability of student features is constrained by cross-entropy loss.

[0009] Furthermore, the voxels that do not respond effectively to the current frame are filled with historical memory, including: The most recent effective historical features, time-weighted average historical features, or gated fusion historical features are used for filling.

[0010] Furthermore, the refinement of the occlusion voxels using deformable 3D cross-attention includes: Using the current voxel as the query and historical voxels as the key and value, perform deformable 3D cross attention within the local neighborhood of the historical voxels. The sampling offset and attention weights are predicted by the current query voxel, enabling the network to select voxel features related to the current occluded region from historical observations.

[0011] Furthermore, the method of using learnable weights with upper bounds to guide the original temporal voxel features and depth-semantic voxels into the residual 3D refinement module includes: The learnable weights are mapped to a range of 0 to 1 using the Sigmoid function, and then multiplied by the upper limit of 0.2, so that depth and segmentation cues serve only as local auxiliary evidence. The residual 3D refinement module includes 3D convolution, normalization, and activation functions, and the output is a weighted sum of the original temporal voxel features and the auxiliary guiding component.

[0012] Secondly, the present invention also provides a visual three-dimensional semantic scene completion device, comprising: The acquisition module is used to acquire the RGB images of the current frame and historical frames, camera parameters for each frame, and the vehicle's pose. The feature extraction module is used to extract multi-scale image features of the current frame and historical frames respectively using a two-dimensional image encoder, and to predict the probability distribution of discrete depth intervals at each pixel position using a depth branch. The voxel projection module is used to multiply the image features at each scale with the corresponding depth probability to form a frustum feature. Based on the camera parameters, the sampling points of the frustum feature are mapped to a three-dimensional voxel grid, and geometrically perceptive voxel pooling is performed. The temporal alignment module is used to transform the voxel features of historical frames to the current coordinate system using the vehicle's pose. It fills voxels that have no effective response in the current frame with historical memory and refines occluded voxels with deformable 3D cross attention to obtain multi-scale voxel features and projection empty response masks constructed in the temporal sequence. The auxiliary guidance generation module is used to convert the depth probability distribution into geometric guidance through a lightweight depth encoder, and to convert the segmentation map output by the 2D semantic segmenter into boundary and category guidance through category embedding and semantic encoder, thereby completing scale alignment and 2D to 3D mapping to form depth-semantic voxel guidance. The voxel space refinement module is used to perform soft suppression on temporal voxel features based on the projected spatial response mask. It uses learnable weights with upper limit constraints to guide the original temporal voxel features and depth-semantic voxels into the residual 3D refinement module to obtain multi-scale voxel features with enhanced details. The semantic occupancy decoding module is used to input the refined multi-scale voxel features into the 3D encoder and the query-based semantic occupancy decoder, and output dense 3D semantic occupancy results.

[0013] Thirdly, the present invention also provides an electronic device, including a memory and a processor, wherein, The memory is used to store programs; The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the above-described visual 3D semantic scene completion method.

[0014] Fourthly, the present invention also provides a computer-readable storage medium for storing a computer-readable program or instruction, which, when executed by a processor, can implement the steps in the above-described visual three-dimensional semantic scene completion method.

[0015] The beneficial effect of the above embodiments is that the present invention converts the depth probability distribution into geometric guidance through a lightweight depth encoder, converts the segmentation map output by the 2D semantic segmenter into boundary and category guidance through category embedding and semantic encoder, forming depth-semantic voxel guidance, and performs soft suppression on temporal voxel features according to the projection empty response mask. The original temporal voxel features and depth-semantic voxel guidance are input into the residual 3D refinement module using learnable weights with upper limits, so that depth and semantic cues are fused into temporal voxel features in a residual manner and with upper limits of weights. Thus, while maintaining the temporal network's ability to infer invisible spaces, it effectively recovers the local geometric and semantic details weakened in depth enhancement, voxel pooling and temporal aggregation, solving the technical problem of insufficient 2D semantic evidence leading to the degradation of 3D voxel representation in the prior art. Attached Figure Description

[0016] Figure 1 A flowchart illustrating an embodiment of the visual 3D semantic scene completion method provided by the present invention; Figure 2 A schematic diagram to complete the overall structure of the visual 3D semantic scene; Figure 3This is a schematic diagram of the semantic prior distillation module; Figure 4 A schematic diagram of the voxel space refinement module; Figure 5 This is a structural block diagram of the visual three-dimensional semantic scene completion device provided by the present invention; Figure 6 This is a schematic diagram of the operating environment of an embodiment of the electronic device provided by the present invention. Detailed Implementation

[0017] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not intended to limit the scope of the present invention.

[0018] In the description of this application, "multiple" means two or more, unless otherwise expressly and specifically defined.

[0019] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0020] This invention provides a visual three-dimensional semantic scene completion method, apparatus, device, and storage medium, which are described below.

[0021] In intelligent driving scenarios, accurately perceiving the 3D environment surrounding the vehicle and understanding the semantic categories of various objects within it is crucial for achieving safe autonomous driving. 3D semantic scene completion aims to infer the dense 3D voxel occupancy state and its semantic category from monocular or surround-view image input. However, existing technologies suffer from degradation of local geometric and semantic details during the projection of 2D image features into 3D voxel space due to uncertainties in depth estimation, smoothing effects of voxel pooling, and information loss in temporal aggregation. This invention introduces depth-semantic voxel guidance and fuses it into temporal voxel features in a residual manner, constrained by upper bound weights. This effectively recovers weakened local details while maintaining the temporal network's ability to infer invisible spaces.

[0022] This embodiment provides a visual 3D semantic scene completion method based on two-stage evidence enhancement. Please refer to... Figure 1 and Figure 2 , Figure 1 This is a flowchart illustrating the two-stage evidence-enhanced visual 3D semantic scene completion method provided by the present invention. Figure 2Complete the overall system architecture diagram for the visual 3D semantic scene. For example... Figure 2 As shown, the system takes as input the RGB image I_t at the current time t, the set of RGB images {I_{t-p_j}} from P historical times, the intrinsic and extrinsic parameters of the camera for each frame, the vehicle pose, and a preset 3D voxel grid, and outputs the dense 3D semantic voxel prediction for the current time. Let the resolution of the voxel grid in the three spatial directions be X, Y, and Z, and the number of target semantic categories be C, then the output of this invention is: ; Each position of the output tensor corresponds to a three-dimensional voxel, and its C channels represent the category scores of the voxel belonging to the empty class and each non-empty semantic category, respectively. After performing Softmax normalization on the category scores, the corresponding category probabilities can be obtained.

[0023] The specific processing steps of the visual 3D semantic scene completion method of the present invention are as follows: S101: Read the current frame and historical frame images, perform size normalization, color normalization and data augmentation on the images, and read the camera intrinsic parameter matrix, extrinsic parameter matrix and vehicle pose corresponding to each frame.

[0024] In this embodiment, the current frame refers to the RGB image acquired at the target time t for scene completion, and the historical frame refers to one or more RGB images acquired before time t, such as at time t. , The camera parameters for each frame include intrinsic parameters (such as focal length and principal point coordinates) and extrinsic parameters (such as the camera's rotation matrix and translation vector relative to the vehicle coordinate system). Vehicle pose includes the vehicle's rotation and translation transformations relative to the current moment at each historical moment, which can be obtained through a Simultaneous Localization and Mapping (SLAM) system or integrated navigation equipment. It should be noted that the number of historical frames can be set according to computing resources and real-time requirements, for example, selecting the most recent N frames (N=4 or 8) to balance the richness of temporal information with computational overhead.

[0025] S102: A two-dimensional image encoder with shared parameters is used to extract multi-scale image features of the current frame and historical frames respectively; a depth branch is used to predict the probability distribution in the discrete depth interval at each pixel position.

[0026] In this embodiment, the 2D image encoder can employ backbone networks such as ResNet-50, EfficientNet-B3, SwinTransformer, or ConvNeXt to perform forward inference on the RGB images of the current frame and historical frames, respectively, to extract multi-scale image features. For example, the multi-scale image features may include four scale feature maps with downsampling ratios of 1 / 4, 1 / 8, 1 / 16, and 1 / 32. Simultaneously, a depth branch is connected to the end or side branch of the 2D image encoder. This depth branch consists of several lightweight convolutional layers, outputting a probability distribution over discrete depth intervals at each pixel location. Specifically, a preset depth range (e.g., 3m to 60m) is uniformly divided into D discrete depth intervals (e.g., D=64 or 112). The depth branch outputs the probability value of each pixel in each depth interval, and this probability value is normalized by Softmax to form a depth probability distribution. It should be noted that each scale in the multi-scale features corresponds to a depth probability map, and the resolution of this depth probability map is consistent with the resolution of the feature map at the corresponding scale.

[0027] To ensure a consistent number of channels across different branches, 1×1 convolution, normalization, and non-linear mapping can be performed on the image features to obtain depth-conditional image features. These features are then multiplied by the corresponding depth probabilities to form the view frustum features. ;in,

[0028] Indicates the first Scale, Time Pixel position In the The probability over a depth interval;

[0029] This represents the corresponding depth-conditional image features; This represents the view frustum feature formed by the two. In this embodiment, the depth probability is used both to construct view frustum features from 2D image features and for subsequent voxel space refinement, thereby avoiding repeated calls to other large depth estimation models.

[0030] S103: During the training phase only, a visual-language teacher model with fixed input parameters for the current frame image is used to construct text prompts and category mappings based on the category definitions of the target dataset, thereby obtaining pixel-level visual-language features and a two-dimensional category probability map; the features of the current frame student image are constrained through feature-level distillation and category distribution-level distillation.

[0031] Please see Figure 3 , Figure 3This is a structural diagram of the Semantic Prior Distillation (SPD) module provided by the present invention. During training, a visual-language teacher is used, whose input parameters for the current frame image are frozen. The teacher includes a visual encoder, a text encoder, and a pixel-level semantic prior construction module. For the category set of the target dataset, one or more text cues are constructed for each category, such as cars, pedestrians, buildings, roads, traffic signs, etc. The text encoder converts the cues into category embeddings, and the visual encoder generates pixel-aligned visual-language features. The two are then compared using similarity calculation and semantic prior construction to obtain the teacher's logical value.

[0032] The teacher's two-dimensional semantic prior probability is obtained by the following formula: ; in, The pixel-level logical values ​​output for the teacher. The temperature coefficient is used. To ensure that the teacher's output aligns with the categories in the 3D semantic scene completion, a teacher vocabulary and category mapping matrix are defined based on the target dataset. Predictions for synonym prompts can be performed using maximum, average, or weighted sum aggregation. Logistic distillation loss is not calculated for empty classes, ignored classes, or categories that cannot be mapped. The teacher probability map is interpolated to the spatial dimensions of student features or auxiliary segmentation heads to obtain aligned soft targets. .

[0033] SPD performs both feature-level distillation and logic-level distillation simultaneously. Feature-level distillation first passes through an adapter. and Teacher visual-linguistic features and student image features are projected onto the same channel dimension, and then channel-wise fusion weights are generated through global pooling, channel attention, and the sigmoid function. To construct semantically enhanced teacher goals: ; Among them, symbols This represents element-wise multiplication. This fusion method preserves low-level visual evidence in student images while injecting teacher-level semantic information into the target features, avoiding the direct replacement of student features with teacher features.

[0034] The total loss of SPD is composed of a weighted average of feature-level loss and logic-level loss: ; Feature-level loss is constrained by L1 norm: ; Here, sg(·) is the stopping gradient operation, ensuring that the semantic enhancement objective is not updated backwards in this loss term. Logical distillation is performed by processing student features through an auxiliary two-dimensional segmentation head. We obtain the student probability Ps and apply cross-entropy constraints using a teacher soft objective: ; in, To exclude the set of valid pixels after excluding invalid, ignored, or unmapped categories, The number of target categories. and The loss balancing coefficient can be set based on the validation set. The visual-language teacher, text encoder, teacher feature adaptation path, and auxiliary logic supervision are only enabled during the training phase and are all removed during the inference phase, thus not introducing the computational overhead of the visual-language teacher at deployment.

[0035] S104: Multiply the image features at each scale with the corresponding depth probability to form the view frustum features, and map the view frustum sampling points to a 3D voxel grid according to the camera parameters, and perform geometrically perceptive voxel pooling.

[0036] In this embodiment, for each scale of image feature, an outer product operation is performed with the corresponding scale's depth probability distribution to form a view frustum feature. This view frustum feature can be understood as a three-dimensional feature point cloud distributed in the camera's view frustum space. Subsequently, based on the camera's intrinsic and extrinsic parameters, each sampling point in the view frustum feature is mapped from the image coordinate system to a voxel grid in the three-dimensional world coordinate system. Specifically, a representative depth value is selected for each discrete depth interval, and the pixel homogeneous coordinates are back-projected to the camera coordinate system according to the camera's intrinsic parameters, and then transformed to the current time coordinate system according to the camera's extrinsic parameters and the vehicle's pose. ; ; in, For the camera intrinsic parameter matrix, From time Coordinate system to the current time Homogeneous transformation matrix of the coordinate system. Let the origin of the voxel mesh space be... The voxel dimensions in the three directions are Then the voxel index corresponding to the 3D point is: ; For example, the 3D voxel mesh can be set as a spatial region centered on the vehicle, covering an area of ​​[-32m, 32m] × [-32m, 32m] × [-3m, 5m]. The voxel resolution is adjusted according to different scales, for example, the lowest scale is 0.5m and the highest scale is 0.125m. After mapping, geometrically perceptual voxel pooling is performed on the features of multiple sampling points falling within the same voxel, such as using max pooling, average pooling, or confidence-based weighted pooling, to obtain the geometrically perceptual features of that voxel. It should be noted that since the feature map resolutions are different at different scales, the size of the mapped voxel mesh is also different, thus forming a multi-scale voxel feature representation.

[0037] S105: Transform the voxel features of historical frames to the current coordinate system using the vehicle's pose; fill voxels that have no effective response in the current frame with historical memory, and refine occluded voxels with deformable 3D cross attention to obtain multi-scale voxel features and projected empty response masks constructed in time.

[0038] In this embodiment, the voxel features of historical frames are first transformed from the coordinate systems of each historical moment to the coordinate system of the current frame using the rotation and translation transformation matrices in the vehicle's pose. Historical frames employ the same image encoding and voxel projection process as the current frame, and the historical voxel features are... Align to the current coordinate system and store it as a history memory in chronological order.

[0039] After transformation, for voxels in the current frame that lack effective projection responses due to viewpoint limitations, missing depth estimation, or image boundary extrapolation, historical memory is used for filling. Specifically, a temporal memory buffer can be maintained to record the voxel features after transformation in each historical frame. When a voxel in the current frame lacks effective features, historical features corresponding to the spatial location are retrieved from the memory buffer for filling. Subsequently, for voxels with occlusion relationships between the current and historical frames (i.e., visible in the current frame but occluded in the historical frame, or vice versa), deformable 3D cross-attention is used for refinement. Using the voxel features of the current frame as the query and the voxel features of the historical frames as the key and value, deformable sampling is performed in the local neighborhood of the voxels in the historical frames. The sampling offset and attention weights are predicted by the current query voxel, enabling the network to adaptively select voxel features related to the current occluded region from historical observations, thus enhancing temporal consistency.

[0040] One feasible form of update is: ; in, The current location of the occluded voxel. For the number of attention heads, The number of sampling points for each head. The 3D sampling offset predicted by the current query. To normalize attention weights, This is the feature mapping matrix. This operation allows the model to find features in the local neighborhood of historical memory that match the currently occluded region. After processing, the multi-scale voxel features constructed in time series are obtained. Simultaneously, before filling using historical frame voxel features, a projection null response mask is generated based on the current frame voxel projection results. This mask is used to mark voxel locations that lack a direct projection response in the current frame, and does not indicate that the corresponding voxel is still empty after being filled with historical features.

[0041] In some embodiments, please refer to Figure 3 (This should be) Figure 3 (Continued explanation), the voxels that do not respond effectively to the current frame are filled with historical memory, including: Fill in the data using the most recent valid historical features, or by using time-weighted average historical features, or by using gated fusion historical features.

[0042] In this embodiment, "most recently valid historical feature filling" refers to directly selecting the features of the historical frame that is temporally closest to the current frame and has valid features at that voxel position and copying them for filling. "Time-weighted average historical feature filling" refers to weighting the features of multiple historical frames at that voxel position according to time decay weights, for example, the weights decay exponentially with the time interval. "Gated fusion historical feature filling" uses a gated recurrent unit (GRU) or a similar gating mechanism to adaptively fuse the initial features of the current frame (even if blank) with historical memory features, allowing the network to learn how much historical information to retain. It should be noted that one of the above three filling methods can be selected according to the actual scenario requirements. The gated fusion method usually achieves better adaptive results, but the computational cost is relatively high.

[0043] In some embodiments, please refer to Figure 4 The refinement of the occlusion voxels using deformable 3D cross-attention includes: Using the current voxel as the query and historical voxels as the key and value, perform deformable 3D cross attention within the local neighborhood of the historical voxels. The sampling offset and attention weights are predicted by the current query voxel, enabling the network to select voxel features related to the current occluded region from historical observations.

[0044] In this embodiment, the specific implementation of deformable 3D cross-attention can refer to the extension of the deformable attention mechanism in 3D space. For each query voxel in the current coordinate system, its sampling offset (Δx, Δy, Δz) and corresponding attention weights in the voxel space of the historical frames are first predicted by a small multilayer perceptron (MLP) or a 3D convolutional network. The sampling offset is restricted to the local neighborhood of the historical voxel (such as a 3×3×3 or 5×5×5 range) to avoid the huge computational overhead of global search. Subsequently, key and value features are sampled from the historical voxel features based on the predicted offset, and attention weights are calculated with the query voxel features to output refined voxel features. This mechanism enables the network to focus on voxels in the historical frames that are semantically or geometrically related to the current occluded region, effectively alleviating the occlusion ambiguity problem in temporal alignment.

[0045] S106: The existing depth distribution of the projection branch is converted into geometric guidance by a lightweight depth encoder. The segmentation map output by the lightweight 2D segmenter is converted into boundary and category guidance by a category embedding and semantic encoder. Scale alignment and 2D to 3D mapping are completed to form depth-semantic voxel guidance.

[0046] Please see Figure 4 , Figure 4 The diagram shows the structure of the Voxel Space Refinement (VSR) module provided in this invention. The VSR module takes temporally constructed voxel features and a null response mask as primary inputs, and depth probabilities from the projection branch and segmentation maps generated by a lightweight 2D semantic segmenter as auxiliary inputs. The depth distribution reflects the geometric probability of the visible surface along the viewing direction, while the segmentation map provides pixel-level category, region, and boundary information. These two elements complement each other to recover the local structures weakened by depth enhancement, voxel pooling, and temporal aggregation.

[0047] Depth-guided semantic guidance compresses D-dimensional depth probabilities into compact geometric features using a lightweight depth encoder; segmentation-guided semantic guidance first maps the class identifier or class probability of each pixel to a class embedding, and then extracts boundary and region features through a convolutional or attention encoder. The class embedding table can be frozen during training to prevent excessive drift of semantic guidance as it trains with the main task.

[0048] For each voxel scale, the depth guidance and semantic guidance are first scale-aligned and channel-projected. Based on the depth probability, camera parameters, and voxel grid definition, the 2D guidance features are mapped to the corresponding horizontal voxel grid. Subsequently, the guidance is expanded along the vertical voxel axis, and the feature responses at different height positions are adjusted through 3D convolution to obtain depth-semantic voxel guidance consistent with the temporal voxel feature size. .

[0049] S107: The temporal voxel features are softly suppressed according to the projection empty response mask, and the original temporal voxel features and depth-semantic voxels are guided into the residual 3D refinement module by learning weights with upper limit constraints to obtain multi-scale voxel features with enhanced details.

[0050] In this embodiment, the temporal voxel features are first soft-suppressed based on the projected empty response mask generated in S105. Unlike hard masks which are directly set to zero, soft suppression uses gradually decreasing weights to reduce the weights of features without effective response regions, preserving some contextual information while reducing interference from invalid regions. To reduce noise in empty response voxels, this embodiment uses an empty response mask to soft-suppress the temporal voxel features: ; in, This represents the voxel features after temporal construction. This represents the corresponding null response mask. When the mask value is 0, the corresponding voxel features remain unchanged; when the mask value is 1, the corresponding voxel features are scaled to 0.7 times their original size, instead of being set to zero. The coefficients 0.7 and 0.3 can be adjusted within the ranges of 0.5 to 0.9 and 0.1 to 0.5, respectively, so that their sum is 1; the preferred values ​​achieve a balance between suppressing null responses and preserving context.

[0051] Subsequently, the temporal voxel features after soft suppression and the depth-semantic voxels are guided into the residual 3D refinement module to obtain the refined voxel features: ; ; ; in, Represents depth-semantic voxel guidance. For residual thinning blocks containing 3D convolution, normalization, and activation functions, and These represent the learnable weights of the temporal voxel component and the auxiliary guided component, respectively. Parameters and Through the Sigmoid function Mapped to a value between 0 and 1, then multiplied by the weight upper limit. This embodiment uses two weight upper limits. and Setting both to 0.2 ensures that depth and segmentation cues serve only as local auxiliary evidence, preventing them from overshadowing the original temporal voxel representation. The upper limit can also be set from 0.05 to 0.5 depending on data quality.

[0052] This module employs learnable weights with upper limits to control the fusion strength at the input of the residual refinement module, reducing the risk of the auxiliary guidance over-dominantly dominating the original temporal voxel representation. The residual 3D refinement module can be composed of two cascaded 3D convolutional blocks, each containing 3×3×3 convolutions, normalization, and ReLU activation. Finally, the input features are added to the processed auxiliary guidance components to form the residual output. In this way, while maintaining the overall structure of the temporal voxel features, it effectively recovers the local geometric and semantic details that are weakened in depth boosting, voxel pooling, and temporal aggregation.

[0053] S108: Input the refined multi-scale voxel features into the 3D encoder and query-based semantic occupancy decoder, output the category distribution and voxel mask for each query, and combine them into a dense 3D semantic occupancy result.

[0054] In this embodiment, the multi-scale voxel features with enhanced details obtained in S107 are input into a 3D voxel encoder. The 3D encoder can employ a 3D U-Net or a sparse 3D CNN to further encode and decode the multi-scale voxel features, extracting high-level 3D contextual information. High-resolution voxel features are used to generate fine masks, while low-resolution voxel features provide context with a larger receptive field.

[0055] Subsequently, the query-based semantic occupancy decoder interacts with the voxel features output by the 3D encoder through a set of learnable query vectors, for example, using a cross-attention mechanism. Each query vector is responsible for predicting the semantic occupancy state of a specific spatial location or object. Each query outputs a logical value for its category. and voxel mask logical value Finally, combinations are performed at each voxel location v and category c: ; Ultimately, the decoder outputs a dense 3D semantic occupancy result, where each voxel is classified as free, occupied, and has a specific semantic category (such as vehicle, pedestrian, road, building, etc.). It should be noted that, compared to traditional voxel-by-voxel convolutional classification, the query-based decoder can handle long-distance dependencies and class imbalance problems more flexibly.

[0056] S109: During training, jointly optimize the 3D semantic scene completion loss and semantic prior distillation loss; during inference, remove the visual-language teacher model with fixed parameters and the teacher-side distillation path, and retain the student image encoder, depth branch, 2D semantic segmenter, temporal voxel projection, voxel space refinement and semantic occupancy decoding part.

[0057] During decoder training, Hungarian matching is used to establish a one-to-one correspondence between the predicted query and the true semantic mask. The 3D semantic scene completion loss consists of query classification loss, voxel mask loss, and Dice loss. ; The overall goal of the joint training is: ; in, This represents the loss for 3D semantic scene completion. This represents the semantic prior distillation loss. This represents the balance coefficient of the semantic prior distillation loss. The voxel space refinement module does not use independent depth supervision, segmentation supervision, or pseudo-label loss; instead, it uses... Gradients are obtained for end-to-end optimization; semantic prior distillation loss is applied only to the current frame's 2D image features during the training phase. After training, the teacher network and teacher-side distillation path are removed, and the student network directly outputs the 2D features used for voxel enhancement.

[0058] In some embodiments, after the two-dimensional image encoder extracts multi-scale image features from the current frame and historical frames respectively, it further includes a visual-language distillation step performed only during the training phase, the detailed process of which is described in S103. Figure 3 As shown, it will not be elaborated further here.

[0059] In some embodiments, during the training phase, the visual 3D semantic scene completion method employs a multi-task joint loss function for end-to-end optimization. The multi-task joint loss function includes: Semantic occupancy classification loss: Weighted cross-entropy loss or Lovász-Softmax loss is used to supervise the category prediction of each voxel in the 3D semantic occupancy result. Foreground categories (such as vehicles and pedestrians) are given higher loss weights to alleviate the problem of imbalance between the number of foreground and background voxels. Depth estimation loss: When the vehicle is equipped with LiDAR or binocular camera, sparse but accurate ground truth point cloud of depth can be obtained. Focal Loss or cross-entropy loss is used to constrain the prediction accuracy of the depth branch at the effective pixel location. Geometric consistency loss: Calculate the 3D occupancy prediction consistency between the current frame and historical frames in the overlapping area, and use L1 loss or cosine similarity loss to force the temporal output to maintain geometric stability in the static area and reduce temporal jitter; Distillation loss: including characteristic-level distillation loss and category distribution-level distillation loss as described in S103.

[0060] Through the joint constraints of the multi-task loss mentioned above, the network simultaneously optimizes geometric accuracy, semantic accuracy, and temporal consistency during training, making the output in the inference phase more robust and reliable.

[0061] In some embodiments, a temporal fusion post-processing strategy is employed during the inference phase to reduce temporal jitter and improve output stability. Specifically, a sliding window (e.g., the most recent 3 frames) is maintained, and the semantic occupancy prediction result of the current frame is weighted and averaged with the prediction results of historical frames (which have been transformed from the vehicle pose to the current coordinate system). The weights decay exponentially with time intervals. For voxels containing dynamic objects, the fusion weights of historical frames are reduced to avoid motion blur; for static background voxels, the fusion weights of historical frames are increased to enhance geometric consistency. After temporal fusion, the final 3D semantic occupancy result is output. This post-processing strategy eliminates the need to retrain the network and effectively suppresses noise and abrupt changes in single-frame predictions through lightweight inter-frame fusion, improving perceptual stability in practical deployments.

[0062] Example 1: Construction and Training of a 3D Semantic Scene Completion Model This embodiment uses the SemanticKITTI dataset and completes model training and performance evaluation according to the standard training and validation partitions of the dataset. Each sample includes the current frame RGB image, multiple historical frame RGB images, camera intrinsic and extrinsic parameters for each frame, vehicle pose, and corresponding 3D semantic voxel annotations.

[0063] In this embodiment, four historical frames are selected outside the current frame, with time offsets of -3, -6, -9, and -12 relative to the current frame, respectively. The input image is cropped and scaled to a uniform resolution of 384×1280 pixels, and the camera intrinsic parameters are adjusted synchronously according to the image scaling ratio to ensure that the image coordinates are consistent with the camera projection.

[0064] The 3D voxel mesh has a forward range of 0 to 51.2 meters, a lateral range of -25.6 to 25.6 meters, a vertical range of -2.0 to 4.4 meters, and a voxel side length of 0.2 meters, corresponding to a voxel resolution of 256×256×32. Output categories include 19 non-empty semantic categories and 1 empty voxel category as specified by SemanticKITTI.

[0065] (I) Multi-scale image feature and depth probability extraction The current frame and historical frames are used for feature extraction using a parameter-shared two-dimensional image encoder. The image encoder outputs multi-scale image features at different spatial resolutions, allowing high-resolution features to preserve object edges and small target information, while low-resolution features provide a wider range of scene context.

[0066] A depth branch is set after the image encoder. The depth branch predicts the probability of 112 discrete depth intervals at each pixel location, with the depth range set to 2.0 to 58.0 meters and the interval between adjacent depth intervals being 0.5 meters. After Softmax normalization, the sum of the probabilities of all depth intervals at each pixel location is 1.

[0067] Channel adjustment of the 2D image features is performed using 1×1 convolution, normalization, and a nonlinear activation function to obtain depth-conditional image features. These features are then multiplied by the corresponding depth probabilities to form frustum features. ; in, Indicates the first Scale, Time Pixel position In the The probability over a depth interval; This represents the corresponding depth-conditional image features; This represents the cone feature formed by the two.

[0068] In this embodiment, the depth probability is used both to construct view frustum features from 2D image features and for subsequent voxel space refinement, thereby avoiding repeated calls to other large-scale depth estimation models.

[0069] (ii) Semantic prior distillation before voxel enhancement Semantic prior distillation is performed only on the current frame image during the model training phase. Specifically, the current frame image is simultaneously input into the student image encoder and the visual-language teacher model with fixed parameters.

[0070] This embodiment uses LSeg as the visual-language teacher model, with CLIPViT-L / 16 as its visual backbone. Text prompts are constructed based on the target category names of SemanticKITTI, enabling the teacher model to output pixel-level visual-language features and two-dimensional category probability maps related to target categories such as roads, vehicles, buildings, vegetation, pedestrians, and traffic signs.

[0071] To ensure consistency between teacher output and 3D semantic scene completion categories, a mapping relationship between teacher categories and target dataset categories is first established. Categories that cannot be matched with the teacher, ignored categories, and empty voxel categories are not included in the 2D category probability distillation. After completing the category mapping, teacher features and category probability maps are interpolated to the same spatial resolution as student features and student auxiliary segmentation heads.

[0072] For feature-level distillation, 1×1 convolutions are used to project the teacher's visual-linguistic features and the student's current frame image features to the same number of channels. Then, global pooling is performed on both types of features, and channel-wise fusion weights are generated through channel attention. Based on these weights, the teacher and student features are adaptively combined to form the semantically enhanced target features. The student's current frame features are then approximated to the semantically enhanced target features after gradient cessation using L1 norm loss.

[0073] For category-level distillation, an auxiliary two-dimensional semantic segmentation head is set after the student's current frame image features. This segmentation head outputs the student's category probability at each pixel location, and uses the teacher's category probability after category mapping and size alignment as the soft supervision objective, constraining the class discriminative ability of the student features through cross-entropy loss.

[0074] The visual-language teacher model and its text encoder retain their parameters unchanged during training. The teacher model, teacher feature adaptation path, and category distribution distillation path are all removed during the inference phase, thus eliminating the computational overhead of the visual-language teacher model during deployment.

[0075] (III) Temporal voxel construction of the current frame and historical frames Construct view frustum features for the current frame and each historical frame. For each pixel and discrete depth interval, backproject the image sampling points to the camera coordinate system based on the camera intrinsic parameters, and then transform the 3D sampling points to the coordinate system at the current moment using the camera extrinsic parameters and the vehicle pose.

[0076] Based on the spatial origin and voxel size of the preset voxel grid, the voxel index corresponding to each 3D sampling point is calculated. For multiple frustum features falling into the same voxel, voxel pooling is used to obtain the image features of that voxel, and it is recorded whether the voxel has a valid image response.

[0077] Historical frames employ the same image encoding and voxel projection process as the current frame. Historical voxel features are uniformly transformed to the current 3D coordinate system based on the vehicle's pose and formed into historical voxel memories in chronological order.

[0078] For voxels that have no valid image response in the current frame but have valid responses in historical frames, aligned historical voxel features are read and used to supplement the response. For voxels occluded by foreground surfaces in the current viewpoint, deformable 3D cross-attention is performed within the local neighborhood of the historical voxel, using the current voxel features as the query and the historical voxel features as the memory. The sampling offset and attention weights are predicted by the current query voxel, enabling the network to select voxel features related to the current occluded region from historical observations.

[0079] After historical feature supplementation and occlusion region refinement, multi-scale temporal voxel features and their corresponding empty response masks are obtained. The empty response mask is used to indicate whether a voxel lacks a reliable response from the current frame image and serves as control information for subsequent voxel spatial refinement.

[0080] (iv) Voxel space refinement after voxel construction The voxel space refinement module takes temporal voxel features and spatial response masks as the main inputs, and depth probabilities generated by depth branches and segmentation maps generated by two-dimensional semantic segmenters as auxiliary inputs.

[0081] First, a lightweight depth encoder is used to perform channel compression on the 112-dimensional depth probabilities to obtain compact geometrically guided features. Simultaneously, the category embeddings are weighted and combined based on the category probabilities output by the 2D semantic segmenter to generate pixel-level semantic embeddings. Category, region, and boundary features are then extracted using a semantic encoder. The category embedding table maintains its parameters unchanged during 3D semantic scene completion training to prevent excessive drift in category representations during main task training.

[0082] For each voxel scale, scale alignment and channel projection are performed on depth guidance and semantic guidance. Based on the depth probability, camera parameters, and voxel grid definition, the 2D guidance features are mapped to the corresponding horizontal voxel grid. Subsequently, the horizontal voxel guidance is extended along the vertical voxel direction, and the feature responses at different height positions are adjusted through 3D convolution to obtain depth-semantic voxel guidance.

[0083] To reduce noise in empty response voxels, this embodiment first uses an empty response mask to softly suppress temporal voxel features: ; in, This represents the voxel features after temporal construction. This represents the corresponding empty response mask. When the mask value is 0, the corresponding voxel features remain unchanged; when the mask value is 1, the corresponding voxel features are scaled to 0.7 times their original size, instead of being set to zero. This processing can suppress unreliable responses while preserving historical completion information and 3D neighborhood context.

[0084] Subsequently, the temporal voxel features after soft suppression and the depth-semantic voxels are guided into the residual 3D refinement module to obtain the refined voxel features: ; ; ; in, Represents depth-semantic voxel guidance. This represents a residual thinning block composed of 3D convolution, normalization, and activation functions. and The fusion ratio of the original temporal feature components and the auxiliary guiding components are controlled separately. Parameters and Through the Sigmoid function The data is mapped to a value between 0 and 1, and then multiplied by a weight cap of 0.2, so that depth and segmentation cues serve only as local auxiliary evidence and do not cover the original temporal voxel representation.

[0085] (V) 3D Semantic Occupation Decoding and Model Training The multi-scale voxel features output from the voxel space refinement module are input into the 3D voxel encoder. High-resolution voxel features are mainly used to preserve object boundaries and generate voxel masks, while low-resolution voxel features are mainly used to provide a large-scale 3D scene context.

[0086] Subsequently, multi-scale voxel features are input into a query-based semantic occupancy decoder. The decoder maintains multiple learnable queries and interacts with voxel features at different scales through multi-layer cross-attention. Each query outputs a category score and a voxel mask score, and finally, the query category score is combined with the corresponding voxel mask to form a dense 3D semantic occupancy result.

[0087] During training, Hungarian matching is used to establish a correspondence between the predicted query and the ground truth semantic mask. The 3D semantic scene completion loss consists of query classification loss, voxel masking loss, and Dice overlap loss. The joint training objective of the model is: ; in, This represents the loss for 3D semantic scene completion. This represents the semantic prior distillation loss. This represents the balance coefficient of the semantic prior distillation loss. The voxel space refinement module does not use independent depth supervision, segmentation supervision, or pseudo-label loss; instead, it uses... End-to-end optimization is performed. The semantic prior distillation loss only applies to the current frame's 2D image features during the training phase.

[0088] In this embodiment, the model is trained for 30 epochs using the AdamW optimizer. The initial learning rate is set to 2 × 10^{-4}, and the weight decay is set to 0.01. The learning rate is reduced in the 20th and 25th training epochs. Training is performed using four NVIDIA A100 80GB graphics cards, with a batch size of 1 for each card and a total batch size of 4. The above hardware and training parameters are only one specific implementation configuration and do not constitute a limitation on the scope of protection of this invention.

[0089] Example 2: Reasoning of a 3D Semantic Scene Completion Model During the inference phase, the current frame RGB image, four historical frame RGB images, camera intrinsic and extrinsic parameters for each frame, and the vehicle's pose are read.

[0090] The current frame and historical frames are first processed by a shared 2D image encoder and a depth branch to obtain multi-scale image features and depth probability distributions. Subsequently, based on camera geometry and vehicle pose, voxel projection and coordinate alignment of the current frame and historical frames are completed, and historical voxel memory is used to supplement the non-response areas of the current frame and refine the occluded areas to obtain temporal voxel features and empty response masks.

[0091] The 2D semantic segmenter generates a segmentation map based on the current frame image. The voxel space refinement module reuses the depth probability distribution generated by the depth branch, converts depth guidance and segmentation guidance into depth-semantic voxel guidance, and obtains refined multi-scale voxel features through empty response soft suppression and bounded residual fusion.

[0092] Finally, the refined voxel features are input into the 3D voxel encoder and semantic occupancy decoder to obtain the category score for each voxel location, and the category with the highest category score is determined as the semantic prediction result for that voxel.

[0093] During the inference phase, the LSeg teacher model, CLIP text encoder, teacher feature adaptation path, and teacher category distribution supervision path are not loaded. Therefore, semantic prior distillation does not introduce computational and memory overhead into the visual-language teacher model during the inference phase.

[0094] The output 3D semantic voxel results can be further converted into 3D occupancy grids, bird's-eye view semantic maps, semantic point clouds, or 3D meshes for environmental modeling, path planning, obstacle detection, and collision risk analysis of intelligent vehicles.

[0095] Based on the above-described visual 3D semantic scene completion method, this embodiment of the invention also provides a visual 3D semantic scene completion device. Please refer to... Figure 5 The visual 3D semantic scene completion device 800 includes: The acquisition module 810 is used to acquire the RGB images of the current frame and historical frames, camera parameters of each frame, and vehicle pose. The feature extraction module 820 is used to extract multi-scale image features of the current frame and historical frames respectively using a two-dimensional image encoder, and to predict the probability distribution of discrete depth intervals at each pixel position using a depth branch. The voxel projection module 830 is used to multiply the image features at each scale with the corresponding depth probability to form a frustum feature, and to map the sampling points of the frustum feature onto a three-dimensional voxel grid according to the camera parameters, and to perform geometrically perceptive voxel pooling. The temporal alignment module 840 is used to transform the voxel features of historical frames to the current coordinate system using the vehicle's pose, fill voxels that have no effective response in the current frame with historical memory, and refine occluded voxels with deformable 3D cross attention to obtain multi-scale voxel features and projection empty response mask constructed in the temporal sequence. The auxiliary guidance generation module 850 is used to convert the depth probability distribution into geometric guidance through a lightweight depth encoder, convert the segmentation map output by the 2D semantic segmenter into boundary and category guidance through category embedding and semantic encoder, complete scale alignment and 2D to 3D mapping, and form depth-semantic voxel guidance. The voxel space refinement module 860 is used to perform soft suppression on temporal voxel features based on the projection space response mask. It uses learnable weights with upper limit constraints to guide the original temporal voxel features and depth-semantic voxels into the residual 3D refinement module to obtain multi-scale voxel features with enhanced details. The semantic occupancy decoding module 870 is used to input the refined multi-scale voxel features into the 3D encoder and the query-based semantic occupancy decoder, and output dense 3D semantic occupancy results.

[0096] It should be noted that the visual three-dimensional semantic scene completion device 800 provided in the above embodiments can realize the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding content in the above method embodiments, and will not be repeated here.

[0097] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Based on the above-described visual three-dimensional semantic scene completion method, the present invention also provides an electronic device 900, namely the aforementioned electronic device. The electronic device 900 can be a computing device such as a mobile terminal, desktop computer, laptop, handheld computer, and server. The electronic device 900 includes a processor 910, a memory 920, and a display 930. Figure 6 Only some components of the electronic device are shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0098] In some embodiments, the memory 920 may be an internal storage unit of the electronic device 900, such as a hard disk or memory of the electronic device 900. In other embodiments, the memory 920 may be an external storage device of the electronic device 900, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device 900. Furthermore, the memory 920 may include both internal and external storage units of the electronic device 900. The memory 920 is used to store application software and various types of data installed on the electronic device 900, such as program code installed on the electronic device 900. The memory 920 may also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 920 stores a visual three-dimensional semantic scene completion program 940, which can be executed by the processor 910 to implement the visual three-dimensional semantic scene completion method of the embodiments of this application.

[0099] In some embodiments, processor 910 may be a central processing unit (CPU), microprocessor or other data processing chip, used to run program code stored in memory 920 or process data, such as executing a visual three-dimensional semantic scene completion method.

[0100] In some embodiments, display 930 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. Display 930 is used to display information from electronic device 900 and to display a visual user interface. Components 910-930 of electronic device 900 communicate with each other via a system bus.

[0101] In one embodiment, when the processor 910 executes the visual 3D semantic scene completion program 940 in the memory 920, the steps in the visual 3D semantic scene completion method described above are implemented.

[0102] This embodiment also provides a computer-readable storage medium storing a visual three-dimensional semantic scene completion program, which, when executed by a processor, can implement the steps in the above embodiments.

[0103] The serial numbers assigned to components in this document, such as "first" and "second," are used solely to distinguish the described objects and do not have any sequential or technical meaning. In the description of this application, it should be understood that the terms "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used solely for the convenience of describing this application and for simplification, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0104] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A visual 3D semantic scene completion method, characterized in that, Includes the following steps: Acquire RGB images of the current frame and historical frames, camera parameters for each frame, and vehicle pose; A two-dimensional image encoder is used to extract multi-scale image features of the current frame and historical frames respectively, and a depth branch is used to predict the probability distribution of discrete depth intervals at each pixel position; The image features at each scale are multiplied by the corresponding depth probability to form the frustum features. Based on the camera parameters, the sampling points of the frustum features are mapped to a three-dimensional voxel grid, and geometric perceptual voxel pooling is performed. By using the vehicle's pose, the voxel features of historical frames are transformed to the current coordinate system. Voxels that do not have a valid response in the current frame are filled with historical memory. Occluded voxels are refined using deformable 3D cross attention to obtain multi-scale voxel features and projected empty response masks constructed in time. The depth probability distribution is converted into geometric guidance by a lightweight depth encoder, and the segmentation map output by the 2D semantic segmenter is converted into boundary and category guidance by category embedding and semantic encoder, thus completing scale alignment and 2D to 3D mapping to form depth-semantic voxel guidance. The temporal voxel features are softly suppressed by the projection empty response mask. The original temporal voxel features and the depth-semantic voxels are guided into the residual 3D refinement module by the learnable weights with upper limit constraints to obtain multi-scale voxel features with enhanced details. The refined multi-scale voxel features are input into the 3D encoder and the query-based semantic occupancy decoder, and the dense 3D semantic occupancy results are output.

2. The visual three-dimensional semantic scene completion method according to claim 1, characterized in that, After extracting multi-scale image features of the current frame and historical frames using a two-dimensional image encoder, the method further includes: During the training phase only, a visual-language teacher model with fixed input parameters for the current frame image is used to construct text prompts and category mappings based on the category definitions of the target dataset, thereby obtaining pixel-level visual-language features and a two-dimensional category probability map. The features of the student image in the current frame are constrained by feature-level distillation and category distribution-level distillation. The visual-language teacher model, text encoder, teacher feature adaptation path, and auxiliary logic supervision are only enabled during the training phase and removed during the inference phase.

3. The visual three-dimensional semantic scene completion method according to claim 2, characterized in that, The characteristic stage distillation includes: The teacher's visual-linguistic features and the student's image features are projected onto the same channel dimension through an adapter. Then, channel-wise fusion weights are generated through global pooling, channel attention, and the Sigmoid function to construct semantically enhanced teacher target features. Student features are brought closer to the semantically enhanced target features after the gradient stops through L1 norm loss.

4. The visual three-dimensional semantic scene completion method according to claim 2, characterized in that, The category-distribution stage distillation includes: Student probabilities are obtained by using student features with an auxiliary two-dimensional segmentation head. Using the teacher class probability after class mapping and size alignment as the soft supervision objective, the class discrimination ability of student features is constrained by cross-entropy loss.

5. The visual three-dimensional semantic scene completion method according to claim 1, characterized in that, The voxels that do not respond effectively to the current frame are filled with historical memory, including: The most recent effective historical features, time-weighted average historical features, or gated fusion historical features are used for filling.

6. The visual three-dimensional semantic scene completion method according to claim 1, characterized in that, The refinement of the occlusion voxels using deformable 3D cross-attention includes: Using the current voxel as the query and historical voxels as the key and value, perform deformable 3D cross attention within the local neighborhood of the historical voxels. The sampling offset and attention weights are predicted by the current query voxel, enabling the network to select voxel features related to the current occluded region from historical observations.

7. The visual three-dimensional semantic scene completion method according to claim 1, characterized in that, The module that uses learnable weights with upper bounds to guide the input of original temporal voxel features and depth-semantic voxels to the residual 3D refinement module includes: The learnable weights are mapped to a range of 0 to 1 using the Sigmoid function, and then multiplied by the upper limit of 0.2, so that depth and segmentation cues are only used as local auxiliary evidence. The residual 3D refinement module includes 3D convolution, normalization, and activation functions, and the output is a weighted sum of the original temporal voxel features and the auxiliary guiding component.

8. A visual three-dimensional semantic scene completion device, characterized in that, include: The acquisition module is used to acquire the RGB images of the current frame and historical frames, camera parameters for each frame, and the vehicle's pose. The feature extraction module is used to extract multi-scale image features of the current frame and historical frames respectively using a two-dimensional image encoder, and to predict the probability distribution of discrete depth intervals at each pixel position using a depth branch. The voxel projection module is used to multiply the image features at each scale with the corresponding depth probability to form a frustum feature. Based on the camera parameters, the sampling points of the frustum feature are mapped to a three-dimensional voxel grid, and geometrically perceptive voxel pooling is performed. The temporal alignment module is used to transform the voxel features of historical frames to the current coordinate system using the vehicle's pose. It fills voxels that have no effective response in the current frame with historical memory and refines occluded voxels with deformable 3D cross attention to obtain multi-scale voxel features and projection empty response masks constructed in the temporal sequence. The auxiliary guidance generation module is used to convert the depth probability distribution into geometric guidance through a lightweight depth encoder, and to convert the segmentation map output by the 2D semantic segmenter into boundary and category guidance through category embedding and semantic encoder, thereby completing scale alignment and 2D to 3D mapping to form depth-semantic voxel guidance. The voxel space refinement module is used to perform soft suppression on temporal voxel features based on the projected spatial response mask. It uses learnable weights with upper limit constraints to guide the original temporal voxel features and depth-semantic voxels into the residual 3D refinement module to obtain multi-scale voxel features with enhanced details. The semantic occupancy decoding module is used to input the refined multi-scale voxel features into the 3D encoder and the query-based semantic occupancy decoder, and output dense 3D semantic occupancy results.

9. An electronic device, characterized in that, Including memory and processor, among which, The memory is used to store programs; The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the visual three-dimensional semantic scene completion method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Used to store computer-readable programs or instructions, which, when executed by a processor, are capable of implementing the steps in the visual three-dimensional semantic scene completion method according to any one of claims 1 to 7.