Models · Multi-view depth

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

Checkpoint triposr

Paper 2024 Added in 0.4.0

Kernels, RTX 5060 Ti 16 GB 112 ms 512x512, fp16
vs the faster original 14.5× original fp32: 1628 ms
Peak memory 1,025 MiB original: 2,557 MiB
Accuracy vs original fp32 – no test-set run

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

BackenddtypeTime per call (ms)vs originalPeak 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 MiB11.13.25
Original fp16fp16not measured ––––
Portable fp32fp32not measured ––––
Portablefp16 3584.5×1,656 MiB/1,906 MiB2.81.05
Kernelsfp16 11215×1,025 MiB/1,046 MiB1.10.46
Portable + torch.compile 2795.8×1,768 MiB/1,844 MiB47 (build)–
TensorRT fp16fp16 43.138×970 MiBenginenot comparable75 (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

Code
MIT LICENSE
Weights
MIT source
Training data

Our reading of the licences, not legal advice.

Weights

model.ckpt 1.7 GB· hosted on Hugging Face

fastforks 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).

CheckToleranceMeasured
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 output
  • threshold=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.

variantinputbackendtime (ms)peak memory (MiB, allocated / reserved)
triposrTripoSR 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): triposr 3000x4000 (1.8 GiB peak allocated, 2.0 reserved)
  • triposr 512x512, first call: portable + torch.compile 47 s (cold Inductor cache), TensorRT fp16 74 s (ONNX + engine).
  • triposr original 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)
  • triposr load / 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).

variantkernels error vs original, mean / p99GPU, torchkernels used
triposr0.00177 / 0.0112RTX 5060 Ti, torch 2.14.1+cu130triposr_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=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.

Example output

No example rendered for this checkpoint yet.