ParS3R: Part-Aware Hierarchical Semantic 3D Scene Reconstruction

Code and documentation · Model files

ParS3R reconstructs scene geometry and nested object-to-part regions from unposed multi-view RGB images. It predicts depth, camera intrinsics and extrinsics, and dense 16-dimensional part features without per-scene optimization. A subsequent clustering stage converts the features into hierarchical regions with labels shared across views. These labels identify regions; they are not semantic class names or text descriptions.

Model details

Property Value
Variant ParS3R Giant, 16-dimensional part features
Geometry backbone Depth Anything 3 Giant
Semantic representation Geometry–appearance fusion with a DPT-style part decoder
Input Overlapping RGB views of the same scene; no input camera poses required
Output Depth, depth confidence, cameras, colored 3D points, part features and hierarchical masks
Weight file pars3r-giant-16d.safetensors (approximately 5.49 GB)
Framework PyTorch; custom pars3r inference package
Weight license CC BY-NC 4.0

The checkpoint contains the complete 16-D DA3Part Giant model. Use the ParS3R loader below: a standard DA3 checkpoint without the part head, or a 32-D part checkpoint, is incompatible with this release.

Quick start

Use Python 3.10 or newer and PyTorch 2.1 or newer. Install PyTorch for your device, then install the inference package and Hugging Face download client:

git clone https://github.com/uan021112/ParS3R.git
cd ParS3R
python -m pip install . huggingface_hub

Download the checkpoint and reconstruct a scene. Replace scene/images with a directory of your own overlapping RGB images:

import torch
from huggingface_hub import hf_hub_download
from pars3r import load_model, predict_scene

checkpoint = hf_hub_download(
    repo_id="Luan1112/ParS3R",
    filename="pars3r-giant-16d.safetensors",
    local_dir="checkpoints",
)

device = "cuda" if torch.cuda.is_available() else "cpu"
model = load_model(checkpoint, device=device)
scene = predict_scene(model, "scene/images")

points = scene.world_points               # [V, H, W, 3]
features = scene.part_features            # [V, H, W, 16]
finest = next(iter(scene.masks.values()))  # [V, H, W]

Load the model once and reuse it across scenes. The ParS3R loader accepts a local checkpoint path; hf_hub_download performs the download explicitly. CUDA is recommended for practical multi-view inference. Memory requirements depend on image resolution and the number of views.

Inputs and outputs

A directory is read in filename order; pass an explicit list of image paths to control view order. By default, images are resized to a long edge of 504 pixels, rounded to multiples of 14 and padded to a common grid.

ScenePrediction field Shape Description
depth, depth_conf [V, H, W] Predicted depth and confidence
extrinsics [V, 3, 4] World-to-camera transforms, OpenCV convention
intrinsics [V, 3, 3] Camera intrinsics on the inference grid
world_points, rgb [V, H, W, 3] 3D points and corresponding colors
part_features [V, H, W, 16] Raw part features
masks[ratio] [V, H, W] Integer region labels at one hierarchy cut

V is the number of input views. All dense outputs refer to the preprocessed image grid. Use scene.views to recover each view's original and resized dimensions. Crop padding before resizing masks back to the original images, using nearest-neighbor interpolation.

Hierarchical decoding

The network predicts geometry and features in a forward pass. Hierarchical masks additionally require feature normalization, voxel smoothing, HDBSCAN clustering and connectivity-constrained agglomerative merging. The complete pipeline therefore includes clustering after neural inference.

scene = predict_scene(
    model,
    "scene/images",
    target_size=504,
    cluster_ratios=(1.0, 0.5, 0.1),
)

The ratios specify retained fractions of the initial cluster count, ordered fine to coarse; they are not confidence thresholds or fixed semantic categories. Cuts that produce the same cluster count are returned once.

Interactive viewer and export

From the code checkout, after downloading the checkpoint above:

python -m pip install '.[demo]'
pars3r-demo --checkpoint checkpoints/pars3r-giant-16d.safetensors --images scene/images

Open the local address printed by the viewer (default http://127.0.0.1:8080). It supports RGB/part coloring, view selection and confidence filtering.

To export the point cloud, hierarchical masks and dense predictions, use a new or empty output directory:

python -m pars3r --checkpoint checkpoints/pars3r-giant-16d.safetensors --images scene/images --output runs/room --cluster-ratios 1 .5 .1 --save-predictions

See the code repository for export formats, viewer replay and the full API.

Training and evaluation

The trainable appearance encoder and semantic head are trained on ScanNet and DL3DV, while the pretrained DA3-GIANT geometry encoder and head remain frozen. Training uses 8–12 views per scene at 504 × 504 resolution, AdamW with a peak learning rate of 2e-4, and 10,000 steps. Multi-view hierarchical supervision is consolidated in a shared 3D space and used to learn hierarchy-aware part features.

ParS3R is evaluated on PartScene, comprising 50 indoor and outdoor scenes from ScanNet++ (26), Replica (17), and Tanks and Temples (7). Evaluation measures 3D region recovery across coarse, medium and fine granularities. These region scores do not by themselves measure exact recovery of every node or edge in a reference hierarchy. PartScene annotations are not used to train the semantic modules. Replica is included in DA3 pretraining, so it is treated as an in-domain diagnostic for the frozen geometry prior.

Intended use and limitations

ParS3R is intended for non-commercial research on scene reconstruction, hierarchical part segmentation and 3D scene understanding.

  • Use overlapping views of a static or approximately static scene. Motion, blur, poor lighting and insufficient overlap can reduce reconstruction and segmentation quality.
  • Semantic boundaries depend on both the predicted geometry and the learned part features. Clustering settings affect the number and granularity of output regions.
  • Region IDs do not provide category names, language grounding or cross-scene object identity.
  • Reconstructed coordinates are not guaranteed to have calibrated metric scale.

Files and integrity

The repository includes the SafeTensors checkpoint and a companion SHA-256 file. The published checksum for pars3r-giant-16d.safetensors is:

bc29f639946e85518e64c900f19d36a97d3a0bf4c2a004f7ecb50f9059f9a4f4

License and acknowledgements

The model weights are released under CC BY-NC 4.0 for non-commercial use, consistent with the DA3-GIANT weight license. ParS3R extends the pretrained geometry model with an appearance stream and a learned part decoder.

Code licensing is documented separately in the ParS3R repository. DA3- and DINOv2-derived code retains its upstream notices; see LICENSE-DA3. The model builds on Depth Anything 3 and DINOv2; the interactive viewer uses Viser.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Luan1112/ParS3R

Finetuned
(2)
this model