X-3DComposer
3D scene composition from arbitrary images and assets
2 min readupdated
X-3DComposer is a model for creating 3D scenes that automatically arranges 3D object models in space using one or more images. It takes a scene image, object masks, and ready-made 3D assets as inputs, and calculates the precise position, rotation, and scale for each element (9-DoF layout) at the output. The solution runs on a frozen large VGGT-Omega model (multi-view geometry architecture) and is trained on a massive array of synthetic and real datasets. The tool will be useful for computer vision researchers and developers working with 3D reconstruction and scene generation.
Key features
- 9-DoF layout prediction (rotation, translation, and scaling) in a single model pass.
- Use of lightweight weights (about 17.8 million parameters) combined with the base VGGT-Omega 1B model.
- Support for optional input data: camera parameters (K), camera poses (P), and depth (D).
- Training on diverse synthetic and real datasets (3D-FRONT, ScanNet++, Google Scanned Objects, etc.).
What you can do
- Compose a complex 3D scene from individual 3D assets (such as sofas and tables) using a photograph of a real room.
- Automatically determine the relative placement of objects in space from multiple camera angles.
- Test various conditioning modes (K, P, D) to evaluate positioning accuracy in normalized units.
Example
Example code to run scene composition using the x3dcomposer library:
import numpy as np
from PIL import Image
from x3dcomposer import Asset, SceneObservation, X3DComposer, compose
model = X3DComposer.from_pretrained("AutumnSonsweet/X-3DComposer",
backbone_weights="vggt_omega_1b_416_reproduce.pt").cuda()
scene = SceneObservation(images=[np.asarray(Image.open("view0.jpg").convert("RGB"))],
masks=[np.asarray(Image.open("view0_ids.png"))])
layout = compose(model, scene, [Asset("assets/sofa"), Asset("assets/table")])
for item in layout.objects:
print(item["asset_id"], item["R"], item["t"], item["scale"])
Read more
DetailsModel weights: 17.8 million parameters, float32, file size about 71 MB.
Requirements: you need to separately download the base VGGT-Omega 1B model (facebook/VGGT-Omega) upon request.
Limitations: maximum of 64 objects per pass; each object requires a mask and an asset of suitable shape; FAIR Noncommercial Research License for non-commercial research.










Comments