Manuscript Offprint
arXiv:2610.12786Domain Adaptation of SAM 2.1 for Building-Component Segmentation in Image-Based 3D Reconstruction
Abstract
3D reconstruction of building components using image-based scanning requires appropriate segmentation of the objects in the 2D building images. In order to benefit from consistent grouping of the 2D masks in 3D environments, vision foundation models such as the Segment Anything Model have been utilized by Group Anything with Radiance Fields (GARField) to perform 3D segmentation. This study fine-tuned SAM 2.1 on the HBD dataset, consisting of 2,679 annotated images from 42 buildings, to enhance multi-class segmentation of 2D building images, covering 11 classes (Wall, Window, Ceiling, Door, Column, Beam, Floor, Opening, Curtain Wall, Roof, and Lift). The model was evaluated using per-class IoU, Dice, and mIoU metrics, and the results show an improvement in mIoU from 49.9% to 69.6%, indicating a meaningful improvement in class segmentation and providing a more accurate model for distilling the masks in 3D. SegFormer was then used as a baseline, generating per-class masks for comparison with SAM 2.1, which indicates improvement in some object classes with larger surface area. The masks in the building images were grouped in the neural radiance field, and the pretrained SAM 2.1 was compared with the fine-tuned SAM 2.1 in the newly rendered images. This comparison shows that fine-tuning improves the grouping of building components at a user-selected grouping scale. This advances the application of Group Anything with Radiance Fields (GARField) in 3D, enabling better segmentation of building structures for 3D auto-reconstruction.
1. Introduction
3D scene reconstruction using 2D images is one of the areas that has several downstream applications, such as capturing the reality and creating a digital twin of the real world. In this regard, semantic segmentation of objects in 3D by 2D images has always been a matter of concern in computer vision, and several studies, such as SA3d [2] and

Figure 1. Patrick F. Taylor Hall reconstructed in 3D from drone images. Top: rendered photo view. Bottom: the same view segmented into building components with our fine-tuned SAM 2.1 and grouped hierarchically in 3D by Group Anything with Radiance Fields (GARField) [7], with each 3D group shown in a distinct color.
OpenNeRF[4], tried to address this issue by either using deep learning models or distilling the 2D masks in 3D. Although methods such as photogrammetry and NeRF can reconstruct geometry, they do not provide reliable semantic labels for building components [12]. One of the recent studies for 3D segmentation of the objects in 3D, benefits from Neural Radiance Field (NeRF), which makes the possibility to create a scale-conditioned 3D affinity field using 3D feature vectors for grouping the mask by different scales in the 3D environment [7].
This study aims to improve object-oriented 3D reconstruction of buildings from 2D images by adapting a promptable vision foundation model to the building domain so that building components are segmented and grouped consistently in 3D. The focus is on identifying the main building components in 2D images, such as walls, windows, doors, and roofs, which are essential for converting image-based 3D models into structured representations. Existing segmentation models are not adapted to the building domain, and they are designed to produce masks for a predefined set of object classes. Models such as YOLOv8 [6], SAM 3 [1] (given an open-vocabulary text prompt), and SegFormer [22] segment a scene into masks for specific object categories. However, to maintain 3D consistency during reconstruction, masks must be generated automatically for the entire scene rather than only for a fixed set of classes. Among current models, the vision foundation model SAM 2.1 [13] can automatically generate masks for every part of a scene, which makes it a suitable source of masks for 3D grouping with Group Anything with Radiance Fields (GARField) [7].
A key property we exploit is the scale of the masks, which GARField uses in a hierarchical manner during training and consolidates inconsistent 2D masks. The building masks exist at different scales: a mask may cover a complete window, while other masks cover parts of windows or doors. Training with this hierarchy of mask scales leads to more consistent building segmentation when the masks are grouped together.
The Segment Anything Model (SAM) is a vision foundation model developed by Meta AI for promptable image segmentation [8]. Subsequently, SAM 2.1 was introduced as a unified model for image and video segmentation that uses point, box, and mask prompts on individual frames to define the spatial extent of an object and segment it spatio-temporally [13]. Its architecture consists of an image encoder (a vision transformer), a prompt encoder, and a mask decoder. SAM 2.1 was trained on the SA-V dataset, which comprises 50.9K videos with 642.6K masklets [13]. Although several methods exist for adapting the model, such as adapter-based fine-tuning [3] that modifies the weights of the upper layers, the fine-tuning approach used in this paper is the one provided by Meta AI to fine-tune SAM 2.1 on a custom dataset [3].
First, we used a custom dataset created by Wong et al. [19], consisting of interior and exterior images of buildings, for building-component segmentation. Although many datasets exist for building image segmentation, this dataset was chosen because it was created specifically for 3D reconstruction of building components. Its annotations cover most of the facade and interior, and it is already split into training, validation, and test sets.
Second, both SAM 2.1 and the baseline, SegFormer, were fine-tuned on this dataset, and their performance was evaluated using segmentation metrics. The results indicate that SAM 2.1 improves segmentation for some discrete object types. However, for large-surface objects such as walls, SegFormer outperforms SAM 2.1 in those classes.
Third, the comparison was carried out by rendering existing and novel views of the building. The experimental results show that the fine-tuned model performs better in the hierarchical grouping of the building facade when different grouping scales are applied. The groups are visible across different views, and the windows, doors, and walls of the building are grouped together as part of the facade when the scale is large enough to merge closely related affinity vectors.
In recent years, 3D modeling with semantic segmentation of building components has received considerable attention. For instance, Salehitangrizi et al. [14] used mobile scanning images to capture multiple views of a building and applied an R-CNN to detect doors and windows on the facades. Other studies segment directly in 3D; for example, Wysocki et al. [20] used a ray-casting and Bayesian-network method rather than transferring the segmentation from 2D to 3D. In addition, several studies apply deep learning to point clouds for semantic segmentation of facades and building components; Wysocki et al. [21] is one recent example that learns per-class semantics for point clouds. Although these studies provide suitable models for segmentation in 2D images or in 3D point clouds, the reconstruction of building components from 2D segmentation remains understudied. The main challenge lies in distilling the 2D segments into the 3D environment. To address this, this paper combines an existing grouping method with the domain adaptation of a vision foundation model.
3. Methodology
Our method consists of evaluation of the fine-tuned model to assess the accuracy of the segmentation along with the per-class baseline comparison with the fine-tuned SegFormer to evaluate the performance of the fine-tuned

Figure 2. The SAM 2 architecture (figure adopted from Ravi et al. [13]).
SAM 2.1, visualized in Figure 2.
3.1. Training Function
Fine-tuning SAM 2 begins from pretrained weights and optimizes them on the target building facade dataset. At each training step, a user prompt p is simulated by sampling a random point or bounding box from the ground truth mask . The model predicts a segmentation mask through a forward pass:
where denotes the image encoder, the prompt encoder, and D the mask decoder. The prediction is evaluated using a composite loss:
which combines per-pixel binary cross-entropy, region overlap, confidence calibration, and object detection terms. Backpropagation computes the gradients via the chain rule, and the AdamW optimizer updates the weights [10].
3.2. Evaluation
We evaluate this work by performing the quantitative semantic evaluation metrics, IoU per class, along with the mean and the dice score per class. We evaluate SAM 2.1 and pre- and after fine-tuning with some portions of HBD dataset and use 349 images to calculate IoU and Dice score for 5541 instances in these images for each specific class regarding the ground truth masks.
To measure segmentation quality under a controlled and reproducible prompt, we follow the interactive protocol of SAM 2 [13] and query the model with a single positive point per object. Since SAM 2 can only generate masks automatically with a box or click prompt and not by the class text prompt, the mask is generated by giving the center of the ground truth masks as a first click prompt. Then the generated mask is evaluated with the corresponding ground truth to evaluate improvement in segmentation after fine-tuning. For each ground-truth component mask M, we select the prompt point as the interior pixel that is farthest from the mask boundary,
where is the boundary of , is the Euclidean distance, and the image border is treated as part of the boundary. In practice, is obtained from the Euclidean distance transform of and corresponds to the center of the largest disk inscribed in the object. This “deepest” point is stable and unambiguous: unlike the centroid it is guaranteed to lie inside the mask even for concave or ring-shaped components (Fig. 3), and unlike a randomly sampled point, it is deterministic, yielding the same prompt on every run. The selected point is passed to SAM 2.1 as a single positive click, and the predicted mask is compared against . Because the prompt is derived from the ground truth, the identical rule is applied to every model (pre-trained SAM 2.1, fine-tuned SAM 2.1, and all ablations); the metric therefore isolates per-class mask quality rather than the model’s ability to localize or classify objects. The class label used for per-class scoring is likewise taken from the ground-truth annotation.
3.3. Baseline Comparison
The fine-tuned SAM 2.1 is compared with two baselines on the same test split of the dataset: (i) the pre-trained SAM 2.1 (Hiera-L) checkpoint and (ii) SegFormer [22], a transformer-based semantic segmentation network, fine-tuned on the same training split under matched settings. The three models produce different outputs and are in different forms, which we reconcile as follows. SegFormer
Algorithm 1 Center-click prompt selection and evaluation
Require: image I; ground-truth pairs (mask, class); model f
Ensure: per-class IoU and Dice
1: f.SETIMAGE(I) encode the image once
2: for each object do
3: Euclidean distance to
4: deepest interior pixel = center click
5: one positive click
6: ,
7: append , to class
8: end for
9: return per-class means, and macro-averages mIoU, mDice
(a) Ground-truth mask

(b) Distance to boundary
centroid (outside) ★ center click p*
Figure 3. Center-click prompt selection. For each ground-truth component mask we compute the Euclidean distance of every interior pixel to the mask boundary (b) and take the pixel of maximum distance, (red star) as a single positive click for SAM 2. This deepest point always lies inside the object, even for ring-shaped components where the centroid ( ) falls outside the mask (a).
is a Transformer-based model for semantic segmentation, which assigns a class to every pixel and hence assigns one mask per class directly [22]. SAM 2.1, in contrast, is a promptable, class-agnostic model that returns a single mask given a prompt but no class label and is not capable of producing per-class masks itself, unlike SAM 3 [1] whose text/concept prompts enable open-vocabulary per-class segmentation.
To train SegFormer, which requires a single class label per pixel, we convert the per-object instance masks into semantic label maps: for each image we render one single-channel map in which every pixel holds its component class (0 for background). Where annotations overlap (for example a window within a wall), specific fixtures take priority over the enclosing surface, so each pixel receives its most specific class. We fine-tune SegFormer with the backbone of MiT-B3 encoder pre-trained on ImageNet at resolution using the HuggingFace Trainer [5, 18], with AdamW [10] (learning rate ), a batch size of 4, and random horizontal flipping, for up to 80 epochs; we evaluate on the validation split after every epoch and keep the checkpoint with the lowest validation loss.
For evaluation, SegFormer is run fully automatically—it predicts both the mask and the class with no prompt—and is scored per pixel. SAM 2.1 (pre-trained and fine-tuned) is prompted with a single center click derived from the ground-truth mask and takes its class from the ground-truth annotation, and is scored per object (Sec. 4.3). These two protocols are not directly comparable, and we make the difference explicit: they differ in (i) prompting—SAM receives ground-truth-derived guidance whereas SegFormer does not—and (ii) aggregation—per object for SAM versus per pixel for SegFormer. We therefore treat SegFormer as a reference for a fully-automatic semantic segmenter rather than a strict head-to-head competitor, and we draw quantitative conclusions only from the matched pre-trained-vs-fine-tuned SAM 2.1 comparison, which uses identical prompts and scoring. A further limitation is that flattening overlapping annotations into a single label per pixel discards the hierarchical, multi-scale structure of the dataset, which a semantic segmenter cannot represent; under this flattening a small fraction of images (25 of 3,378) lose one class to unavoidable overlaps.
3.4. GARField Integration and Evaluation
To evaluate the effect of our fine-tuning beyond 2D segmentation, we integrate the segmentation model into GARField [7] (Group Anything with Radiance Fields), which lifts 2D group masks into a 3D, scale-conditioned affinity field so that building components can be grouped consistently across views and at multiple scales. GARField supervises this field with 2D masks from an automatic mask generator; we use SAM 2.1 as this generator and compare two conditions: the pretrained SAM 2.1 and our fine-tuned SAM 2.1. In both conditions the masks are produced automatically (a grid of point prompts, no ground-truth guidance), unlike our prompted 2D evaluation, since no ground truth is available at this stage.
The comparison is designed to isolate the effect of the fine-tuning. We reconstruct the scene once and train GARField twice under identical settings—same images, camera poses, radiance field, grouping scales, and training schedule—so that the only difference between the two runs is the SAM 2.1 checkpoint used to generate the masks. We then query the trained grouping field at a fixed scale and render the grouping from the captured viewpoints, comparing the pretrained and fine-tuned results. We note that the hierarchical grouping mechanism itself is GARField's contribution, which we adopt and cite; our claim is only that fine-tuning the mask generator on building components improves the quality of that grouping in this domain.
We assess the grouping qualitatively and render the grouping field as a per-point feature map reduced to RGB by PCA and place it beside the rendered image, so that a cleaner, more complete grouping of components (for example, each window as a single region) is directly visible.
4. Results and Discussion
The results evaluate the effect of fine-tuning in terms of training loss, per-class segmentation accuracy, comparison with SegFormer, and qualitative 3D grouping at different GARField grouping scales.
4.1. Quantitative Evaluation
4.1.1. Loss
To fine-tune SAM 2.1, we used the HBD dataset [19], which contains 2,679 annotated images of 42 buildings. The dataset includes interior and exterior images with annotations provided in JSON format. We converted these annotations into PNG masks, generating a separate mask for each object instance. We fine-tuned the SAM 2.1 Hiera-Large checkpoint (sam 2.1-hiera-large.pt) using the multimask training configuration. Because fine-tuning is computationally intensive, training was performed on LSU's SuperMike3 HPC cluster using one compute node with four NVIDIA A100 GPUs. Training ran for 40 epochs (1,340 steps per epoch; 53,600 total steps) and required 18 hours and 5 minutes. The total loss decreased by 55.9%, from 1.864 to a minimum of 0.823 at epoch 31.
4.1.2. Metrics
Table 1 reports per-class IoU and Dice on the HBD test set (349 images, 5,541 annotated instances). Fine-tuning SAM 2.1 on the building-component dataset raises mean IoU from 49.9% to 69.6% (+19.8 points) and mean Dice from 59.3% to 77.3%. The improvement is consistent: IoU increases for ten of the eleven classes, with the largest gains on components that differ most from SAM 2's general-domain pre-training, namely Curtain Wall (+35.5), Door (+34.7), Ceiling (+20.6), and Roof (+20.2). Frequent structural classes also improve substantially (Wall +17.7, Window +17.0). The only class that does not benefit is Opening (-5.7 IoU), which we attribute to its ambiguous spatial extent—openings such as doorways and passages lack a physical surface, and the fine-tuned model tends to merge them with the surrounding wall. Wall remains the most difficult class even after fine-tuning (53.0% IoU), consistent with the challenge of segmenting large, texture-poor surfaces from a single prompt. Roof and Lift are represented by few instances (38 and 21) and their scores are therefore comparatively noisy. All numbers use a single center-click prompt per instance following the interactive protocol of
SAM 2 Fine-tuning Training Loss Convergence

Figure 4. Training loss convergence during SAM 2 Hiera-Large fine-tuning on the HBD building facade dataset over 40 epochs. The total loss decreased by 55.9% from 1.864 to a minimum of 0.823 at epoch 31, demonstrating successful adaptation to the architectural domain. The model was trained on 2,679 images using NVIDIA A100 GPUs for 18 hours.
SAM 2 [13]; the class label is taken from the ground truth, so the metric measures mask quality per class rather than class prediction.
4.2. Baseline Comparison with SegFormer
Figure 6 shows the SegFormer validation loss during fine-tuning. The training loss decreases steadily to approximately 0.03, but the validation loss reaches its minimum at epoch 6 (0.43) and rises thereafter, indicating overfitting—expected given the capacity of the MiT-B3 encoder relative to the size of the dataset. We therefore retain the best checkpoint (epoch 6) selected by validation loss. On the test split this model attains 64.8% mIoU and 77.0% mDice (Table 1). SegFormer is strongest on large, contiguous surfaces (Wall 83.2%, Floor 87.0%, Ceiling 79.9% IoU) and weaker on small or infrequent components (Opening 38.3%, Roof 39.4%, Beam 44.5%, Column 49.1%). Under the protocol caveats above, its mean IoU (64.8%) exceeds the pretrained SAM 2.1 baseline (49.9%) but remains below our fine-tuned SAM 2.1 (69.6%).
Table 1 reports per-class IoU and Dice on the HBD test set. Under an identical prompting protocol, fine-tuning im-

(a) Fine-tuned SAM 2.1 on HBD dataset
(b) Pre-trained SAM 2.1 (Hiera-Large)
Figure 5. Comparison of automatic mask generation on Patrick F. Taylor Hall. The fine-tuned model (a) produces more semantically meaningful segmentation of architectural elements, with clearer separation of the building facade, windows, and ground plane compared to the pre-trained model (b).

Figure 6. SegFormer validation loss per epoch during fine-tuning. The minimum is at epoch 6 (marked); validation loss rises afterwards, so the epoch-6 checkpoint is retained. The training loss (not shown) continues to fall to , indicating overfitting.
proves SAM 2.1 substantially over the pre-trained model: mean IoU rises from to (+19.8 points) and mean Dice from to , with gains on ten of the eleven classes (all except Opening). This is our controlled comparison, as both SAM variants receive the same center-click prompts and the same ground-truth class assignment.
As a reference point, a fully-automatic SegFormer trained on the same data reaches 64.8% mIoU and 77.0% mDice. This is not a strict head-to-head: SegFormer pre- Table 1. Per-class segmentation accuracy on the HBD test set (349 images, 5,541 annotated instances). Pre-trained SAM 2.1 (Pre.) and our fine-tuned SAM 2.1 (FT) are both prompted by a single center click derived from the ground-truth mask and scored per object. SegFormer (Seg.) is a fully-automatic semantic segmenter scored per pixel, reported for reference. Bold marks the better of the two matched SAM variants; SegFormer uses a different protocol and is not a strict head-to-head. Scores are macro-averaged over classes.
| Class | #Obj | IoU (%) | Dice (%) | ||||
|---|---|---|---|---|---|---|---|
| Pre. | FT | Seg.† | Pre. | FT | Seg.† | ||
| Wall | 1679 | 35.3 | 53.0 | 83.2 | 44.6 | 62.4 | 90.8 |
| Window | 1331 | 54.3 | 71.3 | 70.6 | 63.0 | 78.8 | 82.8 |
| Ceiling | 673 | 44.6 | 65.2 | 79.9 | 54.5 | 74.0 | 88.8 |
| Door | 474 | 51.8 | 86.5 | 83.1 | 61.3 | 91.4 | 90.7 |
| Column | 383 | 62.6 | 71.7 | 49.1 | 71.0 | 80.6 | 65.9 |
| Beam | 324 | 41.8 | 54.7 | 44.5 | 50.6 | 64.5 | 61.6 |
| Floor | 309 | 70.1 | 86.4 | 87.0 | 77.1 | 90.8 | 93.1 |
| Opening | 219 | 64.4 | 58.7 | 38.3 | 74.6 | 66.6 | 55.4 |
| Curtain Wall | 90 | 32.8 | 68.3 | 53.2 | 41.7 | 76.0 | 69.5 |
| Roof | 38 | 42.8 | 63.0 | 39.4 | 51.7 | 73.0 | 56.6 |
| Lift | 21 | 47.9 | 86.9 | 84.6 | 61.6 | 92.2 | 91.7 |
| Mean | 5541 | 49.9 | 69.6 | 64.8 | 59.3 | 77.3 | 77.0 |
SegFormer is fully automatic (predicts its own class, no prompt) and scored per pixel; shown for reference, not a strict head-to-head.
dicts both the mask and the class with no prompt and is scored per pixel, whereas SAM 2.1 is prompted from the ground truth and scored per object. The two are therefore evaluated under different protocols and should be read as complementary references rather than directly comparable numbers.
The per-class breakdown shows complementary strengths. SegFormer is stronger on large, contiguous surfaces (Wall 83.2 vs 53.0 IoU; Ceiling 79.9 vs 65.2), which a per-pixel semantic segmenter covers naturally, while prompted SAM 2.1 is stronger on discrete or less frequent components (Column 71.7 vs 49.1; Curtain Wall 68.3 vs 53.2; Roof 63.0 vs 39.4; Opening 58.7 vs 38.3), where a single click isolates the object cleanly. Window, Floor, and Lift are comparable. Roof and Lift have few instances (38 and 21), so their scores are noisier.
4.3. 3D Grouping Evaluation
Scene and data. We evaluate on drone imagery of Patrick F. Taylor Hall at Louisiana State University (the “PFT-drone” scene), consisting of 1250 images at resolution captured by a drone. Camera poses and a sparse point cloud were recovered with COLMAP structure-from-motion [16].
Photo (cam 15, scale 0.15)
Rendered RGB (cam 15, scale 0.15)
Grouping (PCA) (cam 15, scale 0.15)

(a) Pre-trained SAM 2.1 masks — grouping scale 0.15
Photo (cam 15, scale 0.15)
Rendered RGB (cam 15, scale 0.15)
Grouping (PCA) (cam 15, scale 0.15)

(b) Fine-tuned SAM 2.1 masks — grouping scale 0.15
Photo (cam 15, scale 0.05)
Rendered RGB (cam 15, scale 0.05)
Grouping (PCA) (cam 15, scale 0.05)

(c) Pre-trained SAM 2.1 masks — grouping scale 0.05
Photo (cam 15, scale 0.05)
Rendered RGB (cam 15, scale 0.05)
Grouping (PCA) (cam 15, scale 0.05)

(d) Fine-tuned SAM 2.1 masks — grouping scale 0.05
Figure 7. Qualitative 3D grouping on the Patrick F. Taylor Hall drone scene, from a fixed viewpoint (camera 15), at two grouping scales. Each row shows, left to right, the input photograph, the reconstructed RGB, and the GARField grouping field visualized by projecting its per-point features to RGB with PCA. Rows (a,b) use grouping scale 0.15 and rows (c,d) use scale 0.05; (a,c) use pretrained SAM 2.1 masks and (b,d) use our fine-tuned SAM 2.1 masks. Both models are trained with an identical configuration and differ only in the SAM 2.1 checkpoint. Because the PCA projection is computed independently per image, absolute colors are not comparable across rows; we compare the spatial coherence of the groups.
Checkpoints. The mask generator is SAM 2.1 (Hiera-L). For the baseline condition we use the public pretrained checkpoint (sam2.1_hiera_large.pt); for the fine-tuned condition we use our building-component fine-tuned checkpoint.
GARField training. We build the radiance and grouping fields with nerfstudio [17] using GARField ([7]), trained for 30,000 steps on a single NVIDIA GeForce RTX 4070 Ti (12 GB) GPU, with an Intel Core i9-13900K CPU and 128 GB of RAM. The PFTdrone scene contains 1,250 drone images (1,093 for training, 157 for evaluation), processed at a downscale factor of 4 (effective resolution , from an original ). Camera poses were recovered with COLMAP [16] using spatial matching with the images' EXIF information. The pretrained and fine-tuned conditions used an identical configuration and differed only in the SAM 2.1 checkpoint used to generate the grouping masks; the cached masks were regenerated between runs.
Figure 7 compares the 3D grouping produced by GARField when it is supervised with masks from the pretrained versus the fine-tuned SAM 2.1, on our Patrick F. Taylor Hall drone scene. For a fixed drone viewpoint, we show the input photograph, the reconstructed RGB, and the grouping field visualized by projecting its per-point features to RGB with PCA at a fixed grouping scale. Because the PCA projection is computed independently for each image, the absolute colors are not comparable between the two models; we therefore compare the spatial coherence of the groups rather than their colors. In the example shown, the fine-tuned model produces more meaningful grouping of architectural components, particularly around the roof and facade regions, whereas the pretrained model merges portions of these components with neighboring surfaces. The differences are more apparent at the coarser grouping scale, while they become less pronounced at finer scales. Because this experiment is qualitative, we treat these results as illustrative. These results suggest that domain adaptation not only produces more meaningful groupings in 3D but also corrects previously merged regions.
5. Conclusion
Semantic segmentation of building components in 2D images is a vital part of image-based 3D reconstruction of building models. In this regard, domain adaptation of a vision foundation model is required to enable 3D hierarchical grouping segmentation of buildings from images of specific building components, such as facades or windows. This study showed that fine-tuning SAM 2.1 as an automatic mask generator can enhance the segmentation of building components when they are grouped by Group Anything with Radiance Fields (GARField). Fine-tuning was performed on a large building dataset, achieving a significant 55.9% decrease in loss and better segmentation of some object classes compared with SegFormer as a baseline. As future work, further quantitative evaluation, alongside our qualitative evaluation, can be conducted to demonstrate grouping performance when segmentation models are used for 3D reconstruction in the building domain.
Large Language Models
A large language model (Claude, Anthropic) was used in preparing this work. It assisted with editing and language polishing of the manuscript text (including the abstract), and with drafting and debugging evaluation code: the SAM 2.1 per-class IoU/Dice evaluation (including the deterministic center-point prompting rule), the SegFormer training and evaluation scripts, and the rendered-2D IoU evaluation used to compare GARField's 3D grouping under pretrained versus fine-tuned SAM 2.1 masks. All experimental design, parameter choices, and analysis of the results are the authors' own; the model was not used to generate or select any reported numerical result, and all text was reviewed and edited by the authors for correctness.
References
[1] Nicolas Carion, Laura Gustafson, Yuan-Ting Hu, Shoubhik Debnath, Ronghang Hu, Didac Suris, Chaitanya Ryali, Kalyan Vasudev Alwala, Haitham Khedr, Andrew Huang, Jie Lei, Tengyu Ma, Baishan Guo, Arpit Kalla, Markus Marks, Joseph Greer, Meng Wang, Peize Sun, Roman Rädle, Triantafyllos Afouras, Effrosyni Mavroudi, Katherine Xu, Tsung-Han Wu, Yu Zhou, Liliane Momeni, Rishi Hazra, Shuangrui Ding, Sagar Vaze, Francois Porcher, Feng Li, Siyuan Li, Aishwarya Kamath, Ho Kei Cheng, Piotr Dollár, Nikhila Ravi, Kate Saenko, Pengchuan Zhang, and Christoph Feichtenhofer. Sam 3: Segment anything with concepts, 2025. 2, 4
[2] Jiazhong Cen, Jiemin Fang, Zanwei Zhou, Chen Yang, Lingxi Xie, Xiaopeng Zhang, Wei Shen, and Qi Tian. Segment anything in 3d with radiance fields. IJCV, 2025. 1
[3] Tianrun Chen, Ankang Lu, Lanyun Zhu, Chaotao Ding, Chunan Yu, Deyi Ji, Zejian Li, Lingyun Sun, Papa Mao, and Ying Zang. Sam2-adapter: Evaluating & adapting segment anything 2 in downstream tasks: Camouflage, shadow, medical image segmentation, and more, 2024. 2
[4] Francis Engelmann, Fabian Manhardt, Michael Niemeyer, Keisuke Tateno, Marc Pollefeys, and Federico Tombari. Opennerf: Open set 3d neural scene segmentation with pixel-wise features and rendered novel views, 2024. 1
[5] Hugging Face. Trainer — transformers documentation. https://huggingface.co/docs/transformers/main_classes/trainer, 2024. Accessed 2026-08-24. 4
[6] Glenn Jocher, Ayush Chaurasia, and Jing Qiu. Ultralytics yolov8, 2023. 2
[7] Chung Min* Kim, Mingxuan* Wu, Justin* Kerr, Matthew Tancik, Ken Goldberg, and Angjoo Kanazawa. Garfield: Group anything with radiance fields. In arXiv, 2024. 1, 2, 4, 8
[8] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C. Berg, Wan-Yen Lo, Piotr Dollár, and Ross Girshick. Segment anything. arXiv:2304.02643, 2023. 2
[9] Hantang Liu, Jialiang Zhang, Jianke Zhu, and Steven C. H. Hoi. Deepfacade: A deep learning approach to facade parsing. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, IJCAI-17, pages 2301–2307, 2017. 2
[10] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization, 2019. 3, 4
[11] Yujie Lu, Wei Wei, Peixian Li, Tao Zhong, Yuanjun Nong, and Xing Shi. A deep learning method for building façade parsing utilizing improved solov2 instance segmentation. Energy and Buildings, 295:113275, 2023. 2
[12] Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. In ECCV, 2020. 1
[13] Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Rolland, Laura Gustafson, Eric Mintun, Junting Pan, Kalyan Vasudev Alwala, Nicolas Carion, Chao-Yuan Wu, Ross Girshick, Piotr Dollár, and Christoph Feichtenhofer. Sam 2: Segment anything in images and videos. arXiv preprint arXiv:2408.00714, 2024. 2, 3, 5
[14] Abbas Salehitangrizi, Shabnam Jabari, Michael Sheng, and Yun Zhang. 3d modeling of façade elements using multi-view images from mobile scanning systems. Canadian Journal of Remote Sensing, 50(1):2309895, 2024. 2
[15] M. Schmitz and H. Mayer. A convolutional network for semantic facade segmentation and interpretation. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, XLI-B3:709–715, 2016. 2
[16] Johannes Lutz Schönberger and Jan-Michael Frahm. Structure-from-motion revisited. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 6, 8
[17] Matthew Tancik, Ethan Weber, Evonne Ng, Ruilong Li, Brent Yi, Justin Kerr, Terrance Wang, Alexander Kristoffersen, Jake Austin, Kamyar Salahi, Abhik Ahuja, David McAllister, and Angjoo Kanazawa. Nerfstudio: A modular framework for neural radiance field development. In ACM SIGGRAPH 2023 Conference Proceedings, 2023. 8
[18] Thomas Wolf et al. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38–45, 2020. 4
[19] Mun On Wong, Huaquan Ying, Mengtian Yin, Xiaoyue Yi, Lizhao Xiao, Weilun Duan, Chenchen He, and Llewellyn Tang. Semantic 3d reconstruction-oriented image dataset for building component segmentation. Automation in Construction, 165:105558, 2024. 2, 5
[20] Olaf Wysocki, Yan Xia, Magdalena Wysocki, Eleonora Grilli, Ludwig Hoegner, Daniel Cremers, and Uwe Stilla. Scan2lod3: Reconstructing semantic 3d building models at lod3 using ray casting and bayesian networks. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 6548–6558, 2023. 2
[21] Olaf Wysocki, Yue Tan, Thomas Froech, Yan Xia, Magdalena Wysocki, Ludwig Hoegner, Daniel Cremers, and Christoph Holst. Zaha: Introducing the level of facade generalization and the large-scale point cloud facade semantic segmentation benchmark dataset. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 7648–7658, 2025. 2
[22] Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M Alvarez, and Ping Luo. Segformer: Simple and efficient design for semantic segmentation with transformers. In Neural Information Processing Systems (NeurIPS), 2021. 2, 3, 4
[23] Rongchun Zhang, Yiting He, Liang Cheng, Xuefeng Yi, Guanming Lu, and Lijun Yang. Building façade element extraction based on multidimensional virtual semantic feature map ensemble learning and hierarchical clustering. International Journal of Applied Earth Observation and Geoinformation, 114:103068, 2022. 2