TripoSR
TripoSR (Stability AI and Tripo AI, 2024): a coloured 3D mesh of one object from one photo in under a second (object centred on a plain background). MIT code and weights.
experimental Fork of VAST-AI-Research/TripoSR@107cefd · backends: portable, kernels
- Paper TripoSR: Fast 3D Object Reconstruction from a Single Image arXiv · first released 4 Mar 2024
Checkpoint triposr
Paper 2024 Added in 0.4.0
Use it
pip install fastforks Lean install with only what this model needs: pip install fastforks-core
from fastforks import multiview
model = multiview.load("triposr") # fastest backend that runs here
result = model(["view1.jpg", "view2.jpg", "view3.jpg"]) # several images of one scene
# result fields: mesh
mesh = result.mesh # a torch tensor
arrays = result.numpy() # the tensor fields as NumPy arrays: arrays["mesh"]
result.backend # what ran: mode, device, dtype
Other ways to run it
- Backend:
multiview.load("triposr", mode="kernels") # or "portable", "auto" (default) - Precision:
multiview.load("triposr", dtype="float32") # full precision: slower, portable only - Options:
multiview.load("triposr", options={"resolution": 256, "threshold": 25})
fastforks bench triposr Times the model on this machine. load(…, mode="portable") or mode="kernels" picks a backend; usage guide.
Speed and memory
Every backend on one GPU (RTX 5060 Ti 16 GB) and the same input, the authors’ code included. Kernels runs fp16. Portable runs fp16 on CUDA.
Input: Mixed scenes, 512x512
| Backend | dtype | Time per call (ms) | vs original | Peak memory allocated / reserved | Load (s) | First call (s) |
|---|---|---|---|---|---|---|
| Original fp32VAST-AI-Research/TripoSR at 107cefdc TSR (run.py default fp32, chunk 8192) + extract_mesh; marching cubes on the CPU (scikit-image in place of torchmcubes, 0.22 s at 256, 1.75 s at 512) | fp32 | 1628 | – | 2,557 MiB/3,230 MiB | 11.1 | 3.25 |
| Original fp16 | fp16 | not measured | – | – | – | – |
| Portable fp32 | fp32 | not measured | – | – | – | – |
| Portable | fp16 | 358 | 4.5× | 1,656 MiB/1,906 MiB | 2.8 | 1.05 |
| Kernels | fp16 | 112 | 15× | 1,025 MiB/1,046 MiB | 1.1 | 0.46 |
| Portable + torch.compile | 279 | 5.8× | 1,768 MiB/1,844 MiB | 47 (build) | – | |
| TensorRT fp16 | fp16 | 43.1 | 38× | 970 MiBenginenot comparable | 75 (build) | – |
Measured on RTX 5060 Ti 16 GB, torch 2.14.1+cu130, 2026-11-28 to 2026-12-02. First call, 3 warm-up, peak reset, median of 3 rounds x median of 5. Ratios divide two
times of this table (same GPU, same input). Original fp16 is the authors’ own precision option, else torch.autocast. torch.compile and TensorRT: build time instead of load time. TensorRT memory (engine, not comparable) is the GPU memory the engine took, read from the driver because TensorRT allocates outside PyTorch, so it can't be compared with the PyTorch peaks of the other rows.
Other devices
Not measured on other devices yet.
Licence and weights
Commercial use allowed
Our reading of the licences, not legal advice.
Weights
model.ckpt 1.7 GB· hosted on Hugging Facefastforks downloads and checks these files on first use (fastforks download triposr).
Accuracy
The test set through the authors’ code and through ours: same checkpoint, same protocol. The distance between the original’s fp32 and fp16 runs is what half precision alone costs; our runs should stay within it.
Accuracy not measured for triposr.
Closeness to the original
Beyond the test-set scores: the raw output of ours against the original’s fp32 output on the same input, pixel by pixel. CPU, float32: max |diff| <= 0.05 vs the original. GPU, float16 (the default), portable and kernels: mean |diff| <= 1 % and p99 <= 5 % of the reference's median |value| (absolute error of the output mesh).
| Check | Tolerance | Measured |
|---|---|---|
| CPU fp32, max |diff| | ≤ 0.05 (relative) | not recorded |
| cpu_rtol | ≤ 0.0001 (relative) | not recorded |
| GPU default dtypes, mean |diff| | ≤ 0.01 (relative) | 0.00177 (relative) |
| GPU default dtypes, p99 |diff| | ≤ 0.05 (relative) | 0.0112 (relative) |
Recorded for triposr on RTX 5060 Ti, torch 2.14.1+cu130, 2026-12-02, with these kernels: triposr_ops
Details
TripoSR (Tochilkin et al. 2024, Stability AI and Tripo AI): a feed-forward image-to-3D model that turns one object photo into a coloured triangle mesh in well under a second. A DINO ViT-B/16 image encoder conditions a 16-block transformer that predicts a triplane NeRF (3 x 40 x 64 x 64); the mesh is the marching-cubes surface of its density, coloured per vertex. Input: one view of a single object on a plain background, best prepared with `multiview.object_view` (object centred on grey from an RGBA image or a matting alpha).
- Input / output
- Input: several images of one scene (posed and calibrated for multi-view stereo, unposed otherwise). Output: depth maps and, where the model predicts them, cameras and 3-D points.
- Input size
- any H x W >= 1, resized or padded inside the model; tested up to 3000x4000 (1,792 MiB allocated)
- Options
resolution=25616 to 1024· changes the outputthreshold=25>= 0.0· changes the output
- Outputs
mesh,triplane(on request)- CUDA kernels
triposr_ops
- Apple (MPS)
- fp32, fp16
Limitations
- One object per call, one view: the input should show a single object centred on a plain background (`multiview.object_view`); clutter or a full scene gives poor shapes. No depth maps or cameras are returned.
- The mesh is in TripoSR's normalised object frame (inside a cube of half-side 0.87) at an unknown scale; it is not aligned to any camera.
- Background removal is not part of the model: pass an RGBA image or a matting alpha to `multiview.object_view` (upstream uses rembg).
- Portable: the time goes into the NeRF decoder MLP on the resolution^3 grid (memory-bound GEMMs), so `resolution=512` costs about 6x `256`; `kernels` (CUDA) fuses that MLP into one tensor-core kernel (RTX 5060 Ti: 372 -> 114 ms at 256). Apple MLX runs the marching cubes in PyTorch on the CPU.
Full reference, generated from the repository
TripoSR (Stability AI and Tripo AI, 2024): a coloured 3D mesh of one object from one photo in under a second (object centred on a plain background). MIT code and weights.
Commercial use: yes.
| variant | input | backend | time (ms) | peak memory (MiB, allocated / reserved) |
|---|---|---|---|---|
triposr | TripoSR example chair (512x512) | original portable kernels portable + torch.compile TensorRT fp16 | 1628 358 112 279 43.1 | 2557 / 3230 1656 / 1906 1025 / 1046 1768 / 1844 1810 / 1834 |
Details
- Original code: https://github.com/VAST-AI-Research/TripoSR at
107cefdc244c - Code licence: MIT (permissive); files:
LICENSE - Weights licence: MIT
- Licence evidence: https://github.com/VAST-AI-Research/TripoSR/blob/107cefdc244c39106fa830359024f6a2f1c78871/LICENSE and https://huggingface.co/stabilityai/TripoSR/blob/5b521936b01fbe1890f6f9baed0254ab6351c04a/README.md (license: mit)
- Training data: Objaverse (Deitke et al. 2023): ~800K 3D objects from Sketchfab, rendered views (Per the report (arXiv 2403.02151): a curated subset of Objaverse rendered with varied lighting; the encoder is initialised from DINO ViT-B/16.)
- Options:
resolution= 256 (16 to 1024),threshold= 25.0 (>= 0.0) - Kernel libraries:
triposr_ops - Variants:
triposr - Outputs: mesh, triplane (in
extras); kind:scale_invariant - Input size: any H x W >= 1, resized or padded inside the model
- Tested up to (portable, fp16, RTX 5060 Ti 16 GB):
triposr3000x4000 (1.8 GiB peak allocated, 2.0 reserved) triposr512x512, first call: portable + torch.compile 47 s (cold Inductor cache), TensorRT fp16 74 s (ONNX + engine).triposroriginal 512x512: VAST-AI-Research/TripoSR at 107cefdc TSR (run.py default fp32, chunk 8192) + extract_mesh; marching cubes on the CPU (scikit-image in place of torchmcubes, 0.22 s at 256, 1.75 s at 512)triposrload / first call: original 11.06 s / 3.25 s (512x512), portable 2.792 s / 1.053 s (512x512), kernels 1.09 s / 0.46 s (512x512)- Protocol, median of 5 after 1 warm-up, image to coloured mesh (triplane + density grid + marching cubes + vertex colours); load / first call: per process, first call at resolution 256; resolution 512 in the source note
Parity
CPU, float32: max |diff| <= 0.05 vs the original. GPU, float16 (the default), portable and kernels: mean |diff| <= 1 % and p99 <= 5 % of the reference's median |value| (absolute error of the output mesh).
| variant | kernels error vs original, mean / p99 | GPU, torch | kernels used |
|---|---|---|---|
triposr | 0.00177 / 0.0112 | RTX 5060 Ti, torch 2.14.1+cu130 | triposr_ops@2e820d86f19f:sm_120 |
Limitations
- One object per call, one view: the input should show a single object centred on a plain background (
multiview.object_view); clutter or a full scene gives poor shapes. No depth maps or cameras are returned. - The mesh is in TripoSR's normalised object frame (inside a cube of half-side 0.87) at an unknown scale; it is not aligned to any camera.
- Background removal is not part of the model: pass an RGBA image or a matting alpha to
multiview.object_view(upstream uses rembg). - Portable: the time goes into the NeRF decoder MLP on the resolution^3 grid (memory-bound GEMMs), so
resolution=512costs about 6x256;kernels(CUDA) fuses that MLP into one tensor-core kernel (RTX 5060 Ti: 372 -> 114 ms at 256). Apple MLX runs the marching cubes in PyTorch on the CPU.
Example output
No example rendered for this checkpoint yet.