DEV Community

Cover image for Serving Idol photo-to-3D on a small GPU: the VAE tiling trap and five other lessons
InferenceKey for InferenceKey

Posted on Originally published at inferencekey.com

Serving Idol photo-to-3D on a small GPU: the VAE tiling trap and five other lessons

If your code needs to turn product photos into 3D assets, Idol is worth a look. Alejandro Canada and Chema Garabito built it at Speridlabs, with weights and code under Apache-2.0. It outputs a Gaussian splat: 262,144 soft coloured blobs by default that blend into the object from any angle, saved as a standard .ply file.

We put the authors' pipeline behind an API on one RTX 3090 on our cloud, then reran the key calls on a real 8 GB RTX 3070. The headline figures live in our Idol photo-to-3D benchmark on an RTX 3090 and an RTX 3070. This piece covers the choices you face building that service yourself.

Fewer steps is not the same as Turbo

Idol refines the object in repeated passes, called steps, and the default is 50. Cutting the steps looks like a free speed-up, but it backfires. The backpack sample on the 3090, all with seed 42 (the number that fixes the random starting point):

Mode Seconds per object Back of the object
Idol, 50 steps 40.7 straps and a plain back panel
Idol Turbo, 5 steps 3.5 invents a flap at the bottom
Plain Idol, 5 steps 5.1 red artefacts, invented flap

Turbo is a separate model akhaliq trained to work in 5 steps, now in the Speridlabs account. The 50-step model run at 5 steps loses twice: slower than Turbo and visibly worse.

One backpack photo turned into 3D three ways on an RTX 3090, front and back: Idol at 50 steps, Idol Turbo at 5 steps with an invented flap, and plain Idol at 5 steps with artefacts

For your own evaluation, always render the back: the front is copied from the photo, the back is invented. Turbo never saw this backpack in training, and each case used one seed, so treat these rows as observed behaviour.

The memory wall is the VAE, and the obvious switches do nothing

Idol's memory use barely moves with your settings. It peaked at 7,308 MiB on the 3090 and 7,189 MiB on the 3070, so 24 GB was spare room, not a need. Untuned, the 3070 took 66.9 s per object, or 5.6 s with Turbo.

To probe below 8 GB, we capped the 3090 at roughly a 6 GB card. Idol's own network held. The VAE broke: FLUX.2's picture compressor, one of two helper models that read the photo first.

CUDA out of memory. Tried to allocate 256.00 MiB ... 4.60 GiB is allocated by PyTorch
Enter fullscreen mode Exit fullscreen mode

Offloading the encoders (moving the helper models off the GPU between uses) gave the same error. Turning on diffusers' VAE tiling, which processes the picture in pieces, did nothing either: its default tile is 1024 px, it only splits larger inputs, and Idol's input is exactly 1024 px. Forcing 512 px tiles worked, with a 5,699 MiB peak and 40.7 s per object. The mean pixel difference against untiled renders was 4.7 and 4.3 out of 255, invisible in our renders.

This 6 GB result is a memory cap, not a real card, so it says nothing about slower chips or less system RAM. Every lower cap failed.

Warm up each mode before you report ready

Idol compiles its network for your card on the first image after start-up, and that request pays the bill. Our wrapper holds both modes in one process and runs a short object through each before reporting ready: 22.3 s for base, 17.0 s for Turbo. A cold 3090 was ready in 117 seconds, roughly 5 GB of downloads included. Cached restarts took 28 seconds.

Plan for the file, not the GPU

Four times the blobs (about a million) cost roughly 2 seconds and no extra memory, but the file grows from 17.8 MB to 71.3 MB. Our platform limits one result to 8 MB, so the backend splits the .ply into 2 MB parts the caller fetches by id. That breaks once several copies of the model share requests. It is open on our side, and the fix is returning large outputs through file storage.

What to measure, and what fails

  • Peak memory, read from nvidia-smi once a second.
  • A SHA-256 hash of each output. On the 3090, one picture and seed gave the same file six times. The 3070 gave slightly different bits.
  • Awkward inputs. A flamingo-shaped terracotta planter looked believable from the angle its photo hid. The gecko turned lumpy and a glass ball collapsed into a flat disc. One sample, but be wary of transparent objects.

A glass ball photo next to its 3D render at 50 steps on an RTX 3090: a flat disc instead of a sphere

Read the helper licenses before you ship

Idol, Turbo and the FLUX.2 VAE are Apache-2.0, and ZhengPeng7's BiRefNet background remover is MIT. The odd one out is Meta's DINOv3, the second helper, under the DINOv3 License. As we read it (not legal advice), commercial use is not banned, with trade-control limits and a request for credit. We pulled DINOv3 from Comfy-Org's repackage, which avoids Meta's access form but not Meta's terms.

Untested: the authors' gated download path, concurrency, an RTX 4090 or datacenter card, and a real card under 8 GB. Timing tables, the memory ladder, request fields and setup for the open Idol SDK example are in the full Idol research write-up with the memory ladder and license notes.

Thanks to Speridlabs (Alejandro Canada and Chema Garabito), akhaliq, VAST-AI-Research (TripoSplat), Meta, Black Forest Labs, ZhengPeng7, Comfy-Org, onnx-community, and AI Search, whose video pointed us to Idol. Our part was the backend and the measurements. To run it on your own NVIDIA card, start from our Idol photo-to-3D splat test on consumer GPUs.

Top comments (0)