FEATURE-FUSION FOR TEMPORAL 3D OBJECT DETECTION
A computer-implemented method for machine learning a function. The function is configured to take as input a 3D point cloud frame of a real scene and to output localized representations. Each output representation is respective to a respective object of the real scene. The method includes obtaining a dataset of sequences of 3D point cloud frames. Each frame is associated with a time in the sequence, at least one frame being associated with an image. Each frame includes localized representations each of a respective object. The method further includes training the function based on the obtained dataset. The training includes, for each sequence of the dataset and each given frame of the sequence, training the function to output localized representations of objects in the given frame based on the given frame and on at least the frame with the previous time in the sequence.
Latest DASSAULT SYSTEMES Patents:
This application claims priority under 35 U.S.C. § 119 or 365 to European Patent application Ser. No. 25/305,698.0 filed on May 16, 2025. The entire contents of the above application are incorporated herein by reference.
TECHNICAL FIELDThe disclosure relates to the field of computer programs and systems, and more specifically to a method, system and program for machine learning a function configured to take as input a 3D point cloud frame of a real scene and to output localized representations each of a respective object of the real scene.
BACKGROUNDCurrent state-of-the-art methods in indoor 3D scene understanding like FCAF3D (D. Rukhovich, A. Vorontsova, and A. Konushin, “FCAF3D: Fully Convolutional Anchor-Free 3D Object Detection.” arXiv, Mar. 24, 2022. Accessed: Oct. 11, 2022. [Online]. Available: arxiv.org/abs/2112.00322) or TR3D (D. Rukhovich, A. Vorontsova, and A. Konushin, “TR3D: Towards Real-Time Indoor 3D Object Detection.” arXiv, Feb. 8, 2023. doi: 10.48550/arXiv.2302.02858) rely on machine learning models that are trained in a supervised manner on annotated datasets. These models are trained on datasets that comprise indoor scenes, i.e., furnished rooms. These scenes are represented according to the modalities that have been used to digitalize them, typically 3D point clouds, a camera feed, or a 3D reconstruction thereof. Currently used public datasets include SUN RGB-D (S. Song, S. P. Lichtenberg, and J. Xiao, “SUN RGB-D: A RGB-D Scene Understanding Benchmark Suite,” presented at the Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015, pp. 567-576. Accessed: Nov. 16, 2022. [Online]. Available: openaccess.thecvf.com/content_cvpr_2015/html/Song_SUN_RGB-D_A_2015_CVPR_paper.html), ScanNet (A. Dai, A. X. Chang, M. Savva, M. Halber, T. Funkhouser, and M. Nießner, “ScanNet: Richly-annotated 3D Reconstructions of Indoor Scenes.” arXiv, Apr. 11, 2017. doi: 10.48550/arXiv.1702.04405) and ARKitScenes (G. Baruch et al., “ARKitScenes: A diverse real-world dataset for 3D indoor scene understanding using mobile RGB-D data,” in Thirty-fifth conference on neural information processing systems datasets and benchmarks track (round 1), 2021. [Online]. Available: openreview.net/forum?id=tjZjv_qh_CE).
In particular, FCAF3D and TR3D belong to the convolutional neural network (CNN) class of 3D object detection methods, with the following pipeline:
-
- 1. Take a 3D point cloud as input.
- 2. Transform the point cloud into a voxel grid, i.e., a 3D image representation. This is done by considering a grid discretization of the space; if there exists at least one point within a given volume element in 3D space, the corresponding 3D voxel will be considered as occupied. One can consider this as the generalization of the pixellic 2D image representation to the 3D domain. One important parameter of this voxelization is the grid size-typically between 0.5 and 30 cm. The higher this grid size, the lower the resolution of the 3D representation, and thus the lower the potential quality of the subsequent predictions of the model. However, an increased grid size allows to lower the computational and memory cost of the subsequent pipeline.
- 3. Apply a neural network consisting of multiple 3D convolution layers. This can be done using Minkowski Engine (C. Choy, J. Gwak, and S. Savarese, “4D Spatio-Temporal ConvNets: Minkowski Convolutional Neural Networks.” arXiv, Jun. 13, 2019. doi: 10.48550/arXiv.1904.08755), which allows to efficiently compute 3D convolutions on sparse (mostly empty) voxel grids.
- 4. Object detection methods output multiple predictions, which can a) be a large number (over a thousand) of detected objects, and b) have significant overlap between each other. One intuition for this is that a detection model will correctly identify multiple parts of e.g., a given chair, as well as the whole chair itself—but output them as different detections. A common post-processing algorithm introduced in R-CNN (R. Girshick, J. Donahue, T. Darrell, and J. Malik, “Rich feature hierarchies for accurate object detection and semantic segmentation.” Oct. 22, 2014. arXiv, doi: 10.48550/arXiv.1311.2524.) is non-maximum suppression (NMS), which addresses these issues by removing the smaller prediction of the same semantic category (e.g., “chair”) when its overlap with a bigger prediction reaches or exceeds a set threshold. This post-processing algorithm has no learned or otherwise trained parameters. When considering prediction as bounding boxes, this overlap is measured as intersection over union (IoU E [0, 1]). For 3D bounding boxes, these union and intersection values are computed as volumes; for the sake of clarity, the 2D equivalent is visualized as areas on
FIG. 7 . Example IoU thresholds for NMS are 0.25 and 0.5.
Taking advantage of the static nature of indoor scenes, state-of-the-art indoor 3D object detection methods pre-process the data representing a given scene by removing any temporal data associated with the acquisition method and simply grouping all inputs together. For that reason, they may be called “offline” methods. Offline methods enforce an invariance to the order in which data was acquired and forces deep learning models to focus on spatial relationships and consider other objects in a room. However, this also enforces a bias that input scenes have been scanned in their entirety, making detection models rely on other objects in the room to guide predictions, limiting the quality of their predictions in online detection scenarios. When considering the use of such models, one reasonable requirement is the ability to provide the user with detection feedback during acquisition, i.e., giving predictions on what the user has just scanned, which is referred to as online detection. The aim of this requirement is to suggest whether further scans of a given part of the scene is needed or if the user can move on to other sections of the scene.
In addition, to provide user feedback during acquisition, such models must be evaluated in their entirety on successive subsets of the whole scene, including points that have already been acquired by the user. This sub-optimal scheme requires redundant computations, thereby increasing consumption of computer resources.
One example of such an offline method that tries to solve the online problem is Apple's RoomPlan (“3D Parametric Room Representation with RoomPlan,” Apple Machine Learning Research. Accessed: Oct. 13, 2022. [Online]. Available: machinelearning.apple.com/research/roomplan). To be able to repeatedly detect objects in real-time, they use the following design choices:
-
- 1. They choose a 3D CNN architecture with a high voxel size of 15 cm, making it very hard to identify objects smaller than this size such as books. As shown in the FCAF3D paper, lowering the resolution of a state-of-the-art 3D CNN from 1 cm to 3 cm already degrades the quality of detections in general. This seems to be the reason why RoomPlan only aims to detect large objects: “storage, sofa, table, chair, bed, refrigerator, oven, stove, dishwasher, washer or dryer, fireplace, sink, bathtub, toilet, stairs, and TV”.
- 2. They directly predict bounding boxes from disjoint subsets of the input point cloud using a local detector during online scanning, then aggregate these bounding boxes using an undisclosed algorithm.
One could argue that online 3D object detection is already performed by outdoor object detection methods typically designed for robotics or autonomous driving. Indeed, they need to take into account spatio-temporal relationships in order to accurately detect potentially occluded objects inside a dynamic scene.
However, outdoor models are tasked with detecting potential obstacles, i.e., large objects, whereas rooms (indoor scenes) feature both large furniture and small objects such as books. In addition, outdoor detection aims at detecting objects that each occupy their own vertical space, such as pedestrians or cars; in fact, state-of-the-art 3D outdoor detection models such as PointPillars (A. H. Lang, S. Vora, H. Caesar, L. Zhou, J. Yang, and O. Beijbom, “PointPillars: Fast Encoders for Object Detection From Point Clouds,” presented at the Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019, pp. 12697-12705. Accessed: Oct. 14, 2022. [Online] Available openaccess.thecvf.com/content_CVPR_2019/html/Lang_PointPillars_Fast_Encoders_for_Object_Detection_From_Point_Clouds_CVPR_2019_paper.html), BEVFusion (Z. Liu et al., “BEVFusion: Multi-Task Multi-Sensor Fusion with Unified Bird's-Eye View Representation.” arXiv, Jun. 16, 2022. doi: 10.48550/arXiv.2205.13542.) or EA-LSS (H. Hu et al., “EA-LSS: Edge-aware Lift-splat-shot Framework for 3D BEV Object Detection.” arXiv, Aug. 29, 2023. doi: 10.48550/arXiv.2303.17895.) explicitly integrate this prior by embedding the multi-sensor inputs into a unified 2D bird's eye (i.e., top-down) view. This reduction of a 3D problem to a 2D one would not work for indoor scenes, which comprise objects arranged in a truly 3D fashion, such as hanging plants or books on tables.
Furthermore, both existing offline and online 3D object detection solutions consider only spatial information (typically untextured point clouds), such that some ambiguities are often hard to solve. For example, small and flat objects will be visible in such a 3D data representation only with a high-enough resolution. Moreover, the boundaries between some objects might also be indistinguishable (e.g., in a kitchen's sequence of cabinets and appliances which are all cuboids of the same size), leading to difficulties in detecting and/or labelling them.
There is thus a need for improved solutions for outputting localized representation of objects (e.g., for object detection or for scene segmentation) in 3D point clouds representing real 3D scenes.
SUMMARYThere is therefore provided a computer-implemented method for machine learning a function. The function is configured to take as input a 3D point cloud frame of a real scene and to output localized representations. Each output representation is respective to a respective object of the real scene. The method comprises obtaining a dataset of sequences of 3D point cloud frames. Each frame is associated with a time in the sequence. Each frame comprises localized representations each of a respective object. One or more frames are each associated to a respective image representing at least a part of the scene represented by the frame. The method further comprises training the function based on the obtained dataset. The training comprises, for each sequence of the dataset and each given frame of the sequence, training the function to output localized representations of objects in the given frame based on: the given frame; at least the frame with the previous time in the sequence; and if available, an image representing at least a part of the scene represented by the given frame and/or an image representing at least a part of the scene represented by said at least the frame with the previous time in the sequence.
The method may comprise one or more of the following:
-
- the function comprises:
- a first local neural network configured to take as input a frame and to output at least a feature vector corresponding to localized representations each of a respective object in the frame;
- a second local neural network configured to take as input a frame and an image representing at least a part of the scene represented by the frame, and to output at least a feature vector corresponding to localized representations each of a respective object in the frame; and
- an aggregation neural network configured to aggregate the feature vectors outputted by the first local neural network and/or the second local neural network for said given frame and for at least the frame with the previous time in the sequence;
- the second local neural network comprises:
- an image neural network configured to take as input the image representing at least a part of the scene represented by the frame, and to output at least a feature vector of the image;
- a frame neural network configured to take as input the frame, and to output at least a feature vector corresponding to localized representations each of a respective object in the frame;
- a feature fusion module configured to perform fusion of the feature vector outputted by the image neural network with an intermediate feature vector determined by the frame neural network,
- the frame neural network being configured to output the at least a feature vector corresponding to localized representations each of a respective object in the frame based on the result of the feature fusion module, the output of the second local neural network being the output of the frame neural network;
- the first local neural network is configured to take as input a frame and to output two or more feature vectors each corresponding to a different resolution level;
- the second local neural network is configured to take as input a frame and to output two or more feature vectors each corresponding to a different resolution level, the fusion module being configured to perform fusion at least at one resolution level;
- the aggregation neural network is configured to perform two or more aggregations each corresponding to the feature vectors of a same resolution level;
- the fusion preserves feature dimension;
- the first local neural network is convolutional neural network (CNN) associated with a Feature Pyramidal Network (FPN);
- the image neural network is a CNN associated with a FPN and the frame neural network is a CNN associated with a FPN;
- the aggregation neural network is a combination of transformer neural networks and convolutions;
- each respective image is associated with parameters of a camera used for acquiring the image, the fusion being based on the camera parameters;
- the training comprises a batch training, where each batch respects a frame chronological order so that, during the batch training, the function does not output localized representations for the batch based on frames associated with future times;
- in the obtained dataset, each sequence of point cloud frames (X1, X2, . . . , XT), where Xt∈ is the point cloud frame at time t and contains nt points, is defined by the following rule:
- the function comprises:
-
- where ceil is a ceiling function, and (I1, I2, . . . , IV) is a sequence of depth images of the scene, and where is a back-projection operator that projects a pixel of a depth image to a 3D point; and/or
- the scene is an indoor scene.
There is also provided a function obtainable according to the method.
There is also provided a computer-implemented method of use of the function. The method of use comprises providing a sequence of 3D point cloud frames of a real scene. One or more frames are each associated to a respective image representing at least a part of the scene represented by the frame. The method of use also comprises, for each frame of the sequence, determining localized representations each of a respective object of the real scene in the frame by applying the function to the frame. The function is also applied, if available, to the image representing at least a part of the scene represented by the frame. The application of the function is based at least on a feature vector corresponding to localized representations each of a respective object in the previous frame. The application of the function is also based on, if available, the image representing at least a part of the scene represented by the previous frame.
There is further provided a computer program comprising instructions for performing the method and/or the method of use.
There is further provided a device comprising a data storage medium having recorded thereon the computer program and/or the function.
The device may form or serve as a non-transitory computer-readable medium, for example on a SaaS (Software as a service) or other server, or a cloud based platform, or the like. The device may alternatively comprise a processor coupled to the data storage medium. The device may thus form a computer system in whole or in part (e.g., the device is a subsystem of the overall system). The system may further comprise a graphical user interface coupled to the processor.
The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.
Non-limiting examples will now be described in reference to the accompanying drawings, where:
There is described a computer-implemented method for machine learning a function. The function is configured to take as input a 3D point cloud frame of a real scene and to output localized representations. Each output representation is respective to a respective object of the real scene. The method comprises obtaining a dataset of sequences of 3D point cloud frames. Each frame is associated with a time in the sequence. Each frame comprises localized representations each of a respective object. One or more frames are each associated to a respective image representing at least a part of the scene represented by the frame. The method further comprises training the function based on the obtained dataset. The training comprises, for each sequence of the dataset and each given frame of the sequence, training the function to output localized representations of objects in the given frame based on: the given frame; at least the frame with the previous time in the sequence; and if available, an image representing at least a part of the scene represented by the given frame and/or an image representing at least a part of the scene represented by said at least the frame with the previous time in the sequence.
The method constitutes an improved solution for outputting localized representations of objects in a 3D point cloud representing a scene.
Indeed, the method trains the function to perform this output based on a sequence of 3D point cloud frames, each frame being associated with a time in the sequence (i.e., the sequence is thus temporal with each frame corresponding to a time in the sequence). Such a sequence may typically correspond to a real-time 3D scan of the real scene, the scan progressively scanning the scene and thereby acquiring continuously (i.e., at short regular time intervals) 3D point cloud frames, each corresponding to a spatial portion of the scene and acquired at a certain time of the scanning process. This may, for example, correspond to a user moving in the scene (e.g., a furnished indoor room) and operating a scanning device to scan the scene. The function is trained to output, for a given input frame, the localized representations by accounting for not only this frame but also at least the preceding one in the sequence (i.e., at least the frame having the previous time in the sequence). The function thus learns inference of spatial relationships between different frames (i.e., spatial relationships between different regions of the scene) as well as temporal relationships between the different frames of the sequence. This improves the accuracy of the output.
Furthermore, the function is trained with the consideration of saving computing resources during use of the function (also referred to as online/inference phase/stage). Indeed, the real scene is captured by a sequence of 3D point cloud frames (e.g., because it corresponds to an acquisition with a 3D scan or the like which cannot physically acquire a same measurement of the whole scene with a single point cloud/image taken from a single viewpoint; alternatively such sequence may correspond to a user operating the scanning device (e.g., with their phone) by walking in the scene and capturing the scene sequentially by moving the device). Performing determination of the localized representations based on each single frame taken individually may lead to a lack of accuracy, because spatial and/or temporal relationships between the frames would not be accounted for, or at least not sufficiently. To the contrary, performing determination of the localized representations using all the frames together in a same computation step would increase the consumption of the memory and computing resources of the computer system. The method provides balance between these two possibilities by, for each given frame of the sequence, determining the localized representations in the frame using the computations (e.g., the feature vectors discussed hereinafter) already made for at least the previous frames in the sequence (e.g., only this frame, or the two previous ones, or the three previous ones). This allows accounting for spatial relationships as well as temporal relationships between the different frames of the sequence as previously said, which provides accuracy, while efficiently reusing computations which have been already made. In particular, during use, for a given frame to be processed by the function, only the computations (e.g., the feature vectors discussed hereinafter, which by the way are cheaper in terms of memory resources for storage than the corresponding frames themselves) made for at least the previous frame (e.g., only the previous one, or only the two previous ones) need to be stored in the RAM (random access memory) or VRAM (Video RAM) of the computer or in the cache of a computer software application performing the method to be accessible by the function and used together with said given frame for outputting localized representations in said given frame.
Furthermore, the function is trained to perform the detection of the localized representation by combining the 3D point cloud data of a given scene with image data of the same scene, when this image data is available. This improves accuracy of the detection. Notably, the detection is robust to the previously discussed inherent ambiguities of the 3D point cloud data. Thus, for example, in a practical use-case, when a user scans a 3D environment with the Lidar sensor of a hand-held device, such device usually also comprises a camera that records the capture. RGB images from such capture can be used by the function to improve the accuracy of the detection of objects in the 3D environment.
The method is for machine learning of a function, which is a neural network (also referred to as “neural network function”), a neural network being possibly a composition of neural networks and optionally of one or more deterministic layers, the composition being itself regarded as a neural network. The method is thus a method of machine learning, which learns/trains the function. As known per se from the field of machine-learning, the processing of an input by a neural network includes applying operations to the input, the operations being defined by data including weight values. Learning a neural network thus includes determining values of the weights based on a dataset configured for such learning, such a dataset being possibly referred to as a learning dataset or a training dataset. For that, the dataset includes data pieces each forming a respective training sample. The training samples represent the diversity of the situations where the neural network is to be used after being learnt. Any training dataset herein may comprise a number of training samples higher than 1000, 10000, 100000, or 1000000. In the context of the present disclosure, by “learning a neural network (or function) based on a dataset”, it is meant that the dataset is a learning/training dataset of the neural network, based on which the values of the weights (also referred to as “parameters”) are set. In the present disclosure, the training dataset is the obtained dataset of sequences of 3D point cloud frames, and of associated images, based on which the function is learnt.
The function is configured to (i.e., trained to) take as input a 3D point cloud frame of a real scene and to output localized representations each of a respective object of the real scene. The function may for example take as input a sequence of point cloud frames and compute the localized representation for each frame in the sequence, each time using at least the previous frame (i.e., at least the one with the previous time in the sequence), or computations made for said at least previous frame (e.g., the feature vector(s) thereof as previously discussed). The function may alternatively take each frame of the sequence as input separately and sequentially (one by one) according to the temporal order of the frames in the sequence, and for each frame, compute the localized representation using at least the previous frame (i.e., at least the one with the previous time in the sequence), or computations made for said at least previous frame (e.g., the feature vector(s) thereof as previously discussed), for example, as previously discussed, by accessing the results of these computations (e.g., the feature vectors) from the RAM or VRAM of the computer or from the cache of a computer software application performing the method. In any case, the function may output the localized representations computed for each frame or may alternatively apply a post-processing module to filter predictions and keep the most relevant ones which are then outputted, as further discussed hereinafter.
Furthermore, the function is configured to (i.e., trained to) output the localized representations of the input frame also based on, if available, an image representing at least a part of the scene represented by the given frame, and/or, if available, an image representing at least a part of the scene represented by said at least the frame with the previous time in the sequence. In other words, the function computes the localized representation, for each frame in the input sequence, not only using this frame and the previous one (or computations made for the previous one), but also using the image associated with the frame, if available, and the image(s) associated with the previous frame(s), if available.
A 3D point cloud frame is a 3D point cloud that corresponds to a partial view of the real scene, i.e., that is a 3D point cloud representation of this partial view. Any 3D point cloud or point cloud frame herein is a set of 3D points (i.e., each being equipped with a triplet of coordinates in the 3D space) each representing a location in the scene (or partial view of the scene, where appropriate) represented by the point cloud or point cloud frame. Any point cloud of a 3D environment herein may be noted P, and thus consists of a set of n points with x, y, z coordinates. Any point cloud herein may originate from (i.e., obtained from) a real-life scan with a Lidar scanning device, or may alternatively be synthetically generated. For any point cloud herein which stems from a real-life scan, the method or the method of use concerned with this point cloud may comprise physically performing the real-life scan. A real scene means a portion of the real world (e.g., a view of a real-world room such as a kitchen). Any scene herein may be an indoor scene, such as a furnished room. The function is thus configured to, i.e., is trained to and has an architecture adapted to, take as input a 3D point cloud frame. This does not exclude, during use, the function being used for several frames to output localized representations for one of these frames while accounting for the others, as further discussed hereinafter.
Any 3D point cloud frame herein may be associated with a respective image which represents at least a part of the scene represented by the frame (i.e., exactly the same scene or only a portion thereof). For example, one or several frames in the training dataset are each associated with such an image. During use (i.e., once trained), the function may also encounter frames each associated with such an image. The function is thus trained to and has the architecture adapted to take as input not only a frame, but also, if available, its associated image. By “image”, it is meant a RGB image or a black-and-white image. The methods and function herein exhibit better results with RGB images, but provide nevertheless satisfactory results with black-and-white images. The images in the training method and in the method of use are all of the same type, i.e., all RGB images or all black-and-white images. Each image herein is associated with parameters of a camera used for acquiring the image. The parameters may be the parameters defining the coordinate system of the camera, e.g., the parameters defining the camera position and orientation in the 3D space. Any image herein may be obtained using a real-world physical camera (the method concerned with the image may in this case comprise physically acquiring the image using the camera), the parameters being those of the physical camera. Any image herein may alternatively be synthetically generated using a simulated camera, the parameters being in this case also simulated. The images herein may come from a video stream, e.g., associated with the real-life scan that provides the corresponding sequence of frames.
The function outputs localized representations each of a respective object of the real scene (i.e., represented by the input point cloud frame). A localized representation of a respective object is data representing a geometric position of the object in the scene and data representing a semantic class of the object (the class being for example a type of object such as a type of furniture, or a segment type for a segmentation of the scene). The data representing the geometric position may be a bounding box (e.g., rectangular or circular) around or substantially around the object. The bounding box may be defined by a set of coordinates (x, y, z) representing a 3D position (e.g., of its center), a size (w, l, h) (width, length, height) and an orientation θ. The data representing the semantic class may be any suitable type of data, such as a label or a string description describing the object inside the box. The semantic class may be a semantic class of a segmentation (e.g., a type of segment), or a type of the object (e.g., a type of furniture or indoor object if the scene represents a room scene). All the semantic classes herein may belong to a predetermined set of semantic classes (e.g., between 10 and 40 semantic classes, for example 32 semantic classes), e.g., each being respective to a type of object (oven, dishwasher, fridge or the like). Any object herein may be a large object (e.g., a large furniture, such as a fridge), or a small object (e.g., a small indoor item, such as a book). A small object may herein be defined as an object having a volume smaller than 0.01 m3 and/or a maximal dimension smaller than 0.3 m.
The method comprises obtaining a dataset of sequences of 3D point cloud frames, and, for one or more of these frames, their associated images representing at least a part of the scene represented by each frame.
The dataset thus consists of sequences, each sequence being a sequence of 3D point cloud frames, some of the frames being associated each to a respective image. The point cloud frames of each sequence (and thus the associated images, where appropriate) may all be relative to a same scene, i.e., each frame of the sequence represents a partial view of a same scene (which is thus respective to the sequence). The sequences of the dataset (and thus the associated images, where appropriate) may all or substantially all be respective to scenes of a same type, such as scenes which all or substantially all are indoor scenes, e.g., of a furnished room (e.g., all house indoor scenes), e.g., of a room of a same type (e.g., all kitchen scenes, or any other type of indoor room). The extent to which all or substantially all the scenes represent a room of a same type may vary and may depend on the intended use of the function. For example, if it is intended for the function to be specialized for a same type of room (e.g., kitchen), then all or substantially all the scenes considered in the dataset may be of this type (e.g., all kitchen). Alternatively, if it is intended for the function to apply more generally to any indoor scene, e.g., any indoor room scene, then the dataset may comprise sequences relative to various types of indoor (e.g., room) scenes.
For each sequence, each frame is associated with a time in the sequence. This orders the frames in the sequence according to the time. For example, each sequence may be of the type (X1, X2, . . . , XT), where Xt∈ is the point cloud frame associated with time t∈{1, . . . , T}. Thus, any frame Xt has a preceding frame Xt−1 (except for X1), also referred to as “the frame with the previous time in the sequence”, and a next frame Xt+1 (except for XT), also referred to as “the frame with the next time in the sequence”. Each time t may be or correspond to a time of acquisition of the frame, or may be deduced from this acquisition time (e.g., up to a re-scaling or the like). As previously discussed, any frame herein may be associated with an image representing at least a part of the scene represented by the frame.
Each frame comprises localized representations each of a respective object. As explained above, each localized representation (respective to an object) is data representing a geometric position of the object in the scene and data representing a semantic class of the object (the class being for example a type of object such as a type of furniture, or a segment type for a segmentation of the scene). The data representing the geometric position may be a bounding box (e.g., rectangular or circular) around or substantially around the object. The bounding box may be defined by a set of coordinates (x, y, z) representing a 3D position (e.g., of its center), a size (w, l, h) (width, length, height) and an orientation θ. The data representing the semantic class may be any suitable type of data, such as a label of the bounding box or a string description describing the object inside the box (or its class). The semantic class may be a semantic class of a segmentation (e.g., a type of segment), or a type of the object (e.g., a type of furniture or indoor object if the scene represents a room scene). All the semantic classes herein may belong to a predetermined set of semantic classes, e.g., each being respective to a type of object (hoven, dish washer, fridge or the like). Thus, the function may be used for segmentation of a real scene, or for detection of bounding boxes around objects in the scene and associated semantic classes. The function may output localized representations for all or substantially all the objects (e.g., associated with a class belonging to a predetermined set of classes, e.g., a predetermined set of furniture and/or indoor items). For that, the training dataset may comprise frames capturing an appropriate variability and quantity of these objects, as known in the field of machine-learning.
Each sequence of the training dataset may be obtained from raw 3D data representing the scene corresponding to the sequence (e.g., data measured by physical sensor(s) such as a scanning device (e.g., 3D scan) or the like of a scene, or data corresponding to a virtual scan or the like of a scene). The associated images, where appropriate, may be obtained from the raw image data associated with the raw 3D data, such as image data physically acquired by a camera associated to/linked to the scanning device, or a virtual camera associated with the virtual scan. An example of a process for obtaining the sequences based on such raw 3D and image data is now discussed. Obtaining the dataset may comprise performing this process, or, alternatively, retrieving (e.g., downloading) a dataset already obtained from this process, from a (e.g., distant) memory or server or database or cloud where the dataset has been stored further to its obtention.
The process starts with obtaining, with a physical scanning device or a virtual scanning device, and associated camera, the raw 3D data and the image data (i.e., for each sequence) as a video stream, where the value at each pixel corresponds to the distance between the object shown on the picture and the camera/scanning device. Using known camera parameters—including its 3D position and orientation—each pixel is then mapped to a point in 3D space according to the geometric back-projection operation T. Each of these pictures is referred to as a depth image or depth map I, and is back-projected into a distinct 3D point cloud (I).
The resolution of any depth image herein may range between low-resolution 128×128, to 256×192 (e.g., for consumer-grade mobile devices), to 1920×1440 or above (e.g., for professional devices). Each pixel corresponds to a 3D point, and the scanning device may also compute an additional confidence score ranging from 1 (best) to 3 (worst) that estimates the accuracy of the position of each point, allowing to reject positions that may have been incorrectly measured. Additionally, the device may select when to take pictures based on heuristics indicating a sufficient difference between each depth map such as time between each capture, distance travelled, or camera rotation. In this context, camera position and orientation may be obtained through a combination of e.g., odometry from an on-device accelerometer and/or a registration algorithm.
As previously outlined, any point cloud (e.g., obtained from a depth map) discussed above may be either obtained from a real device in a real indoor scene, or from a simulated camera moving inside a virtual 3D scene. While real acquisition more closely matches the intended use case, simulated acquisition inside a virtual environment with known geometry allows generation of robust synthetic data with rich semantic annotations without the need for human annotators. The point cloud depth maps may in particular be obtained by applying the method for generating a training dataset disclosed in European Patent Application EP23305001.2, which is incorporated herein by reference.
In implementations, in the obtained dataset, each sequence of point cloud frames is denoted as (X1, X2, . . . , XT), where Xt∈ is the point cloud frame at time t and contains nt points. The definition of this integer time t is deliberately loose, as in the training stage it is a matter of implementations. However, in implementations, given a sequence of depth images (I1, I2, . . . , IV) as described above, the resulting point clouds (i.e., the point clouds resulting from the images) may be grouped in frames of k images according to the following rule:
where ceil is the ceiling function. The process may thus implement the above rule. However, the process could alternatively regroup images into frames according to other criteria such as timestamps, relative positions, or difference between camera parameters. Note that these frames may overlap each other, such that any given object may appear (at least in part) in multiple frames in the sequence.
In implementations, numerical values for the above variables may include:
-
- The number of images (or views) V lies in the 1, 175 range depending on the scene, with a mean of 101 images in the case of simulated acquisition; for real devices, a given scene may correspond to tens of thousands of images;
- The number of images per frame k may be arbitrary and may be used to control the trade-off between having many frames with a low number of points per frame (k=1) and going back to the offline setting with a single point cloud frame (k=0). The inventors tested values in the 1, 10 range, settling on k=10, resulting in an average of T=10 frames per scene. This grouping is important in the testing: for k=1, the inventors found that the local network f, which computes spatial relationships inside each frame, does not have enough spatial information to enable the online model to produce accurate predictions.
- A total number of points ranging from thousands to tens of millions in a given scene; to facilitate computations, the method may sample nt∈1000, 10000 points per frame Xt, with the higher end of the range giving better results.
Note that there are other methods of acquiring point clouds, and these may be used in alternative implementations. For example, some professional devices do not output depth maps, but instead directly output 3D point clouds based on 360° scans. Note that any such device would still have to contend with occlusion issues, requiring the user to move it to completely capture complex scenes. Thus, regardless of the manner in which the point clouds were acquired, the dataset consists of sequences of frames (X1, X2, . . . , XT).
Further to the obtention of the training dataset, the method comprises training the function based on the obtained dataset (i.e., the obtained dataset is a training dataset for the training of the function). The training comprises, for each sequence of the dataset and each given frame of the sequence, training the function to output localized representations of objects in the given frame based on the given frame and on at least the frame with the previous time in the sequence (i.e., using only the frame with the previous time in the sequence or possibly one or more previous frames), and, if available, also based on an image representing at least a part of the scene represented by the given frame and/or an image representing at least a part of the scene represented by said at least the frame with the previous time in the sequence.
The function may comprise (e.g., be or include a composition of) three neural networks.
The three neural networks comprise a first local neural network and a second local neural network. The first local neural network is configured to take as input a frame and to output at least a feature vector corresponding to localized representations each of a respective object of the frame. The feature vector may also be referred to as “embedding”, as known in the field of machine-learning, and forms a compact representation that captures the localized representations (e.g., all of them) in the frame (i.e., 3D point cloud frame) taken as input by the first local neural network. The second local neural network is configured to take as input a frame and an image representing at least a part of the scene represented by the frame, and to output at least a feature vector corresponding to localized representations each of a respective object in the frame. The output of the second local neural network is thus an embedding that captures the localized representations which are in the frame, using the image associated with that frame. Therefore, the function may detect (using for example a dedicated module) whether an input frame is associated with an available image or if the input frame is not associated to any image. In the first case, the function calls the second local neural network to process the frame and its associated image, and in the second case, the function calls the first neural network.
In the training dataset, each frame of each sequence may be associated with a respective image which represents the scene represented by the frame, or at least a part thereof. In this case, the function may only call the second local neural network and/or the function may comprise the second local neural network and not the first local neural network. Alternatively, for each sequence, only a subset of the frames of the sequence may be associated each with a respective image. For example, these frames may be selected randomly when forming the training dataset and/or distributed at regular time intervals, as further discussed hereinafter. In other words, for only a subset of (e.g., randomly selected and/or regularly distributed) times of the times of the sequence, each frame associated with one of these times may be also associated with the images. The frames may not be associated with any image (such that the first or second local neural network is called, depending on the encountered frame). Yet alternatively, for each sequence in the training dataset, images may be available only for a subset of times in the sequence as just discussed above, but the frames of the sequence may be clustered so that, for each cluster, each frame in the cluster is associated with one of these times and thus with the image available for this one time. For example, if the subset of times splits the times of the sequence in (e.g., regular) time intervals, each time interval beginning with a time of the subset and ending with one, then, for each interval, each frame associated to each time of the interval may be associated to the image available for the beginning time or for the ending time. In this case, the function may only call the second local neural network and/or the function may comprise the second local neural network and not the first local neural network.
The three neural networks further comprise an aggregation neural network. The aggregation neural network is configured to aggregate the feature vectors outputted by the first local neural network and/or the second local neural network for said given frame and for at least the frame with the previous time in the sequence. In other words, the function, for each sequence encountered, takes as input (successively or in a batched fashion) all the frames of the sequence and outputs a respective feature vector for each respective frame taken as input, each outputted vector being either outputted by the first local neural network (if the input frame is not associated to any image) or by the second local neural network (if the input frame is associated to an image, which is then also taken as input). For each outputted feature vector, the aggregation neural network aggregates this feature vector with the feature vector of the frame that is associated with the previous time in the sequence, and possibly one or more feature vectors corresponding the one or more frames associated with the one or more times before the previous time (e.g., the previous time, or the two previous times, or the three previous times). The first and second neural networks may be referred to as “the local networks” or “the backbone networks” and interchangeably denoted by f. The first or second local neural network, whichever is called, is evaluated separately and exactly once on each point cloud frame in the input sequence for which it is called by the function. The aggregation neural network may be denoted by g. This neural network receives the outputs of the local neural networks as a sequence, and either outputs predictions for the last frame in the sequence, or predictions for each frame in the sequence. The function may also comprise a detection head applied to the result of the aggregation, as further discussed hereinafter.
The second local neural network may comprise an image neural network. The image neural network is configured to take as input the image representing at least a part of the scene represented by the frame, and to output at least a feature vector of the image. The image neural network may for example consist in a feature extractor, configured to extract one or more image feature vectors (e.g., 2D feature vectors). For example, the image neural network may extract, for each resolution level of a predefined set of resolution levels (i.e., each corresponding to a different image resolution), a feature vector from the input image at that resolution level.
The second local neural network may also comprise a frame neural network. The frame neural network is configured to take as input the frame, and to output at least a feature vector corresponding to localized representations each of a respective object in the frame. The frame neural network may for example consist in a feature extractor, configured to extract one or more frame feature vectors (e.g., 3D feature vectors). For example, the frame neural network may extract, for each resolution level of the predefined set of resolution levels (i.e., each corresponding to a different image resolution), a feature vector from the input frame at that resolution level.
The second local neural network may also comprise a feature fusion module. The feature fusion module is configured to perform fusion of the feature vector outputted by the image neural network with an intermediate feature vector determined by the frame neural network. For example, the frame neural network may comprise initial convolution blocks applied before the feature extractions at the different resolution levels. The intermediate feature vector may be the result of these convolution blocks applied to the input frame.
The frame neural network is configured to output the at least a feature vector corresponding to localized representations each of a respective object in the frame based on the result of the feature fusion module. For example, the feature fusion module may comprise, for the first resolution level (e.g., the most accurate one), performing fusion of 1) the feature vector outputted by the image neural network for that resolution level and 2) the feature vector outputted by the frame neural network for that resolution level, after the input frame has been initially passed into the initial convolution blocks (i.e., the feature vector is computed from the result of this initial convolution). Then, at the second resolution level (e.g., the second most accurate one), the frame neural network may output the feature vector for that resolution level based on the combination of 2) and of the result of the fusion of 1) and 2). The image neural network may however output the image feature vector independently, i.e., without using the result of the fusion.
The feature fusion may be again performed at the second resolution level, i.e., the feature fusion module performs fusion of 3) the feature vector outputted by the image neural network for that resolution level and 4) the feature vector outputted by the frame neural network for that resolution level, which is based, as previously explained, on the result of the fusion performed for the previous resolution level. The feature fusion may be again performed for the next resolution level, and so on, possibly for all resolution levels (e.g., except for the last level for which no fusion may be performed). Alternatively, the feature fusion may be performed only at the first resolution level, or only at the first two, or more generally only at the nth first resolution levels with n being larger than or equal to 1 and smaller than (strictly) the number of resolution levels minus one. For each resolution level n, if fusion is performed for this resolution level, the frame neural network computes its feature vector at the next resolution level n+1 based on the result of the fusion at level n.
Thus, the second local neural network may be configured to take as input a frame (with its associated image) and to output two or more feature vectors each corresponding to a different resolution level of the set of resolution levels, the fusion module being then configured to perform fusion at least at one resolution level (at least the first one, and possible one or more after that, as discussed above). The output of the second local neural network is the output of the frame neural network. As discussed above, the frame neural network may extract features vectors from the input frame (one per resolution level), using the result of the fusion during the extraction, at least for one resolution level. The feature vectors may then be passed into convolution/transposed convolution blocks of the frame neural network, and then into a detection head, which outputs the feature vectors, one per resolution level, each embedding the localized representations in the frame for a respective resolution level.
The first local neural network may be configured to take as input a frame and to output two or more feature vectors each corresponding to a different resolution level (i.e., of the same set of resolution levels discussed above for the second local neural network). In other words, the first neural network outputs two or more feature vectors for each input frame, and each of these outputted vectors corresponds to a different resolution level for the localized representations of objects in the frame. The resolution levels are the same for the first and second local neural networks, i.e., if the function considers n resolution levels, the two local networks both output features for each of the n resolution levels.
The various levels of resolution allow accounting for different sizes of the objects (i.e., for objects of various sizes). In this case where the first and second local neural networks output feature vectors at different resolution levels, the aggregation neural network is configured to perform two or more aggregations each corresponding to the feature vectors of a same resolution level. In other words, for each frame (or feature vector) involved in the aggregation performed by the aggregation neural network (i.e., the given input frame and the one or more previous ones), two or more aggregation of these frame feature vectors are performed, one for each resolution level (i.e., one aggregation is performed with all the frame feature vectors for the highest resolution level, one aggregation is performed with all the frame feature vectors for the next highest resolution level, and so on until the lowest resolution level). The method may consider two resolution levels, three resolution levels, or four resolution levels. Each resolution level may be or correspond to a depth level. The resolution levels used for the aggregation may be 8 cm, 16 cm, 32 cm, and 64 cm (with the levels 16 cm and 32 cm being particularly useful).
Each of the first local neural network, image neural network, and frame neural network may be a combination of a convolutional neural network (CNN) with a feature pyramidal network (FPN). The aggregation neural network may be a combination of transformer neural networks and convolutions. The image neural network may also be referred to as 2D extractor or 2D backbone, as it extracts features from images, i.e., 2D pixel data. The frame neural network may be referred to as the 3D extractor or 3D backbone, as it extracts features from frames, i.e., 3D point cloud data. The first local neural network may be the “local neural network” or “backbone” neural network disclosed in European Patent Application EP24305798.1 filed by DASSAULT SYSTEMES, and noted f in that European Patent Application. The description of this neural network and of any of these features as disclosed in European Patent Application EP24305798.1 is incorporated herein by reference.
The feature fusion module may be based on the camera parameters, i.e., it may use these parameters to map the images and the corresponding 3D frames during fusion. For example, the feature fusion module may implement the following algorithm (illustrated by
-
- back-projecting 3D points into the camera's coordinate system of each image, and assigning each voxel of the point cloud (depending on the chosen resolution) to the corresponding pixel in the image. Since voxels and pixels are not a one-to-one mapping and many projected points overlap each other, many voxels fall into the same pixel view frustum. Looking at a frustum of pixels, the algorithm may only assign pixel features to the first nearest, visible, surface voxel. Alternatively, due to the complexity of implementing this approach in an efficient parallel computing manner, the algorithm may not consider the occlusion problem and assign the pixels feature values to all voxels in the pixel's frustum;
- sampling the feature maps for the projected voxels and assigning the 2D features of the pixels to the corresponding 3D voxels via bilinear interpolation;
- since the same voxel may obtain features from different images, some areas of the 3D scene being captured by several camera positions, averaging the features to obtain the final point-wise (or voxel-wise) image features; and
- fusing the image features with the points features.
The fusion may preserve feature dimension. For example, the feature fusion module may use an addition link for the feature-fusion, i.e., it first uses a convolution operator to make the images features and points features dimensions match before simply adding the features together. Other types of feature fusions could be performed. For instance, the addition link may be replaced by a concatenation or more complex operators such as an attention block. Thanks to the multi-layer architecture, the feature fusion module is able to perform feature-fusion at several resolution scales. In the ResNet structure, lower-level features typically capture local information about the data while higher-level features capture more global and abstract information. By fusing features from different layers, the model can use all levels' information for further decision making in downstream tasks.
The local neural network (or backbone) f (i.e., any of the first or second local neural network) may be first evaluated independently on each of the point cloud frames Xt (and, where appropriate, associated images), outputting intermediate features (or embeddings) Zt=f(Xt). In implementations, these features are intermediate computations of a custom variant of TR3D (discussed in reference D. Rukhovich, A. Vorontsova, and A. Konushin, “TR3D: Towards Real-Time Indoor 3D Object Detection.” arXiv, Feb. 8, 2023. doi: 10.48550/arXiv.2302.02858, which is incorporated herein by reference), such that a lightweight parametric function (referred to as a “detection head” in the previously cited reference) h may be applied to give initial frame-wise predictions B̆t=h(Zt). The composition of the two functions h∘f may thus have the architecture of a 3D object detection neural network and is heavily inspired by TR3D. In implementations, these initial predictions B̆t are not computed at the inference stage. They are rather used as part of a loss function when training the neural network.
The aggregation neural network g then uses the intermediate features Zt outputted by the local neural network to generate the final predictions {circumflex over (B)}t=g(Zt, Zt−1, . . . , Zt−δt+1), where δt∈1, t. As illustrated on
In implementations, the input images are thus fed to the 2D features extractor while the input 3D point cloud of the scene is processed by the first pooling and convolution layers of the 3D backbone and then by its 1st residual block to obtain the 3D features at the first resolution scale. The 2D features are then fused to the 3D features at the corresponding resolutions. In implementations, the function fuses the 2D features extracted after the first residual block (highest resolution with local information) with the 3D features obtained after the first residual block of the 3D backbone. In tested implementations, the inventors used 50 images as input and uniformly subsampled the input 3D point cloud to 100 000 points for memory and computation requirements. The first and second local neural network may thus be used as this model can be used as the local network f to be imputed to g, as the local network f is imputed to g in previously discussed European Patent Application EP24305798.1, which is incorporated herein by reference. When the second local neural network is used, this allows benefiting from the visual information provided by the video stream of the camera during the point cloud capture to further improve the online 3D object detection.
In implementations, the aggregation network g corresponds to a sequence of Fusion Aggregation Modules (FAM), to which is appended a detection head h. This is illustrated on
In implementations, features from the high-resolution level are processed first, then passed to the next FAM to fuse features from its resolution level together with the higher resolution level. The outputs of all FAMs are then fed to the detection head to output the final predictions. In these implementations, each FAM consists of a combination of 3D convolution layers and Transformer layers (discussed in reference A. Vaswani et al., “Attention Is All You Need.” arXiv, Dec. 5, 2017. doi: 10.48550/arXiv.1706.03762, which is incorporated herein by reference) with deformable attention (as discussed in reference X. Zhu, W. Su, L. Lu, B. Li, X. Wang, and J. Dai, “Deformable DETR: Deformable Transformers for End-to-End Object Detection.” arXiv, Mar. 17, 2021. Accessed: Oct. 17, 2022. [Online]. Available: arxiv.org/abs/2010.04159, which is incorporated herein by reference). The FAM architecture is illustrated by
It is to be noted that the above description of both the aggregation network g and FAMs are implementation details of a neural network which has been tested by the inventors and considered to provide satisfactory results. Alternative suitable architectures or modifications may however be considered such as: using scaled dot product attention (discussed in previously discussed reference A. Vaswani et al., “Attention Is All You Need.” arXiv, Dec. 5, 2017. doi: 10.48550/arXiv.1706.03762) rather than the previously discussed deformable attention or using coarse-to-fine fusion aggregation order instead of fine-to-coarse. Networks with either FCAF3D or TR3D variants as the local network f may be considered. These alternatives have been tested and provide satisfactory results.
The function may optionally comprise a post-processing part that applies a post processing in the form of non-maximum suppression (NMS) to filter predictions and keep the most relevant ones.
The training may comprise training the first and second neural network independently from the aggregation neural network, or all of them can be trained together. In any case, the 2D feature extractor may be pre-trained (i.e., trained before the training of any other neural network) and then frozen (i.e., its parameters and weights fixed). The pre-training may be done on a large annotated image dataset, for example comprising several hundreds of thousands of colored or black-and-white images (up to tens or hundreds of millions of images) annotated with semantic labels, semantic segmentation masks and semantic bounding boxes.
The 3D backbone may be trained on a dataset of annotated 3D scenes (e.g., meshes or point clouds) with associated images and cameras' parameters. Such dataset could be captured from reality by means of sensors or synthetically generated by means of virtual simulations. For instance, such dataset could be generated synthetically using HomeByMe virtual scenes (obtained with the method disclosed in European Patent Application EP23305001.2, which is incorporated herein by reference). Other datasets including thousands of 3D scene point clouds, annotated with semantic labels, semantic segmentation masks and semantic 3D bounding boxes associated to colored pictures (or video frames) of the corresponding 3D scenes and the corresponding 3D camera poses, could be used instead.
The first local neural network and the aggregation neural network may be trained as disclosed in previously discussed European Patent Application EP24305798.1. Alternatively, they may be provided already trained. Yet alternatively, the aggregation neural network may be trained together with the first and second local neural networks using the same training as the one disclosed in previously discussed European Patent Application EP24305798.1.
The neural networks disclosed herein may be implemented in Python, using the PyTorch library (discussed in A. Paszke et al., “PyTorch: An imperative style, high-performance deep learning library,” in Advances in neural information processing systems 32, H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, Eds., Curran Associates, Inc., 2019, pp. 8024-8035. [Online]. Available: papers.neurips.cc/paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library.pdf, which is incorporated herein by reference) for auto-differentiation and Minkowski Engine (discussed in C. Choy, J. Gwak, and S. Savarese, “4D Spatio-Temporal ConvNets: Minkowski Convolutional Neural Networks.” arXiv, Jun. 13, 2019. doi: 10.48550/arXiv.1904.08755, which is incorporated herein by reference) for the sparse convolution operations used in the 3D backbone. Like most deep learning methods, the models may in implementations by trained using a stochastic gradient descent algorithm, for example AdamW (discussed in reference I. Loshchilov and F. Hutter, “Decoupled Weight Decay Regularization.” arXiv, Jan. 4, 2019. doi: 10.48550/arXiv.1711.05101., which is incorporated herein by reference).
The training may comprise a batch training. Each batch may respect a frame chronological order so that, during the batch training, the function does not output localized representations for the batch based on frames associated with future times. In other words, for/during training, the aggregation network may operate in a batched mode, outputting all predictions corresponding to the input frames:
({circumflex over (B)}t,{circumflex over (B)}t−1, . . . ,{circumflex over (B)}t−δt+1)=gbatch(Zt,Zt−1, . . . ,Zt−δt+1).
This batched mode respects the chronological order (a.k.a. causality): much like prediction {circumflex over (B)}t does not depend on Zt+1, {circumflex over (B)}t−1 does not depend on Zt, but on all features with indices ≤t−1. This allows training of the model on multiple frames and even multiple scenes in parallel using a graphical processing unit (GPU), while still providing a large number of predictions to be used in the loss function.
Implementations of the training pipeline are illustrated by
Results of tests performed by the inventors using the above-discussed implementations are now discussed. The results are shown on the table below:
These results were obtained by fusing the features of the images of the 1st layer of the 2D feature extractor with the points features of the 1st layers in the 3D detection network.
As illustrated by the above table, the method improves the results overall but more specifically on the classes regarding small or flat objects such as pictures or doors which are more easily recognizable in pictures than in point clouds. The common metrics used in 3D Object Detection are mean average precision (mAP) and mean average recall (mAR). These metrics are defined using an intersection over union (IoU) threshold to evaluate the model's predictions. For a given class c, it is considered that a prediction bounding box is a correct prediction if it can be paired to a ground truth bounding box such that the IoU (intersection over union) between the two bounding boxes is higher than a given threshold. Intersection over union (IoU∈[0, 1]) may be described as follows. For 3D bounding boxes, these union and intersection values are computed as volumes; for the sake of clarity, the 2D equivalent is visualized as areas on
Consider the following definitions:
-
- True Positive (TP): correct model prediction, i.e., prediction that was matched with a bounding box of the same class such that IoU>threshold.
- False Positive (FP): incorrect model prediction, i.e., the model predicted a bounding box but no corresponding ground truth annotation was matched or IoU≤threshold.
- False Negative (FN): missing prediction. An annotation that is not matched to any prediction (i.e., the object is present but was not detected by the model).
- Precision is the fraction of the positive predictions that are actually correct:
-
- Recall is the fraction of actual positive instances the model is able to correctly identify:
-
- Precision-recall curve: The trade-off between the quality and quantity of predicted bounding boxes can be controlled after inference, typically in the form of a confidence score that the model associates to each class and bounding box. This score can be thresholded to remove predictions that the model is not confident about, allowing to plot a graph of precision and recall as the confidence score threshold varies.
- Average precision (AP) is the area under the precision-recall curve for each class (illustrated by
FIG. 8 ). - Mean average precision (mAP) is the mean of APs across all classes. We usually denote mAP_threshold to specify at which IoU threshold we have computed the metrics (i.e., at which quality level).
- Frame-wise Mean Average Precision (fmAP) corresponds to mAP in the online setting, where precision and recall are not computed for each scene, but rather for each frame.
- Average Precision (AR), mAR and fmAR can be defined in a similar fashion.
It is also provided a function obtainable according to the method, i.e., a computer-implemented data structure forming the function on a computer system and having parameters (e.g., neural network weights) with values that would have resulted from the training according to the method. Such a function may be directly obtained from the method, i.e., the parameters' values directly result from the training according to the method. In any case, the data structure can be stored (and provided as such) on a computer (e.g., non-transitory) memory.
It is also provided a computer-implemented method of use of the function obtainable (e.g., having been learnt) by the method. The method of use comprises providing a sequence of 3D point cloud frames of a real scene. One or more frames of the sequence may be each associated to a respective image representing at least a part of the scene represented by the frame. Providing the sequence of 3D point cloud frames may comprise, by a user or automatically, operating a 3D scanning device (e.g., integrated on the user's phone) and continuously or iteratively scanning the scene with the device. The scanning may directly result in 3D point cloud frames of the scene or may result in images of the scene (e.g., depth images). In the latter alternative, providing the sequence may comprise transforming each image into a 3D point cloud frame as known in the art, thereby yielding the sequence. Each frame of the sequence is associated with a time, which may be or stem from (e.g., up to a rescaling or the like), for example, an acquisition time provided by the scanning device. Providing the sequence also comprises providing the images associated with the one or more frames. This may comprise extracting the images from a video stream of the camera associated with the scanning device (e.g., the user's phone camera), for example by randomly selecting images and/or selecting images at regular time intervals and associating each selected image to the frame having the same acquisition time.
The method of use further comprises, for each frame of the sequence, determining localized representations each of a respective object of the real scene in the frame by applying the function to the frame, and, if available, to the image associated to that frame. The application of the function is thus performed iteratively on each frame, one after the other, where each time a frame is associated to an image the function is also applied to the image. The application of the function is based at least on the feature vector corresponding to localized representations each of a respective object in the previous frame, and, if available, on the image associated to the previous frame. For example, the application of the function may comprise, for each frame, applying the first local neural network to the frame if it is not associated to an image and the second local neural network to the frame and its associated image, if the frame is associated to an image, thereby extracting a feature vector of the frame. Then, the application of the function may comprise applying the second neural network to perform aggregation of the feature vector extracted for the frame and of at least the feature vector extracted for the frame having the previous time (which implies that, in the aggregation, the feature vector for the frame having the previous time is used, and, optionally, one or more feature vectors of the frame(s) having the time(s) before that are also used). Each feature vector of a previous frame either results from the first local neural network if that feature vector is not associated to an image or results from the second local neural network if that feature vector is associated to an image. Final detection of the localized representation may then be performed, after aggregation, by application of the detection head previously discussed to the result of the aggregation. The learning method and the method of use may be integrated into a same computer-implemented method which comprises performing the learning method and then the method of use of the function learnt by the learning method.
The trained function thus provides computer-efficiency and accuracy when operating in an online setting, i.e., when applying the method of use. Indeed, by design, the heavier local network (backbone) is only evaluated once on each point cloud frame, and it is up to the lighter aggregation network to refine its outputs into frame-wise predictions. Thus, when applying the aggregation network to perform the aggregation of feature vectors, only the feature vector of the current frame and of the frame with the previous time (and optionally, where appropriate, of the one or more frames with the one or more times before that) need(s) to be stored on the RAM (random access memory) or VRAM (video RAM) of the underlying computer in the cache of a computer software application performing the method. By contrast, existing offline indoor 3D object detectors must be evaluated on the concatenation of all previous frames in the sequence to produce acceptable results. Accuracy comes from the fact that the aggregating network computes both spatial relationships, i.e., between different regions of the scene, and temporal relationships, i.e., between the different frames of the sequence. This efficient use of the RAM or cache notably allows real-time (e.g., substantially instantaneously while the scene is captured, e.g., scanned by a user moving in the scene) determination of the localized representations in the scene. This also allows providing the user in real-time with visual feedback as to whether the scene acquisition has been well performed. Furthermore, robustness and accuracy of the detection are improved, as images are used together with the 3D point cloud data (the frames).
Furthermore, during point cloud acquisition, a user may move the scanning device to capture different parts of a given indoor scene. Indeed, some parts of the scene may have been occluded by other objects, or simply not present in the field of view of the device. In this context, the method, function, and method of use allow to output 3D semantic information relevant to the most recently captured points based on previously acquired data from the scene.
The methods are computer-implemented. This means that steps (or substantially all the steps) of the methods are executed by at least one computer, or any system alike. Thus, steps of the methods are performed by the computer, possibly fully automatically, or, semi-automatically. In examples, the triggering of at least some of the steps of the method may be performed through user-computer interaction. The level of user-computer interaction required may depend on the level of automatism foreseen and put in balance with the need to implement user's wishes. In examples, this level may be user-defined and/or pre-defined.
A typical example of computer-implementation of a method is to perform the method with a system adapted for this purpose. The system may comprise a processor coupled to a memory and a graphical user interface (GUI), the memory having recorded thereon a computer program comprising instructions for performing the method. The memory may also store a database. The memory is any hardware adapted for such storage, possibly comprising several physical distinct parts (e.g., one for the program, and possibly one for the database).
The client computer of the example comprises a central processing unit (CPU) 1010 connected to an internal communication BUS 1000, a random-access memory (RAM) 1070 also connected to the BUS. The client computer is further provided with a graphical processing unit (GPU) 1110 which is associated with a video random access memory 1100 connected to the BUS. Video RAM 1100 is also known in the art as frame buffer. A mass storage device controller 1020 manages accesses to a mass memory device, such as hard drive 1030. Mass memory devices suitable for tangibly embodying computer program instructions and data include all forms of nonvolatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks. Any of the foregoing may be supplemented by, or incorporated in, specially designed ASICs (application-specific integrated circuits). A network adapter 1050 manages accesses to a network 1060. The client computer may also include a haptic device 1090 such as cursor control device, a keyboard or the like. A cursor control device is used in the client computer to permit the user to selectively position a cursor at any desired location on display 1080. In addition, the cursor control device allows the user to select various commands, and input control signals. The cursor control device includes a number of signal generation devices for input control signals to system. Typically, a cursor control device may be a mouse, the button of the mouse being used to generate the signals. Alternatively or additionally, the client computer system may comprise a sensitive pad, and/or a sensitive screen.
The computer program may comprise instructions executable by a computer, the instructions comprising means for causing the above system to perform the method. The program may be recordable on any data storage medium, including the memory of the system. The program may for example be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. The program may be implemented as an apparatus, for example a product tangibly embodied in a machine-readable storage device for execution by a programmable processor. Method steps may be performed by a programmable processor executing a program of instructions to perform functions of the method by operating on input data and generating output. The processor may thus be programmable and coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. The application program may be implemented in a high-level procedural or object-oriented programming language, or in assembly or machine language if desired. In any case, the language may be a compiled or interpreted language. The program may be a full installation program or an update program. Application of the program on the system results in any case in instructions for performing the method. The computer program may alternatively be stored and executed on a server of a cloud computing environment, the server being in communication across a network with one or more clients. In such a case a processing unit executes the instructions comprised by the program, thereby causing the method to be performed on the cloud computing environment.
Claims
1. A computer-implemented method for machine learning a function configured to take as input a 3D point cloud frame of a real scene and to output localized representations each of a respective object of the real scene, the method comprising:
- obtaining a dataset of sequences of 3D point cloud frames, each frame being associated with a time in the sequence, each frame having localized representations each of a respective object, one or more frames being each associated to a respective image representing at least a part of the scene represented by the frame; and
- training the function based on the obtained dataset, the training including, for each sequence of the dataset and each given frame of the sequence, training the function to output localized representations of objects in the given frame based on: the given frame; at least the frame with previous time in the sequence; and when available, an image representing at least one of: a part of the scene represented by the given frame, and a part of the scene represented by said at least the frame with the previous time in the sequence.
2. The method of claim 1, wherein the function includes:
- a first local neural network configured to take as input a frame and to output at least a feature vector corresponding to localized representations each of a respective object in the frame;
- a second local neural network configured to take as input a frame and an image representing at least a part of the scene represented by the frame, and to output at least a feature vector corresponding to localized representations each of a respective object in the frame; and
- an aggregation neural network configured to aggregate the feature vectors outputted by at least one of the first local neural network and the second local neural network for said given frame and for at least the frame with the previous time in the sequence.
3. The method of claim 2, wherein the second local neural network includes:
- an image neural network configured to take as input the image representing at least a part of the scene represented by the frame, and to output at least a feature vector of the image;
- a frame neural network configured to take as input the frame, and to output at least a feature vector corresponding to localized representations each of a respective object in the frame; and
- a feature fusion module configured to perform fusion of the feature vector outputted by the image neural network with an intermediate feature vector determined by the frame neural network,
- the frame neural network being configured to output the at least a feature vector corresponding to localized representations each of a respective object in the frame based on a result of the feature fusion module, the output of the second local neural network being the output of the frame neural network.
4. The method of claim 3, wherein:
- the first local neural network is configured to take as input a frame and to output two or more feature vectors each corresponding to a different resolution level;
- the second local neural network is configured to take as input a frame and to output two or more feature vectors each corresponding to a different resolution level, the fusion module being configured to perform fusion at least at one resolution level; and
- the aggregation neural network is configured to perform two or more aggregations each corresponding to the feature vectors of a same resolution level.
5. The method of claim 3, wherein the fusion preserves feature dimension.
6. The method of claim 3, wherein the function includes at least one of following features:
- the first local neural network is a convolutional neural network (CNN) associated with a Feature Pyramidal Network (FPN);
- the image neural network is a CNN associated with an FPN and the frame neural network is a CNN associated with an FPN; and
- the aggregation neural network is a combination of transformer neural networks and convolutions.
7. The method of claim 3, wherein each respective image is associated with parameters of a camera used for acquiring the image, the fusion being based on the camera parameters.
8. The method of claim 1, wherein the training includes a batch training, where each batch respects a frame chronological order so that, during the batch training, the function does not output localized representations for the batch based on frames associated with future times.
9. The method of claim 1, wherein, in the obtained dataset, each sequence of point cloud frames (X1, X2,..., XT), where Xt∈ is the point cloud frame at time t and contains nt points, is defined by the following rule: { ∀ t ∈ ? 1, T ?, X t:= ⋃ v = k × ( t - 1 ) + 1 max ( k × t, V ) 𝒯 ( I v ) T:= ceil ( V k )
- where ceil is a ceiling function, and (I1, I2,..., IV) is a sequence of depth images of the scene, and where is a back-projection operator that projects a pixel of a depth image to a 3D point.
10. The method of claim 1, wherein the scene is an indoor scene.
11. A computer-implemented method of applying a function configured to take as input a 3D point cloud frame of a real scene and to output localized representations each of a respective object of the real scene, the function being obtainable according to a machine learning, the machine learning including: obtaining a dataset of sequences of 3D point cloud frames, each frame being associated with a time in the sequence, each frame including localized representations each of a respective object, one or more frames being each associated to a respective image representing at least a part of the scene represented by the frame, and training the function based on the obtained dataset, the training including, for each sequence of the dataset and each given frame of the sequence, training the function to output localized representations of objects in the given frame based on: the given frame, at least the frame with previous time in the sequence, and when available, an image representing at least one of a part of the scene represented by the given frame and a part of the scene represented by said at least the frame with the previous time in the sequence, the applying comprising:
- obtaining a sequence of 3D point cloud frames of a real scene, one or more frames being each associated to a respective image representing at least a part of the scene represented by the frame; and
- for each frame of the sequence, determining localized representations each of a respective object of the real scene in the frame by applying the function to the frame, and when available, to the image representing at least a part of the scene represented by the frame, application of the function being based on at least a feature vector corresponding to localized representations each of a respective object in previous frame, and when available, on the image representing at least a part of the scene represented by the previous frame.
12. A device comprising: a non-transitory computer-readable data storage medium having recorded thereon a computer program having at least one of:
- first instructions for performing a machine learning of a function configured to take as input a 3D point cloud frame of a real scene and to output localized representations each of a respective object of the real scene that when executed by a processor causes the processor to be configured to: obtain a dataset of sequences of 3D point cloud frames, each frame being associated with a time in the sequence, each frame including localized representations each of a respective object, one or more frames being each associated to a respective image representing at least a part of the scene represented by the frame; and train the function based on the obtained dataset, the training including, for each sequence of the dataset and each given frame of the sequence, training the function to output localized representations of objects in the given frame based on: the given frame; at least the frame with the previous time in the sequence; and when available, an image representing at least one of a part of the scene represented by the given frame and a part of the scene represented by said at least the frame with the previous time in the sequence,
- second instructions for performing an applying of the function that when executed by the processor causes the processor to be configured to: obtain a sequence of 3D point cloud frames of a real scene, one or more frames being each associated to a respective image representing at least a part of the scene represented by the frame; and for each frame of the sequence, determine localized representations each of a respective object of the real scene in the frame by applying the function to the frame, and when available, to the image representing at least a part of the scene represented by the frame, application of the function being based on at least a feature vector corresponding to localized representations each of a respective object in the previous frame, and when available, on the image representing at least a part of the scene represented by previous frame.
13. The device of claim 12, wherein the function includes:
- a first local neural network configured to take as input a frame and to output at least a feature vector corresponding to localized representations each of a respective object in the frame;
- a second local neural network configured to take as input a frame and an image representing at least a part of the scene represented by the frame, and to output at least a feature vector corresponding to localized representations each of a respective object in the frame; and
- an aggregation neural network configured to aggregate the feature vectors outputted by at least one of the first local neural network and the second local neural network for said given frame and for at least the frame with previous time in the sequence.
14. The device of claim 13, wherein the second local neural network includes:
- an image neural network configured to take as input the image representing at least a part of the scene represented by the frame, and to output at least a feature vector of the image;
- a frame neural network configured to take as input the frame, and to output at least a feature vector corresponding to localized representations each of a respective object in the frame; and
- a feature fusion module configured to perform fusion of the feature vector outputted by the image neural network with an intermediate feature vector determined by the frame neural network,
- the frame neural network being configured to output the at least a feature vector corresponding to localized representations each of a respective object in the frame based on a result of the feature fusion module, the output of the second local neural network being the output of the frame neural network.
15. The device of claim 14, wherein the fusion preserves feature dimension.
16. The device of claim 14, wherein the function includes at least one of following features:
- the first local neural network is a convolutional neural network (CNN) associated with a Feature Pyramidal Network (FPN);
- the image neural network is a CNN associated with a FPN and the frame neural network is a CNN associated with an FPN; and
- the aggregation neural network is a combination of transformer neural networks and convolutions.
17. The device of claim 12, further comprising the processor coupled to the non-transitory computer-readable data storage medium.
18. The device of claim 13, further comprising the processor coupled to the non-transitory computer-readable data storage medium.
19. The device of claim 14, further comprising the processor coupled to the non-transitory computer-readable data storage medium.
20. The device of claim 15, further comprising the processor coupled to the non-transitory computer-readable data storage medium.
Type: Application
Filed: May 15, 2026
Publication Date: Nov 26, 2026
Applicant: DASSAULT SYSTEMES (VELIZY VILLACOUBLAY)
Inventors: Arthur CAHU (Vélizy-Villacoublay), Ana MARCUSANU (Vélizy-Villacoublay)
Application Number: 19/679,171