[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111795":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":12,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":12,"stars7d":11,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":15,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":8,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":13,"starSnapshotCount":13,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},111795,"ComfyUI-Idol","Nynxz\u002FComfyUI-Idol","Nynxz",null,"Python",67,7,1,0,9,5,45.94,"Apache License 2.0",false,"main",[],"2026-10-29 21:44:57","2026-11-23 13:26:54","# ComfyUI-Idol\n\nNative ComfyUI support for **[Idol](https:\u002F\u002Fhuggingface.co\u002Fsperidlabs\u002Fidol)**, Speridlabs' single image to\n3D gaussian splat model: one picture of an object in, a 3DGS splat (with the unseen sides) out, in a few\nseconds on a modern GPU.\n\n\u003Cp align=\"center\">\u003Cimg src=\"example_workflows\u002Fidol_image_to_splat.jpg\" width=\"720\">\u003C\u002Fp>\n\n- **No requirements.** Pure ComfyUI. Nothing is installed, no model code is shipped.\n- **Stock nodes.** Idol is the TripoSplat architecture retrained, and ComfyUI implements that natively, so the\n  weights load with Load Diffusion Model and Load VAE and the stock TripoSplat nodes, KSampler, Render Splat,\n  Save Splat and the 3D viewer run it. ComfyUI's offloading, dtypes, attention backends and `torch.compile`\n  apply as usual.\n- **Three small nodes** for what Idol's pipeline adds on top: **Idol Preprocess Image** (its `synthetic` \u002F\n  `real` crop modes, background removal in place), **Idol Camera** (the camera Idol predicts for the input, to\n  re-render the input view or start a turntable from it) and **Idol Prune Splat** (drops the near-transparent\n  gaussians that make the viewer and exports look hazy).\n\n## Install\n\nClone into `ComfyUI\u002Fcustom_nodes` and restart ComfyUI:\n\n```bash\ncd ComfyUI\u002Fcustom_nodes\ngit clone https:\u002F\u002Fgithub.com\u002FNynxz\u002FComfyUI-Idol\n```\n\nNeeds a ComfyUI with TripoSplat support (0.22 or newer).\n\n## Models\n\n| File | Folder | Size | Download |\n|---|---|---|---|\n| `idol_fp16.safetensors` | `models\u002Fdiffusion_models` | 0.74 GB | [nynxz\u002FIdol](https:\u002F\u002Fhuggingface.co\u002Fnynxz\u002FIdol) |\n| `idol_decoder_fp16.safetensors` | `models\u002Fvae` | 0.58 GB | [nynxz\u002FIdol](https:\u002F\u002Fhuggingface.co\u002Fnynxz\u002FIdol) |\n| `dino_v3_vit_h.safetensors` | `models\u002Fclip_vision` | 1.68 GB | [VAST-AI\u002FTripoSplat](https:\u002F\u002Fhuggingface.co\u002FVAST-AI\u002FTripoSplat\u002Ftree\u002Fmain\u002Fclip_vision) |\n| `flux2-vae.safetensors` | `models\u002Fvae` | 0.34 GB | [VAST-AI\u002FTripoSplat](https:\u002F\u002Fhuggingface.co\u002FVAST-AI\u002FTripoSplat\u002Ftree\u002Fmain\u002Fvae) |\n| `birefnet.safetensors` | `models\u002Fbackground_removal` | 0.44 GB | [Comfy-Org\u002FBiRefNet](https:\u002F\u002Fhuggingface.co\u002FComfy-Org\u002FBiRefNet\u002Ftree\u002Fmain\u002Fbackground_removal) |\n\nThe first two are Idol's own weights (the denoiser, and the octree + gaussian decoders) in ComfyUI's file\nlayout, made with [`scripts\u002Fconvert.py`](#making-the-weights). The other three are the same encoders Idol\nuses: DINOv3 ViT-H+\u002F16 and the FLUX.2 VAE condition the denoiser, BiRefNet cuts the object out. If you\nalready run TripoSplat in ComfyUI you have them.\n\n## Workflow\n\nDrag **[example_workflows\u002Fidol_image_to_splat.json](example_workflows\u002Fidol_image_to_splat.json)** into\nComfyUI, or open it from **Templates → Custom Nodes → ComfyUI-Idol**. It is the standard TripoSplat graph\nwith the Idol files and the two Idol nodes:\n\n| Node | Setting |\n|---|---|\n| Load Image | the object. A transparent PNG's own alpha can be used (see below) |\n| Load Background Removal Model | `birefnet.safetensors` |\n| **Idol Preprocess Image** | `mode` **synthetic** for renders and generated images, **real** for photographs |\n| Load CLIP Vision | `dino_v3_vit_h.safetensors` |\n| Load VAE | `flux2-vae.safetensors` → TripoSplat Conditioning |\n| Load Diffusion Model | `idol_fp16.safetensors` |\n| KSampler | `euler` \u002F `simple`, **50** steps, cfg **4.0** |\n| Load VAE | `idol_decoder_fp16.safetensors` → TripoSplat Decode |\n| TripoSplat Decode | `num_gaussians` **262144** |\n| **Idol Prune Splat** | `min_opacity` **0.05**: keeps about half the gaussians, all the visible ones |\n| **Idol Camera** → Render Splat | the splat from the predicted input camera: should look like the preprocessed image |\n| Render Splat (72 frames) → Create Video | a turntable |\n| Create 3D File (from Splat) → Save Splat | `.ply` (or `.spz`, ~10x smaller), shown in the 3D viewer |\n\nThose KSampler values are Idol's defaults. Its `cfg_strength` 3.0 is `(1 + w) * cond - w * uncond`, which is\nComfyUI cfg **4.0**; its time shift `rescale_t` 3.0 is the model's sampling shift and already in the model\nconfig, so no ModelSamplingSD3 node is needed; its 50 Euler steps on `linspace(1, 0)` are exactly\n`euler` \u002F `simple`. `dpmpp_2m` at 20 steps (the TripoSplat template's setting) is a faster trade-off.\n\n**Tips**\n\n- **Crop mode matters.** Idol was trained with the object spanning 1\u002F1.2 of the frame for renders and\n  generated images (`synthetic`) and 1\u002F1.7 for photographs (`real`). `custom` sets the margin directly.\n- **Photographs:** `mode` **real**, a clean cutout (BiRefNet does well on a single object against a simple\n  background; for hard cases paint the mask yourself and connect it), the object centred and whole in the\n  frame, and the reference's sampling (50 steps, cfg 4). The model was trained on single objects, so crop\n  out neighbours and supports. Nothing else in the graph is photo-specific.\n- **Haze, spikes and fuzzy edges** in the 3D viewer or an export are the near-transparent gaussians: Idol\n  emits about half of its gaussians with opacity under 0.05, and viewers draw all of them. The reference\n  SDK's own `.ply` of the same image has the same halo (rendered side by side they are indistinguishable), so\n  this is the model as released, not the port. **Idol Prune\n  Splat** removes them (`min_opacity` 0.05; `max_scale` 0.05 also cuts needle-shaped spikes at the\n  silhouette) and halves the file; Render Splat and Extract Mesh have the same threshold built in\n  (`opacity_threshold`, `min_opacity`). It changes what the result looks like far more than any sampler setting.\n- **Transparent PNGs:** Idol uses an image's own alpha when it has one. In ComfyUI, Load Image's mask is the\n  *transparent* region, so pass it through **Invert Mask** into Idol Preprocess Image's `mask`; the\n  background removal model is then not needed.\n- **Check the result from the input view.** Idol predicts the camera the input was taken from. Render Splat\n  with Idol Camera's `camera_info` gives that view; if it does not resemble the preprocessed image something\n  went wrong upstream (usually the mask or the crop mode).\n- **Density:** 262144 gaussians matches the octree's point density. Higher values (up to 1048576) oversample\n  the same points, so they are denser but add no detail and cost VRAM and time; 65536 is a fast preview.\n- **Live preview:** the stock **TripoSplat Sampling Preview** node (in the workflow) shows a coarse decode at\n  every step. Bypass it to save a little time.\n- **Speed:** cond and uncond are batched, attention goes through ComfyUI's optimized attention, and the\n  trunk runs in fp16 like the reference: on an RTX 5090 the 50 Euler steps take about 18 s and the 262144\n  gaussian decode 4 to 8 s, without compilation. **TorchCompileModel** on the diffusion model works; the\n  first run compiles. The decode scales with `num_gaussians`.\n- **Exports:** Save Splat \u002F Create 3D File write `.ply` (full 3DGS), `.spz` and `.ksplat`. The `.ply` is the same\n  convention as Idol's own `save_ply` (y-up, degree-0 SH, log scale, logit opacity), so it opens in any\n  splat viewer. **Extract Mesh from Splat** gives a GLB.\n\n## Nodes\n\n**Idol Preprocess Image**: IMAGE (+ MASK or BACKGROUND_REMOVAL) → IMAGE, MASK\n\nWhat `idol.preprocess` does, on tensors: the short side is resized to 1024, the object's alpha (your mask, or\nBiRefNet's prediction when none is connected) is eroded by `erode_radius` pixels so no background fringe\nsurvives, a square of `mode` × the object's bounding box is cropped around it, resized to `size` × `size`\nand composited on black. The `mask` output is the alpha in that frame.\n\n**Idol Prune Splat**: SPLAT → SPLAT, count\n\nDrops gaussians with opacity below `min_opacity` and, if `max_scale` is set, those whose longest axis exceeds\nit (object units; the object spans about one). Batches keep per-item counts. Put it between TripoSplat Decode\nand anything that saves, previews or renders.\n\n**Idol Camera**: LATENT → LOAD3D_CAMERA, yaw, pitch, distance, fov\n\nThe denoiser denoises a 5-value camera token next to the object latent (direction, inverse distance,\nhalf-width). This node decodes it from the KSampler output into a `camera_info` for Render Splat, Create\nCamera Info and the 3D previews, plus yaw \u002F pitch (degrees, Create Camera Info's orbit convention: yaw here is\n180° minus Idol's yaw, pitch is the same), distance and vertical fov. Orthographic predictions become a far\nperspective camera (distance 1000), like the reference.\n\n## Making the weights\n\n```bash\npython scripts\u002Fconvert.py                                    # downloads speridlabs\u002Fidol, writes .\u002Fout\u002F\npython scripts\u002Fconvert.py --src \u002Fpath\u002Fto\u002Fidol --out ComfyUI\u002Fmodels --dtype fp16\n```\n\nIdol's released files are the TripoSplat networks under their original parameter names, so the conversion is\nonly a file layout change:\n\n- `denoiser.safetensors` → `diffusion_models\u002Fidol_fp16.safetensors`. The only key ComfyUI does not expect\n  is `pos_pe`, the latent tokens' fixed Sobol positions; ComfyUI recomputes that buffer (`SobolEngine`,\n  seed 123) and the script checks the stored one is identical before dropping it. The original fp32 file\n  also loads directly (with an \"unexpected key\" warning).\n- `decoder.safetensors` + `decoder_gs.safetensors` → `vae\u002Fidol_decoder_fp16.safetensors`, one file with the\n  `octree.` and `gs.` prefixes ComfyUI's TripoSplat gaussian decoder is detected by. The gaussian\n  representation config Idol ships (32 gaussians per anchor, softplus scaling with bias 0.004, opacity bias\n  0.1, 0.0009 filter kernel, perturbation 1.5) is exactly ComfyUI's default for that decoder.\n- `birefnet.safetensors` is Comfy-Org's BiRefNet without its training heads, so the stock file is used.\n\nfp16 is the precision the reference runs the transformer trunks at; `--dtype bf16` and `fp32` also work.\n\n## Tests\n\n- `tests\u002Fparity.py` checks the ComfyUI path against the reference implementation\n  ([idol-sdk](https:\u002F\u002Fgithub.com\u002Fsperidlabs\u002Fidol-sdk)) on random inputs: the denoiser's velocity for the\n  latent and the camera, the octree decoder's logits, the gaussian decoder's activated gaussians and the\n  PLY frame transform, the preprocessing and the camera decode. From the released fp32 weights the denoiser\n  matches to 3e-6 relative error and the decoders to ~1e-4 to 3e-3 (ComfyUI's fused RMSNorm uses eps 1e-6 where\n  the reference normalizes with none; with eps 0 they match exactly); the fp16 files add ~1e-3.\n- `tests\u002Fe2e.py` runs the whole graph headless through the stock node classes and writes the `.ply`, the\n  preprocessed input, the render from the predicted camera and a turntable sheet.\n\n```bash\n\u003CComfyUI>\u002F.venv\u002Fbin\u002Fpython tests\u002Fparity.py --comfy \u003CComfyUI> --ref \u003Cidol-sdk> --weights \u003Creleased files> --converted \u003Cmodels dir>\n\u003CComfyUI>\u002F.venv\u002Fbin\u002Fpython tests\u002Fe2e.py --comfy \u003CComfyUI> --image photo.png --out out --mode real\n```\n\n## Credits\n\n[Idol](https:\u002F\u002Fhuggingface.co\u002Fsperidlabs\u002Fidol) is by [Speridlabs](https:\u002F\u002Fsperidlabs.com\u002Fresearch\u002Fidol)\n(Apache-2.0). It is the [TripoSplat](https:\u002F\u002Fgithub.com\u002FVAST-AI-Research\u002FTripoSplat) architecture by\nVAST-AI-Research, whose ComfyUI implementation runs it here. Image encoders: DINOv3 (Meta) and the FLUX.2 VAE\n(Black Forest Labs); background removal: BiRefNet (Zheng et al.). Each has its own license. This pack is\nApache-2.0; see NOTICE.\n","ComfyUI-Idol 是一个为 ComfyUI 设计的轻量级插件，用于原生支持 Idol 模型——一种基于单张图像快速生成 3D 高斯泼溅（3D Gaussian Splatting）表示的 AI 模型。其核心功能包括 Idol 图像预处理（支持 synthetic\u002Freal 模式与原位背景去除）、Idol 相机参数预测、以及高斯点云精简，完全复用 ComfyUI 原生 TripoSplat 节点（如 KSampler、Render Splat），无需额外安装模型代码或依赖。项目采用纯 Python 实现，兼容 ComfyUI 的显存卸载、dtype 优化与 torch.compile 等特性，适用于快速构建单图生成可渲染 3DGS 资产的工作流，尤其适合数字内容创作、3D 资产原型设计与 AIGC 辅助建模等场景。",2,"2026-11-24 04:41:47","CREATED_QUERY"]