One image in, one 3D mesh out. A small image-to-3D model trained from scratch on a single RTX 3060 12 GB, written entirely in Rust on RustingBrain. No Python anywhere, in training or in use.
Objects the model never saw: input image, true shape, Kaze's output. Chosen to show the range: the top four rows are among its best results of 64, the next two are above average, the last two are a typical and a weak one.
Still an early model. Kaze v0.2 gets the shape and size of most everyday objects right, and boxes, shoes and bowls often closely. It smooths sharp edges, misses small detail, and does badly on animals and figurines. It makes geometry only: no texture, no colour. See What to expect.
You need a Rust toolchain. For the GPU build you also need an NVIDIA card and the CUDA toolkit.
# 1. the runner
git clone https://github.com/RustingStudio/RustingBrain
git clone https://github.com/RustingStudio/RustingRunner
cd RustingRunner
cargo build --release --features cuda # leave out --features cuda for CPU
# 2. the weights, and the DINOv2 image encoder they need
hf download rusting-studio/Kaze-3D-v0.2 --local-dir Kaze-3D-v0.2
hf download facebook/dinov2-base model.safetensors --local-dir Kaze-3D-v0.2/dinov2-base
# 3. one image to one mesh
./target/release/rusting-runner 3d --weights Kaze-3D-v0.2 \
--image my-object.png --out my-object.glb --cuda 0
Leave out --cuda 0 to run on the CPU. Open the .glb in Blender or any
glTF viewer. More flags (--seed, --steps, --guidance, --faces) are in
the RustingRunner README.
The runner reads from flow.safetensors which image encoder the model needs.
An older RustingRunner knows only CLIP and asks for it: update it before using
v0.2.
Best input: one object, centred, on a plain or transparent background, seen slightly from above. 512×512 is ideal; other sizes are resized.
| Part | Size | Role |
|---|---|---|
| Image encoder | DINOv2 ViT-B/14 at 196×196, frozen, not in this repository | turns the image into 197 tokens |
| Flow transformer | 103,219,968 parameters | turns noise into a shape latent, guided by the image tokens |
| Shape VAE | 31,448,065 parameters | turns the latent into a signed distance field; marching tetrahedra give the mesh |
Measured on the RTX 3060 on Google Scanned Objects held out of training
(held-out-ids.txt, the same 64 objects and the same picture of each as for
v0.1). The true shape is scaled so its longest side spans [-1, 1], and the
output is scored as generated, with no alignment to the truth. F@0.02 is the
F-score at a distance of 1% of the longest side, on 50,000 points per
surface. Higher is better; 1.0 is a perfect match.
| Objects | F@0.02 | IoU | Our target (F@0.02) | |
|---|---|---|---|---|
| Shape VAE, reconstruction | 32 | 0.923 | 0.868 | 0.90, reached |
| Image to shape, v0.2, 28 steps, guidance 4 | 64 | 0.480 | 0.548 | 0.55, not yet reached |
| Image to shape, v0.1, same settings | 64 | 0.215 | 0.344 |
27 of the 64 objects reach 0.55 on their own (v0.1: 6), and none came out empty. Scores spread widely: from 0.999 for a small bottle to 0.047 for a figurine.
On 256 held-out Objaverse objects, which are further from the scans, v0.2 scores F@0.02 0.392 and IoU 0.435. These are scored against the stored surface samples of each object rather than its mesh, and 5 of the 256 near-empty outputs were sampled again with a new seed, which the runner does not do.
One generation takes 3.4 seconds on the RTX 3060, weight loading included (two warm runs, 3.37 s each; the first run after boot took 5.1 s). The image encoder runs on the CPU in both training and use.
112,364 objects, each rendered from 8 views:
The shape VAE was trained on an earlier, smaller cut of the same corpus (53,688 objects, the same licences). The held-out scans were never trained on.
ATTRIBUTION.csv lists every Objaverse object used: id, title, author,
licence and source page. Objaverse: Deitke et al., "Objaverse: A Universe of
Annotated 3D Objects", CVPR 2023. Google Scanned Objects: Downs et al., ICRA
2022.
Weights: Apache-2.0. The DINOv2 weights keep their own licence (Apache-2.0) and are not redistributed here.
flow.safetensors 413 MBvae.safetensors 377 MB