Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Apps: Photo to 3D turns one photo into a 3D model you turn with taps

Adarshc07418385e33
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index 694700c3..c18fcbae 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -114,6 +114,8 @@ const NUMERIC_DEFAULT_KEYS = [
'motionFrame', 'audioCfg', 'threshold', 'mosaicScale',
// archive-restore
'windowStart', 'windowFrames', 'prefixFrames', 'canvasWidth', 'canvasHeight', 'tileWidth', 'tileHeight', 'tileFrames',
+ // Photo to 3D (Idol)
+ 'meshDetail', 'frontYaw',
];
export const BINDING_KEYS = new Set([
'prompt', 'negativePrompt', 'image', 'image2', 'image3', 'image4', 'mask', 'endImage', 'video', 'audio',
@@ -184,6 +186,8 @@ export const BINDING_KEYS = new Set([
'splatFile', 'cameraYaw', 'cameraPitch', 'cameraDistance', 'cameraFov', 'targetX', 'targetY', 'targetZ',
// Head Swap: the paste-back edge's blur and the paste-back switch
'maskBlur', 'pasteBack',
+ // Photo to 3D (Idol): SplatToMesh's grid and the turn that faces the subject's front
+ 'meshDetail', 'frontYaw',
]);
// Sizes in GB: two decimals, and three where two would read 0 (a 4 MB DBS model), so no other entry's size changes.
diff --git a/scripts/comfy/hand-built/image-to-3d-idol.json b/scripts/comfy/hand-built/image-to-3d-idol.json
new file mode 100644
index 00000000..e9b28b15
--- /dev/null
+++ b/scripts/comfy/hand-built/image-to-3d-idol.json
@@ -0,0 +1,443 @@
+{
+ "41": {
+ "inputs": {
+ "fps": 24,
+ "bit_depth": "auto",
+ "color_space": "sRGB",
+ "codec": "h264",
+ "images": [
+ "75",
+ 0
+ ]
+ },
+ "class_type": "CreateVideo",
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "42": {
+ "inputs": {
+ "filename_prefix": "fuobe/image-to-3d-idol",
+ "format": "auto",
+ "format.codec": "auto",
+ "codec": "auto",
+ "video": [
+ "41",
+ 0
+ ]
+ },
+ "class_type": "SaveVideo",
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "51": {
+ "inputs": {
+ "filename_prefix": "fuobe/image-to-3d-idol",
+ "mesh": [
+ "92",
+ 0
+ ]
+ },
+ "class_type": "SaveGLB",
+ "_meta": {
+ "title": "Save 3D Model"
+ }
+ },
+ "60": {
+ "inputs": {
+ "resolution": 384,
+ "kernel": 5,
+ "smooth": 0,
+ "level": 0.4,
+ "min_component": 500,
+ "min_opacity": 0.05,
+ "color_sharpen": 2,
+ "splat": [
+ "88:55",
+ 0
+ ]
+ },
+ "class_type": "SplatToMesh",
+ "_meta": {
+ "title": "Extract Mesh from Splat"
+ }
+ },
+ "61": {
+ "inputs": {
+ "filename_prefix": "fuobe/image-to-3d-idol",
+ "mesh": [
+ "60",
+ 0
+ ]
+ },
+ "class_type": "SaveGLB",
+ "_meta": {
+ "title": "Save 3D Model"
+ }
+ },
+ "75": {
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "frames": 96,
+ "splat_scale": 1,
+ "sharpen": 2,
+ "headlight_shading": 0,
+ "opacity_threshold": 0.05,
+ "render_style": "color",
+ "background": "#ece4da",
+ "splat": [
+ "88:55",
+ 0
+ ],
+ "camera_info": [
+ "79",
+ 0
+ ]
+ },
+ "class_type": "RenderSplat",
+ "_meta": {
+ "title": "Render Splat"
+ }
+ },
+ "76": {
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "frames": 1,
+ "splat_scale": 1,
+ "sharpen": 2,
+ "headlight_shading": 0,
+ "opacity_threshold": 0.05,
+ "render_style": "color",
+ "background": "#ece4da",
+ "splat": [
+ "88:55",
+ 0
+ ],
+ "camera_info": [
+ "80",
+ 0
+ ]
+ },
+ "class_type": "RenderSplat",
+ "_meta": {
+ "title": "Render Splat (front still)"
+ }
+ },
+ "77": {
+ "inputs": {
+ "filename_prefix": "fuobe/image-to-3d-idol",
+ "images": [
+ "76",
+ 0
+ ]
+ },
+ "class_type": "SaveImage",
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "79": {
+ "inputs": {
+ "mode": "orbit",
+ "mode.yaw": 0,
+ "mode.pitch": 10,
+ "mode.distance": 2.6,
+ "target_x": 0,
+ "target_y": 0,
+ "target_z": 0,
+ "roll": 0,
+ "fov": 35,
+ "zoom": 1,
+ "camera_type": "perspective"
+ },
+ "class_type": "CreateCameraInfo",
+ "_meta": {
+ "title": "Create Camera Info"
+ }
+ },
+ "80": {
+ "inputs": {
+ "mode": "orbit",
+ "mode.yaw": 0,
+ "mode.pitch": 5,
+ "mode.distance": 2.4,
+ "target_x": 0,
+ "target_y": 0,
+ "target_z": 0,
+ "roll": 0,
+ "fov": 35,
+ "zoom": 1,
+ "camera_type": "perspective"
+ },
+ "class_type": "CreateCameraInfo",
+ "_meta": {
+ "title": "Create Camera Info (front still)"
+ }
+ },
+ "92": {
+ "inputs": {
+ "format": "spz",
+ "splat": [
+ "88:55",
+ 0
+ ]
+ },
+ "class_type": "SplatToFile3D",
+ "_meta": {
+ "title": "Create 3D File (from Splat)"
+ }
+ },
+ "99": {
+ "inputs": {
+ "image": "subject.png"
+ },
+ "class_type": "LoadImage",
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "88:85:82": {
+ "inputs": {
+ "bg_removal_name": "birefnet.safetensors"
+ },
+ "class_type": "LoadBackgroundRemovalModel",
+ "_meta": {
+ "title": "Load Background Removal Model"
+ }
+ },
+ "88:85:81": {
+ "inputs": {
+ "bg_removal_model": [
+ "88:85:82",
+ 0
+ ],
+ "image": [
+ "99",
+ 0
+ ]
+ },
+ "class_type": "RemoveBackground",
+ "_meta": {
+ "title": "Remove Background"
+ }
+ },
+ "88:95": {
+ "inputs": {
+ "mask": [
+ "99",
+ 1
+ ]
+ },
+ "class_type": "InvertMask",
+ "_meta": {
+ "title": "Invert Mask"
+ }
+ },
+ "88:35": {
+ "inputs": {
+ "switch": true,
+ "on_false": [
+ "88:95",
+ 0
+ ],
+ "on_true": [
+ "88:85:81",
+ 0
+ ]
+ },
+ "class_type": "ComfySwitchNode",
+ "_meta": {
+ "title": "Switch: Mask Source"
+ }
+ },
+ "88:2": {
+ "inputs": {
+ "erode_radius": 1,
+ "size": 1024,
+ "image": [
+ "99",
+ 0
+ ],
+ "mask": [
+ "88:35",
+ 0
+ ]
+ },
+ "class_type": "TripoSplatPreprocessImage",
+ "_meta": {
+ "title": "TripoSplat Preprocess Image"
+ }
+ },
+ "88:101": {
+ "inputs": {
+ "upscale_method": "lanczos",
+ "width": 720,
+ "height": 720,
+ "crop": "disabled",
+ "image": [
+ "88:2",
+ 0
+ ]
+ },
+ "class_type": "ImageScale",
+ "_meta": {
+ "title": "Photo crop: shrink"
+ }
+ },
+ "88:102": {
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "batch_size": 1,
+ "color": 0
+ },
+ "class_type": "EmptyImage",
+ "_meta": {
+ "title": "Photo crop: black square"
+ }
+ },
+ "88:103": {
+ "inputs": {
+ "x": 152,
+ "y": 152,
+ "resize_source": false,
+ "destination": [
+ "88:102",
+ 0
+ ],
+ "source": [
+ "88:101",
+ 0
+ ]
+ },
+ "class_type": "ImageCompositeMasked",
+ "_meta": {
+ "title": "Photo crop: centre"
+ }
+ },
+ "88:104": {
+ "inputs": {
+ "switch": false,
+ "on_false": [
+ "88:2",
+ 0
+ ],
+ "on_true": [
+ "88:103",
+ 0
+ ]
+ },
+ "class_type": "ComfySwitchNode",
+ "_meta": {
+ "title": "Switch: Photo Crop"
+ }
+ },
+ "88:7": {
+ "inputs": {
+ "clip_name": "dino_v3_vit_h.safetensors"
+ },
+ "class_type": "CLIPVisionLoader",
+ "_meta": {
+ "title": "Load CLIP Vision"
+ }
+ },
+ "88:8": {
+ "inputs": {
+ "vae_name": "flux2-vae.safetensors"
+ },
+ "class_type": "VAELoader",
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "88:24": {
+ "inputs": {
+ "clip_vision": [
+ "88:7",
+ 0
+ ],
+ "vae": [
+ "88:8",
+ 0
+ ],
+ "image": [
+ "88:104",
+ 0
+ ]
+ },
+ "class_type": "TripoSplatConditioning",
+ "_meta": {
+ "title": "TripoSplat Conditioning"
+ }
+ },
+ "88:16": {
+ "inputs": {
+ "unet_name": "idol_fp16.safetensors",
+ "weight_dtype": "default"
+ },
+ "class_type": "UNETLoader",
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "88:6": {
+ "inputs": {
+ "seed": 46,
+ "steps": 50,
+ "cfg": 4,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1,
+ "model": [
+ "88:16",
+ 0
+ ],
+ "positive": [
+ "88:24",
+ 0
+ ],
+ "negative": [
+ "88:24",
+ 1
+ ],
+ "latent_image": [
+ "88:24",
+ 2
+ ]
+ },
+ "class_type": "KSampler",
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "88:11": {
+ "inputs": {
+ "vae_name": "idol_decoder_fp16.safetensors"
+ },
+ "class_type": "VAELoader",
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "88:55": {
+ "inputs": {
+ "num_gaussians": 262144,
+ "seed": 46,
+ "samples": [
+ "88:6",
+ 0
+ ],
+ "vae": [
+ "88:11",
+ 0
+ ]
+ },
+ "class_type": "VAEDecodeTripoSplat",
+ "_meta": {
+ "title": "TripoSplat Decode"
+ }
+ }
+}
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index c004c1fc..d151b86e 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -5159,6 +5159,35 @@ export const SPEC = [
'1.32 GB of new weights (idol_fp16 0.74, idol_decoder_fp16 0.58) plus the shared 2.46 GB (DINOv3 ViT-H 1.68, FLUX.2 VAE 0.34, BiRefNet 0.44). ' +
'VRAM: vendor peak 7.2 GB in the SDK; unmeasured in ComfyUI.',
},
+ {
+ // Photo to 3D (app-photo-to-3d) and Image to 3D's quick model: Idol (TripoSplat's architecture, new weights) on core nodes,
+ // its splat turned into a GLB with core SplatToMesh (docs/research/idol-9.md §5.5).
+ id: 'image-to-3d-idol',
+ title: 'Image to a 3D model (.glb) + its Gaussian splat + an orbit video (Idol on core TripoSplat nodes, SplatToMesh)',
+ capability: 'image-to-3d',
+ handBuilt: 'hand-built/image-to-3d-idol.json',
+ bindings: {
+ image: [b('99', 'image')], cutout: [b('88:35', 'switch')], photoCrop: [b('88:104', 'switch')], seed: [b('88:6', 'seed'), b('88:55', 'seed')],
+ steps: [b('88:6', 'steps')], cfg: [b('88:6', 'cfg')], sampler: [b('88:6', 'sampler_name')], numGaussians: [b('88:55', 'num_gaussians')],
+ splatFormat: [b('92', 'format')], orbitFrames: [b('75', 'frames')], meshDetail: [b('60', 'resolution')], frontYaw: [b('79', 'mode.yaw'), b('80', 'mode.yaw')],
+ },
+ outputs: [{ node: '61', kind: 'model3d' }, { node: '51', kind: 'model3d', role: 'splat' }, { node: '42', kind: 'video', role: 'orbit' }, { node: '77', kind: 'image' }],
+ defaults: { splatFormat: 'spz', cutout: true, photoCrop: false },
+ limits: { maxGaussians: 1048576 },
+ vramGb: 10,
+ license:
+ 'Apache-2.0 (speridlabs/Idol weights, via nynxz/Idol; built on TripoSplat, MIT, VAST-AI-Research); the dino_v3_vit_h image encoder is under the DINOv3 License ' +
+ '(royalty-free, commercial use allowed, trade-control limits; the app must show a "Built with DINOv3" notice); FLUX.2 VAE Apache-2.0; BiRefNet MIT',
+ notes:
+ 'One photo of one person or product -> a vertex-coloured GLB (main output, no role: the server makes its web GLB), the splat (role splat, .spz), ' +
+ 'a 4 s orbit of the splat (role orbit: the server skips its mesh turntable) and a front still (the poster). image-to-splat-triposplat with Idol\'s files and ' +
+ 'reference sampler (50 euler steps, cfg 4; the shift 3 is built into the TripoSplat model class). BiRefNet cut-out (cutout false = the image\'s own alpha), ' +
+ 'then TripoSplatPreprocessImage = Idol\'s "synthetic" 1.2 crop; photoCrop true scales it to 720 px on a black 1024 square, about Idol\'s "real" 1.7 crop (core nodes, not run). ' +
+ 'SplatToMesh (meshDetail = its grid, 384 by default; min_opacity 0.05 drops Idol\'s faint halo, which RenderSplat\'s opacity_threshold 0.05 also hides in the clip and still; ' +
+ 'the .spz keeps it: no core node prunes a splat). frontYaw turns the orbit\'s start and the still to the subject\'s front (calibrated on the GPU). ' +
+ 'Backdrop #ece4da, the middle of the server turntable\'s studio sweep. New weights 1.32 GB (idol_fp16 0.74, idol_decoder_fp16 0.58); with TripoSplat\'s shared ' +
+ 'DINOv3 ViT-H, FLUX.2 VAE and BiRefNet 3.78 GB. VRAM unmeasured (vendor peak 7.2 GB for Idol, plus the mesh grid). Not validated: no /prompt server was used.',
+ },
{
// N7-5: Cinema's "Film this path" on the open engine (docs/research/new-models-7.md §3.6, the wan21-i2v-uni3c-path table).
id: 'wan21-i2v-uni3c-path',
diff --git a/src/components/model3d/model-card.tsx b/src/components/model3d/model-card.tsx
index 646c1995..9b1b4ddc 100644
--- a/src/components/model3d/model-card.tsx
+++ b/src/components/model3d/model-card.tsx
@@ -6,7 +6,7 @@ import { createElement, useCallback, useEffect, useEffectEvent, useRef, useState
import { toast } from "sonner";
import { Button } from "@/components/ui/button";
import { uploadFile, useEngine, useHydrated } from "@/lib/api";
-import { animateSpinHref, animationName, model3dView, photorealAngle, photorealBody, stillOf, type Model3dView } from "@/lib/av/model3d";
+import { animateSpinHref, animationName, FRONT_YAW, model3dView, photorealAngle, photorealBody, stillOf, turnOrbit, type Model3dView } from "@/lib/av/model3d";
import { anyAngleHref } from "@/lib/catalog/any-angle";
import { PATH_FPS, PATH_FRAMES } from "@/lib/camera-path";
import { useFlyAround } from "@/components/fly-around-run";
@@ -19,6 +19,7 @@ import { RigDialog } from "./rig-dialog";
import { PlaceholderChip } from "@/components/demo-mode";
import { NextSteps } from "@/components/nav/next-steps";
import { recordableType, recordTurntable } from "./turntable";
+import { TurnChips } from "./turn-chips";
/**
* Left out of the card's next steps: its own Animate the spin button is that step (and knows a turntable recorded
@@ -131,6 +132,8 @@ export function ModelCard({ g, cloudAllowed }: { g: Generation; cloudAllowed: bo
const label = g.modelName ?? "3D";
// Behind the viewer: the studio sweep the server's turntable and poster are on, so opening 3D doesn't jump.
const backdrop = view.material ? TURNTABLE_BACKDROP : undefined;
+ // The model's own front (a GLB made from a splat faces where the model put the subject).
+ const frontYaw = FRONT_YAW[g.modelId] ?? 0;
const startRecording = useCallback(
async (el: HTMLElement) => {
setRecording(0);
@@ -290,9 +293,12 @@ export function ModelCard({ g, cloudAllowed }: { g: Generation; cloudAllowed: bo
"touch-action": "pan-y",
"interaction-prompt": "none",
...viewerLook(view.material),
+ ...(frontYaw ? { "camera-orbit": turnOrbit("front", frontYaw) } : {}),
style: { width: "100%", height: "100%", background: "transparent" },
})
)}
+ {/* Tap to turn a still model to a side (a rig plays its animation instead). */}
+ {open3d && ready && !failed && !!src && !view.rigged && recording === null && <TurnChips viewer={viewer} frontYaw={frontYaw} compact className="absolute inset-x-3 bottom-3" />}
{recording !== null && (
<div className="absolute inset-x-3 bottom-3 rounded-full bg-background/90 px-3 py-1.5 text-[12px] font-medium shadow-soft" role="status">
Recording the turntable… {Math.round(recording * 100)}%
diff --git a/src/components/model3d/model3d-studio.tsx b/src/components/model3d/model3d-studio.tsx
index d9d07049..a3578fe2 100644
--- a/src/components/model3d/model3d-studio.tsx
+++ b/src/components/model3d/model3d-studio.tsx
@@ -190,7 +190,7 @@ export function Model3dStudio({ info, examples }: { info: Record<string, Model3d
const visitor = useLikelyVisitor();
const access = useModelAccess();
const create = useCreateGeneration();
- const results = useGenerations({ features: [MODEL3D_FEATURE, "app:app-image-to-3d", MODEL3D_FILM_FEATURE], limit: 24 });
+ const results = useGenerations({ features: [MODEL3D_FEATURE, "app:app-image-to-3d", "app:app-photo-to-3d", MODEL3D_FILM_FEATURE], limit: 24 });
const [mode, setMode] = useState<Model3dMode>("image");
const router = useRouter();
// A mode picked here goes in the URL (?mode=), so a reload or a shared link opens it again (UrlModel reads it).
diff --git a/src/components/model3d/turn-chips.tsx b/src/components/model3d/turn-chips.tsx
new file mode 100644
index 00000000..4e78fbbc
--- /dev/null
+++ b/src/components/model3d/turn-chips.tsx
@@ -0,0 +1,76 @@
+"use client";
+
+import { Rotate3d } from "lucide-react";
+import { useEffect, useRef, useState } from "react";
+import { TURN_VIEWS, turnOrbit, type TurnView } from "@/lib/av/model3d";
+import { cn } from "@/lib/utils";
+
+/**
+ * Turn a 3D model with taps: Front, Left side, Back, Right side, From above, and Spin. A tap stops the slow turn and
+ * moves the <model-viewer> camera there (model-viewer animates the move); Spin starts the turn again. Dragging the
+ * model still works (the desktop extra); it clears the chip that was on. `frontYaw` turns the chips to the model's
+ * own front (FRONT_YAW).
+ */
+export function TurnChips({
+ viewer,
+ frontYaw = 0,
+ dark,
+ compact,
+ className,
+}: {
+ viewer: HTMLElement | null;
+ frontYaw?: number;
+ /** On the full-screen viewer's dark backdrop. */
+ dark?: boolean;
+ /** Smaller chips, for a card. */
+ compact?: boolean;
+ className?: string;
+}) {
+ const [on, setOn] = useState<TurnView | "spin" | null>("spin");
+ // model-viewer skips a camera-orbit equal to the last one set, even after a drag: every tap writes a new value.
+ const taps = useRef(0);
+ useEffect(() => {
+ if (!viewer) return;
+ const onChange = (e: Event) => {
+ if ((e as CustomEvent<{ source?: string }>).detail?.source === "user-interaction") setOn((v) => (v === "spin" ? v : null));
+ };
+ viewer.addEventListener("camera-change", onChange);
+ return () => viewer.removeEventListener("camera-change", onChange);
+ }, [viewer]);
+ const turn = (id: TurnView) => {
+ if (!viewer) return;
+ taps.current += 1;
+ viewer.removeAttribute("auto-rotate");
+ viewer.setAttribute("camera-orbit", turnOrbit(id, frontYaw).replace(/%$/, `${taps.current % 2 ? ".001" : ""}%`));
+ setOn(id);
+ };
+ const spin = () => {
+ if (!viewer) return;
+ viewer.setAttribute("auto-rotate", "");
+ setOn("spin");
+ };
+ const chip = (active: boolean) =>
+ cn(
+ "inline-flex items-center gap-1 rounded-full font-medium backdrop-blur transition-colors disabled:opacity-50",
+ compact ? "h-8 px-2.5 text-[12px]" : "h-10 px-3.5 text-[13px]",
+ dark
+ ? active
+ ? "bg-white text-black"
+ : "bg-white/15 text-white hover:bg-white/25"
+ : active
+ ? "bg-foreground text-background"
+ : "bg-background/85 text-foreground shadow-soft hover:bg-background",
+ );
+ return (
+ <div role="group" aria-label="Turn the model" className={cn("flex flex-wrap justify-center gap-1.5", className)}>
+ {TURN_VIEWS.map((v) => (
+ <button key={v.id} type="button" className={chip(on === v.id)} aria-pressed={on === v.id} disabled={!viewer} onClick={() => turn(v.id)}>
+ {v.label}
+ </button>
+ ))}
+ <button type="button" className={chip(on === "spin")} aria-pressed={on === "spin"} disabled={!viewer} onClick={spin}>
+ <Rotate3d className="size-3.5" aria-hidden /> Spin
+ </button>
+ </div>
+ );
+}
diff --git a/src/components/studio/result-actions.tsx b/src/components/studio/result-actions.tsx
index b0514881..979fc8ae 100644
--- a/src/components/studio/result-actions.tsx
+++ b/src/components/studio/result-actions.tsx
@@ -30,8 +30,8 @@ import {
MoreHorizontal,
Pin,
Repeat,
- RotateCcw,
Rotate3d,
+ RotateCcw,
Share2,
SlidersHorizontal,
SlidersVertical,
@@ -120,6 +120,8 @@ export const ACTION_ICONS: Record<OutputActionId, LucideIcon> = {
"download-vtt": FileDown,
"download-all": FolderDown,
"download-exr": FileArchive,
+ "download-splat": FileDown,
+ "make-3d": Rotate3d,
favorite: Heart,
finalize: Sparkles,
regenerate: Sparkles,
diff --git a/src/components/studio/result-media.tsx b/src/components/studio/result-media.tsx
index 1e90b467..cf8050ab 100644
--- a/src/components/studio/result-media.tsx
+++ b/src/components/studio/result-media.tsx
@@ -3,8 +3,9 @@
import { AudioLines, Box, Download, FileText, Film, Layers } from "lucide-react";
import { createElement, useEffect, useState } from "react";
import { loadModelViewer, useViewerSrc, viewerLook } from "@/components/model3d/model-viewer";
+import { TurnChips } from "@/components/model3d/turn-chips";
import { FORMAT_INFO } from "@/lib/av/formats";
-import { splatFormatOf, viewerGlb } from "@/lib/av/model3d";
+import { FRONT_YAW, splatFormatOf, turnOrbit, viewerGlb } from "@/lib/av/model3d";
import type { Generation, OutputFile, VideoFormat } from "@/lib/catalog/types";
import { extensionOf } from "@/lib/library";
import { cuesOf, cueTime, editOnlyFormat, isLayered, layerInfo, modelPreview, textOf, videoPoster } from "@/lib/output-actions";
@@ -195,7 +196,7 @@ export function LayersStack({ g, className, bare }: { g: Generation; className?:
/**
* A .glb in an orbitable viewer. @google/model-viewer (with three.js) loads only when one is opened. A Gaussian
* splat (.ply / .spz / .ksplat), which it can't load, shows its orbit video or picture and the file to download.
- * A rigged character plays its animation instead of turning.
+ * A rigged character plays its animation instead of turning; a still model turns, and the chips under it turn it to a side.
*/
export function ModelViewer({ output, g }: { output: OutputFile; g: Generation }) {
const [ready, setReady] = useState(false);
@@ -227,7 +228,9 @@ export function ModelViewer({ output, g }: { output: OutputFile; g: Generation }
</div>
);
}
- return createElement("model-viewer", {
+ const rigged = output.meta?.rigged === true;
+ const frontYaw = FRONT_YAW[g.modelId] ?? 0;
+ const model = createElement("model-viewer", {
ref: setViewer,
src,
poster,
@@ -236,11 +239,19 @@ export function ModelViewer({ output, g }: { output: OutputFile; g: Generation }
reveal: "auto",
"camera-controls": "",
// A rigged character plays its animation; a still model turns.
- ...(output.meta?.rigged === true ? { autoplay: "" } : { "auto-rotate": "" }),
+ ...(rigged ? { autoplay: "" } : { "auto-rotate": "" }),
"touch-action": "pan-y",
...viewerLook(typeof material === "string" ? material : undefined),
+ ...(frontYaw ? { "camera-orbit": turnOrbit("front", frontYaw) } : {}),
style: { width: "100%", height: "100%", background: "transparent" },
});
+ if (rigged) return model;
+ return (
+ <div className="relative size-full">
+ {model}
+ <TurnChips viewer={viewer} frontYaw={frontYaw} dark className="absolute inset-x-3 bottom-3" />
+ </div>
+ );
}
/** A splat in the full-screen viewer: its orbit video or picture, what Fuobe can't do yet, and the file. */
diff --git a/src/lib/av/model3d.ts b/src/lib/av/model3d.ts
index 34e0b918..ee8d13ec 100644
--- a/src/lib/av/model3d.ts
+++ b/src/lib/av/model3d.ts
@@ -44,6 +44,7 @@ export const MODELS_3D: Record<Model3dMode, Record<Engine, Model3dChoice[]>> = {
open: [
{ id: "oss-pixal3d", note: "Most faithful to your photo, with a turntable video" },
{ id: "oss-trellis2", note: "A dependable second choice, with a turntable video" },
+ { id: "oss-idol-3d", note: "A quick model of a person or product, with an orbit clip" },
{ id: "oss-hunyuan3d-21", note: "The shape only, without colour" },
],
},
@@ -297,6 +298,8 @@ export function model3dView(g: Pick<Generation, "outputs" | "request">): Model3d
const files = g.outputs.filter((o) => o.kind === "model3d");
const mesh = files.find((o) => o.meta?.role !== "mesh") ?? files[0];
const fromSplat = files.find((o) => o !== mesh && o.meta?.role === "mesh");
+ // A GLB made from a splat in its own graph (Photo to 3D): the splat beside it (role "splat") is one of its downloads.
+ const sideSplat = mesh && !splatFormatOf(mesh) ? files.find((o) => o !== mesh && o.meta?.role === "splat") : undefined;
const meta = (mesh?.meta ?? {}) as Record<string, unknown>;
const str = (v: unknown) => (typeof v === "string" && v ? v : undefined);
const videos = g.outputs.filter((o) => o.kind === "video");
@@ -306,6 +309,7 @@ export function model3dView(g: Pick<Generation, "outputs" | "request">): Model3d
const formats: Record<string, string> = {};
const listed = meta.formats;
if (listed && typeof listed === "object") for (const [k, v] of Object.entries(listed as Record<string, unknown>)) if (typeof v === "string") formats[k.toLowerCase()] = v;
+ if (sideSplat) formats.splat = sideSplat.url;
const format = splatFormatOf(mesh);
const splat = mesh && format ? { url: mesh.url, format } : undefined;
return {
@@ -480,3 +484,33 @@ export function retextureRequest(o: { glb: string; prompt?: string; style?: stri
...(o.size && o.size !== "2k" && { params: { extra: { texture_resolution: o.size } } }),
};
}
+
+// Turn with taps: the views a 3D viewer's chips turn to
+
+export type TurnView = "front" | "left" | "back" | "right" | "above";
+
+/**
+ * The chips under a 3D view, in order. Left and right are the subject's own (as SIDE_LABELS): facing its front, its
+ * left side is on your right. theta is model-viewer's orbit angle round the model (0 = the camera on +Z, 90 = on +X),
+ * phi the angle down from straight above.
+ */
+export const TURN_VIEWS: { id: TurnView; label: string; theta: number; phi: number }[] = [
+ { id: "front", label: "Front", theta: 0, phi: 75 },
+ { id: "left", label: "Left side", theta: 90, phi: 75 },
+ { id: "back", label: "Back", theta: 180, phi: 75 },
+ { id: "right", label: "Right side", theta: 270, phi: 75 },
+ { id: "above", label: "From above", theta: 25, phi: 35 },
+];
+
+/**
+ * The yaw (degrees) that turns a model's own front to model-viewer's front, by model: a GLB made from a splat faces
+ * the way the model put the subject, which the GPU test measures. Models not listed face +Z already.
+ */
+export const FRONT_YAW: Record<string, number> = { "oss-idol-3d": 0 };
+
+/** model-viewer's camera-orbit for a chip: its angle plus the model's front, at the distance the viewer frames it. */
+export function turnOrbit(view: TurnView, frontYaw = 0): string {
+ const v = TURN_VIEWS.find((t) => t.id === view) ?? TURN_VIEWS[0];
+ const theta = (((v.theta + frontYaw) % 360) + 360) % 360;
+ return `${theta}deg ${v.phi}deg 130%`;
+}
diff --git a/src/lib/catalog/apps.ts b/src/lib/catalog/apps.ts
index 96ebfd70..7c2e0269 100644
--- a/src/lib/catalog/apps.ts
+++ b/src/lib/catalog/apps.ts
@@ -775,6 +775,21 @@ export const APPS: Preset[] = [
open: { modelId: "oss-pixal3d", op: "image-to-3d" },
parity: "Comes with a turntable video of your model.",
}),
+ // Photo to 3D: one photo of a person or a product → a GLB to turn with taps (src/components/model3d/turn-chips.tsx),
+ // the splat it was made from and a clip of it turning. Idol isn't hosted anywhere, so there is no cloud route.
+ app({
+ name: "Photo to 3D",
+ category: "Product",
+ description: "Your photo as a 3D model to turn and download",
+ icon: "Rotate3d",
+ hue: 265,
+ badges: ["new"],
+ inputs: [{ key: "image", label: "Photo", hint: "One person or one product, whole and on its own", accept: "image", required: true }],
+ prompt: "",
+ cloud: null,
+ open: { modelId: "oss-idol-3d", op: "image-to-3d" },
+ parity: "Gives you a 3D model (.glb) to turn and download, and a clip of it turning.",
+ }),
videoApp({
name: "Billboard Ad",
category: "Product",
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 0face13d..c9fe0af5 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -2243,6 +2243,19 @@ const open: ModelDef[] = [
],
},
}),
+ // Photo to 3D: Idol (TripoSplat's architecture, Speridlabs' weights) on core nodes; its splat becomes the GLB (SplatToMesh), with the
+ // .spz and an orbit clip of the splat beside it (docs/research/idol-9.md). Not hosted anywhere: open engine only.
+ o({
+ id: "oss-idol-3d",
+ name: "Idol 3D Mesh",
+ vendor: "Speridlabs",
+ family: "tripo",
+ kind: "model3d",
+ tagline: "A quick 3D model (.glb) of a person or product from one photo, plus an orbit clip · 8 GB GPU · Apache-2.0 · Built with DINOv3",
+ badges: ["new"],
+ routes: [comfy("image-to-3d", "image-to-3d-idol", "BiRefNet cut-out → Idol → mesh from the splat + .spz + a 4 s orbit")],
+ options: { seed: true, maxImages: 1 },
+ }),
// Round 4 (r4/cinema-3d): Cinema Studio's "Create 3D scene". The mesh is in the photo's own camera space
// (glTF axes, metres), so the viewer starts where the photo was taken.
o({
diff --git a/src/lib/catalog/preset-recipe-routes.ts b/src/lib/catalog/preset-recipe-routes.ts
index 073a8811..dc8d1d8b 100644
--- a/src/lib/catalog/preset-recipe-routes.ts
+++ b/src/lib/catalog/preset-recipe-routes.ts
@@ -53,6 +53,7 @@ export type RecipeKind = "h3" | "orbit" | "qwen";
* - Restore Photo: its Restore LoRA keeps every face and the framing, where a plain edit redraws them.
* - Head Swap: the whole head, hair included, comes from its own head LoRA; a plain edit keeps the first hair.
* - Outfit Swap: its Outfit Swap LoRA keeps everything but the clothes in place, where a plain edit moves the picture.
+ * - Photo to 3D: only its own graph makes the GLB, the splat and the orbit clip together.
*/
export const OWN_ROUTE_APPS: ReadonlySet<string> = new Set([
"app-fuobe-angles",
@@ -75,6 +76,7 @@ export const OWN_ROUTE_APPS: ReadonlySet<string> = new Set([
"app-restore-photo",
"app-head-swap",
"app-outfit-swap",
+ "app-photo-to-3d",
]);
/**
diff --git a/src/lib/comfy.ts b/src/lib/comfy.ts
index 2c2f423a..88fd4147 100644
--- a/src/lib/comfy.ts
+++ b/src/lib/comfy.ts
@@ -68,6 +68,7 @@ export interface ManifestOutput {
* window), and a matte graph's "cutout" (transparent video) and "matte" (black and white) videos. A "preview" is the clip shown
* for an EXR export (the frames ride along zipped). A "master" is a lossless copy a later job continues from (Character Swap
* Studio's segment, 16-bit FFV1). A "report" is a node's own account of the run (DBS: model, device, windows, seconds).
+ * An "orbit" is a clip of a splat turning that came with a 3D model (Photo to 3D): the server's mesh turntable never replaces it.
*/
role?:
| "cues"
@@ -78,6 +79,7 @@ export interface ManifestOutput {
| "tiles"
| "first-frame"
| "turntable"
+ | "orbit"
| "lines"
| "frame"
| "frames"
diff --git a/src/lib/output-actions.ts b/src/lib/output-actions.ts
index fe8ef2eb..b51dd5e6 100644
--- a/src/lib/output-actions.ts
+++ b/src/lib/output-actions.ts
@@ -54,6 +54,8 @@ export type OutputActionId =
| "download-vtt"
| "download-all"
| "download-exr"
+ | "download-splat"
+ | "make-3d"
| "favorite"
| "finalize"
| "regenerate"
@@ -151,6 +153,7 @@ export function outputActions(g: Generation, index: number, ctx: ActionContext =
// A picture drawn from a layout (or one fal's MOSS-Image planned itself) reopens as boxes in the Image studio.
if (editableLayout(g, index)) link("edit-layout", "Edit layout", editLayoutHref(g, index));
link("genjutsu", "Animate with Genjutsu", `/genjutsu?mode=motion&image=${q(o.url)}`);
+ link("make-3d", "Make it 3D", `/apps/app-photo-to-3d?image=${q(o.url)}`);
out.push({ id: "save-character", label: "Save as character", placement: "menu" });
break;
case "video": {
@@ -218,10 +221,18 @@ export function outputActions(g: Generation, index: number, ctx: ActionContext =
if (ext !== "vtt") out.push({ id: "download-vtt", label: "Download .vtt", placement: "menu" });
}
break;
- case "model3d":
+ case "model3d": {
if (!ctx.inViewer) out.push({ id: "view-3d", label: "View in 3D", placement: "primary" });
out.push({ ...file, label: `Download .${ext}` }, { id: "favorite", label: g.favorite ? "Unfavorite" : "Favorite", placement: "bar" });
+ // A GLB made from a splat (Photo to 3D): the splat too.
+ const splat = o.meta?.role ? undefined : g.outputs.findIndex((x) => x !== o && x.kind === "model3d" && x.meta?.role === "splat");
+ if (splat !== undefined && splat >= 0) {
+ const s = g.outputs[splat];
+ const splatName = downloadName(g, s, splat);
+ out.push({ id: "download-splat", label: `Download 3D splat (.${extensionOf(s)})`, placement: "menu", href: downloadHref(s.url, splatName), download: splatName });
+ }
break;
+ }
}
// Uploads (the Library's Uploads tab) are files, not generations: hand-offs, download, and a
// delete that first checks nothing uses the file.
@@ -428,12 +439,14 @@ export function textOf(o: Pick<OutputFile, "text" | "meta">): string {
/**
* The outputs a result shows as tiles (and the viewer browses): a 3D model's turntable video is
- * its preview, not a result of its own.
+ * its preview, not a result of its own, and so is a splat beside the GLB made from it.
*/
export function shownOutputs(g: Pick<Generation, "kind" | "outputs">): number[] {
const all = g.outputs.map((_, i) => i);
if (g.kind !== "model3d") return all;
- const own = all.filter((i) => g.outputs[i].kind === "model3d");
+ // A splat that came beside the GLB made from it (Photo to 3D) is one of the GLB's downloads, not a tile of its own.
+ const mesh = g.outputs.some((o) => o.kind === "model3d" && !o.meta?.role);
+ const own = all.filter((i) => g.outputs[i].kind === "model3d" && !(mesh && g.outputs[i].meta?.role === "splat"));
return own.length ? own : all;
}
diff --git a/src/lib/preset-featured.ts b/src/lib/preset-featured.ts
index 8eaa86c6..b533f3eb 100644
--- a/src/lib/preset-featured.ts
+++ b/src/lib/preset-featured.ts
@@ -34,7 +34,7 @@ const ORDER: Record<"app" | "motion" | "effect", string[]> = {
app-3d-figure app-idol app-60s-cafe app-hook-frame app-kick-ad app-graffiti-ad app-volcano-ad app-simlife
app-pixel-game app-brick-cube app-micro-beasts app-paint-app app-social-media-icon app-victory-card app-comic-book
app-glitter-sticker app-mukbang app-roller-coaster app-banana-eating app-sticker-pack app-plushies
- app-meme-generator app-cloud-surf app-game-dump app-japanese-show app-skibidi
+ app-meme-generator app-cloud-surf app-game-dump app-japanese-show app-skibidi app-photo-to-3d
`,
],
motion: [
diff --git a/src/server/model3d-finish.ts b/src/server/model3d-finish.ts
index 1f8503cc..7bd52a94 100644
--- a/src/server/model3d-finish.ts
+++ b/src/server/model3d-finish.ts
@@ -184,6 +184,8 @@ export const ACCOUNT_FINISH_MAX_BYTES = 300 * 2 ** 20;
/** What an account's finished model says of its turntable: none on the server; the 3D page records one in the browser. */
export const ACCOUNT_TURNTABLE = "skipped: record it in your browser";
+/** A job that came with an orbit clip of its splat keeps it as the turntable. */
+export const OWN_ORBIT = "skipped: the job's own orbit clip";
/**
* Step 1 (see the header): the web GLB. Returns the outputs to store: the model output with meta.web and
@@ -229,7 +231,7 @@ export async function finishModel(
if (stats) {
const web = saveFile({ data: await fs.promises.readFile(webFile), contentType: "model/gltf-binary", name: "model-web.glb", source: "derived", generationId });
meta.web = web.url;
- Object.assign(finish, { material: stats.material, triangles: stats.triangles, rawBytes: stats.bytesIn, webBytes: stats.bytesOut, webAsset: web.id, turntable: o.account ? ACCOUNT_TURNTABLE : "queued" });
+ Object.assign(finish, { material: stats.material, triangles: stats.triangles, rawBytes: stats.bytesIn, webBytes: stats.bytesOut, webAsset: web.id, turntable: turntableState(outputs, o.account) });
}
} finally {
await removeDir(tmp);
@@ -238,6 +240,12 @@ export async function finishModel(
return outputs.map((x, j) => (j === i ? { ...mesh, meta: { ...meta, finish } } : x));
}
+/** The turntable step a finished model gets: none when the job brought its own orbit clip (Photo to 3D), none on an account (its browser records one), else queued. */
+export function turntableState(outputs: OutputFile[], account?: string): string {
+ if (outputs.some((x) => x.kind === "video" && x.meta?.role === "orbit")) return OWN_ORBIT;
+ return account ? ACCOUNT_TURNTABLE : "queued";
+}
+
/** Whether this process is finishing that job (either step) right now. */
export function finishing(generationId: string): boolean {
return running().has(generationId);
diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.ts
index 452c730f..fa90889f 100644
--- a/tests/comfy-library-4.test.ts
+++ b/tests/comfy-library-4.test.ts
@@ -64,6 +64,8 @@ const ROLES: NonNullable<ManifestOutput["role"]>[] = [
"report",
// Any Angle: the turntable a photo's front view is measured on (colour, coverage), and a GLB made from a splat.
"sweep", "sweep-mask", "mesh",
+ // Photo to 3D: the orbit clip of the splat that came with its GLB.
+ "orbit",
];
describe("round-4 ComfyUI workflows", () => {
@@ -155,6 +157,8 @@ describe("round-4 ComfyUI workflows", () => {
"video-character-swap-h3-relay",
"video-character-swap-h3-segment",
"video-mask-h3-relay",
+ // Photo to 3D: Idol's graph waits for its first run (no /prompt server was used to build it).
+ "image-to-3d-idol",
// Any Angle's two graphs: run end to end on the GPU, they wait for their /prompt check while that ComfyUI is busy
// rendering (the app stays the owner's until then: src/server/any-angle-live.ts).
"any-angle-3d",
diff --git a/tests/library-pure.test.ts b/tests/library-pure.test.ts
index 1c1f8551..813b0728 100644
--- a/tests/library-pure.test.ts
+++ b/tests/library-pure.test.ts
@@ -79,6 +79,7 @@ describe("outputActions", () => {
"menu:grade",
"menu:layers",
"menu:genjutsu",
+ "menu:make-3d",
"menu:save-character",
"menu:reuse",
"menu:make-skill",
diff --git a/tests/photo-to-3d.test.ts b/tests/photo-to-3d.test.ts
new file mode 100644
index 00000000..88604f18
--- /dev/null
+++ b/tests/photo-to-3d.test.ts
@@ -0,0 +1,238 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, beforeAll, describe, expect, it } from "vitest";
+import type { Generation, OutputFile } from "@/lib/catalog/types";
+
+/**
+ * Photo to 3D (app-photo-to-3d) and Image to 3D's quick model: Idol on core nodes (image-to-3d-idol), its splat made
+ * into a GLB, the splat and an orbit clip beside it; the result's view, tiles and downloads; no server turntable when
+ * the job brought its orbit; the tap-to-turn chips' camera; the app and the Library's "Make it 3D".
+ */
+
+const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-photo3d-"));
+process.env.FUOBE_DATA_DIR = dir;
+process.env.COMFYUI_URL = "http://127.0.0.1:9";
+
+const { setSetting } = await import("@/server/settings");
+const { collectOutputs, getWorkflow, prepareWorkflow } = await import("@/server/providers/comfyui");
+const { getModel, getPreset } = await import("@/lib/catalog");
+const { planGeneration } = await import("@/lib/catalog/plan");
+const { OWN_ROUTE_APPS } = await import("@/lib/catalog/preset-recipe-routes");
+const m3d = await import("@/lib/av/model3d");
+const { outputActions, shownOutputs } = await import("@/lib/output-actions");
+const { turntableState, OWN_ORBIT, ACCOUNT_TURNTABLE } = await import("@/server/model3d-finish");
+
+beforeAll(() => setSetting("demoMode", "auto"));
+// The database file stays open on Windows until the run ends: removing the folder may fail there, which is fine.
+afterAll(() => {
+ try {
+ fs.rmSync(dir, { recursive: true, force: true });
+ } catch {}
+});
+
+const ROOT = path.resolve(__dirname, "..");
+const readJson = (p: string) => JSON.parse(fs.readFileSync(path.join(ROOT, p), "utf8"));
+const manifest = readJson("workflows/comfyui/manifest.json") as { workflows: { id: string; [k: string]: unknown }[] };
+const entry = manifest.workflows.find((w) => w.id === "image-to-3d-idol") as unknown as {
+ capability: string;
+ outputs: { node: string; kind: string; role?: string }[];
+ defaults: Record<string, unknown>;
+ models: { file: string; folder: string; url: string; sizeGb: number }[];
+ customNodes: unknown[];
+ license: string;
+ vramGb: number;
+};
+const graph = readJson("workflows/comfyui/image-to-3d-idol.json") as Record<string, { class_type: string; inputs: Record<string, unknown> }>;
+
+describe("the graph (image-to-3d-idol)", () => {
+ it("is core ComfyUI only, every class known to the recorded object_info", () => {
+ const info = readJson("workflows/comfyui/object_info.subset.json") as Record<string, { python_module: string }>;
+ for (const n of Object.values(graph)) {
+ expect(info[n.class_type], n.class_type).toBeTruthy();
+ expect(info[n.class_type].python_module.startsWith("custom_nodes."), n.class_type).toBe(false);
+ }
+ expect(entry.customNodes).toEqual([]);
+ expect(info.SplatToMesh).toMatchObject({ output: ["MESH"], python_module: "comfy_extras.nodes_gaussian_splat" });
+ });
+
+ it("runs Idol's files at its reference settings and makes the GLB from the splat", () => {
+ expect(graph["88:16"].inputs.unet_name).toBe("idol_fp16.safetensors");
+ expect(graph["88:11"].inputs.vae_name).toBe("idol_decoder_fp16.safetensors");
+ expect(graph["88:6"].inputs).toMatchObject({ steps: 50, cfg: 4, sampler_name: "euler", scheduler: "simple", model: ["88:16", 0] });
+ expect(graph["60"]).toMatchObject({ class_type: "SplatToMesh", inputs: { splat: ["88:55", 0], min_opacity: 0.05 } });
+ expect(graph["61"]).toMatchObject({ class_type: "SaveGLB", inputs: { mesh: ["60", 0] } });
+ // The faint halo stays out of the clip and the still.
+ expect(graph["75"].inputs.opacity_threshold).toBe(0.05);
+ expect(graph["76"].inputs).toMatchObject({ frames: 1, opacity_threshold: 0.05, camera_info: ["80", 0] });
+ // The conditioning reads the photo-crop switch, whose default is Idol's own (synthetic) crop.
+ expect(graph["88:24"].inputs.image).toEqual(["88:104", 0]);
+ expect(graph["88:104"].inputs).toMatchObject({ switch: false, on_false: ["88:2", 0], on_true: ["88:103", 0] });
+ });
+
+ it("declares the GLB first, then the splat, the orbit and the still; pins the new files; names its licences", () => {
+ expect(entry.capability).toBe("image-to-3d");
+ expect(entry.outputs).toEqual([
+ { node: "61", kind: "model3d" },
+ { node: "51", kind: "model3d", role: "splat" },
+ { node: "42", kind: "video", role: "orbit" },
+ { node: "77", kind: "image" },
+ ]);
+ expect(entry.defaults).toMatchObject({ steps: 50, cfg: 4, numGaussians: 262144, orbitFrames: 96, meshDetail: 384, frontYaw: 0, cutout: true, photoCrop: false, splatFormat: "spz" });
+ expect(entry.models.map((m) => m.file).sort()).toEqual(
+ ["birefnet.safetensors", "dino_v3_vit_h.safetensors", "flux2-vae.safetensors", "idol_decoder_fp16.safetensors", "idol_fp16.safetensors"].sort(),
+ );
+ for (const m of entry.models.filter((x) => x.file.startsWith("idol_"))) expect(m.url).toMatch(/^https:\/\/huggingface\.co\/nynxz\/Idol\/resolve\/c718f2b1b95b353edd07d17e845719fc10880a44\//);
+ const pins = readJson("workflows/comfyui/model-pins.json") as Record<string, { sha256: string; sizeBytes: number }>;
+ const pinned = Object.entries(pins).filter(([u]) => u.includes("/nynxz/Idol/"));
+ expect(pinned.map(([, p]) => [p.sizeBytes, p.sha256]).sort()).toEqual([
+ [576148658, "c511d99eb668ec4b06d883cb6e43770bc35e3864e16e7058e8d6211ba5c509aa"],
+ [741107210, "cf452146f78e23a0d34be8f9f79bcde642b9a40ef493046c8e9d5f79096f6dd0"],
+ ]);
+ expect(entry.license).toMatch(/^Apache-2\.0/);
+ expect(entry.license).toMatch(/Built with DINOv3/);
+ const req = readJson("workflows/comfyui/requirements.json") as { workflows: Record<string, { core: string[]; packs: Record<string, unknown>; files: string[] }> };
+ expect(req.workflows["image-to-3d-idol"].packs).toEqual({});
+ expect(req.workflows["image-to-3d-idol"].core).toContain("SplatToMesh");
+ expect(req.workflows["image-to-3d-idol"].files).toContain("diffusion_models/idol_fp16.safetensors");
+ });
+
+ it("binds the photo and the settings a request sends", async () => {
+ const { workflow } = await prepareWorkflow(
+ "image-to-3d-idol",
+ { prompt: "", images: ["p.png"], seed: 7, extra: { photoCrop: true, meshDetail: 256, frontYaw: 90 } },
+ { generationId: "gen-i3", op: "image-to-3d", upload: async () => "x" },
+ );
+ expect(workflow["99"].inputs.image).toBe("p.png");
+ expect(workflow["88:104"].inputs.switch).toBe(true);
+ expect(workflow["60"].inputs.resolution).toBe(256);
+ expect(workflow["79"].inputs["mode.yaw"]).toBe(90);
+ expect(workflow["80"].inputs["mode.yaw"]).toBe(90);
+ expect(workflow["88:6"].inputs.seed).toBe(7);
+ expect(workflow["88:55"].inputs.seed).toBe(7);
+ });
+
+ it("collects the GLB, the splat with its format, the orbit and the still", () => {
+ const file = (filename: string) => ({ filename, subfolder: "fuobe", type: "output" });
+ const outs = collectOutputs(
+ {
+ status: { status_str: "success", completed: true },
+ outputs: {
+ "77": { images: [file("a_00001_.png")] },
+ "42": { images: [file("a_00001_.mp4")], animated: [true] },
+ "51": { "3d": [file("a_00001_.spz")] },
+ "61": { "3d": [file("a_00002_.glb")] },
+ },
+ },
+ getWorkflow("image-to-3d-idol").manifest,
+ );
+ expect(outs.map((o) => [o.kind, o.meta])).toEqual([
+ ["model3d", undefined],
+ ["model3d", { role: "splat", format: "spz" }],
+ ["video", { role: "orbit" }],
+ ["image", undefined],
+ ]);
+ });
+});
+
+describe("the model and the app", () => {
+ it("Idol 3D runs the graph on the open engine only, and Image to 3D offers it after Pixal3D and TRELLIS.2", () => {
+ const m = getModel("oss-idol-3d")!;
+ expect(m).toMatchObject({ engine: "open", kind: "model3d" });
+ expect(m.routes).toEqual([expect.objectContaining({ op: "image-to-3d", provider: "comfyui", endpoint: "image-to-3d-idol" })]);
+ expect(m3d.MODELS_3D.image.open.map((c) => c.id)).toEqual(["oss-pixal3d", "oss-trellis2", "oss-idol-3d", "oss-hunyuan3d-21"]);
+ expect(m3d.model3dFor("image", "open")).toBe("oss-pixal3d");
+ expect(m3d.modeOf("oss-idol-3d")).toEqual({ mode: "image", engine: "open" });
+ });
+
+ it("Photo to 3D: one photo, no words, no cloud route, its own route kept", () => {
+ const p = getPreset("app-photo-to-3d")!;
+ expect(p).toMatchObject({ type: "app", name: "Photo to 3D", category: "Product", userPrompt: "none", cloud: null });
+ expect(p.open).toMatchObject({ modelId: "oss-idol-3d", op: "image-to-3d" });
+ expect(p.inputs).toEqual([expect.objectContaining({ key: "image", accept: "image", required: true })]);
+ expect(OWN_ROUTE_APPS.has("app-photo-to-3d")).toBe(true);
+ const plan = planGeneration({ feature: "app:app-photo-to-3d", presetId: p.id, modelId: "oss-idol-3d", op: "image-to-3d", inputs: { images: ["/api/files/p.png"] } }, getModel, getPreset);
+ expect(plan.model.id).toBe("oss-idol-3d");
+ });
+
+ it("says nothing of models, splats or files in the app's own words", () => {
+ const p = getPreset("app-photo-to-3d")!;
+ const words = [p.name, p.description, p.parity ?? "", ...p.inputs.flatMap((s) => [s.label, s.hint ?? ""])].join(" ");
+ expect(words).not.toMatch(/idol|tripo|splat|gaussian|comfy|lora|safetensors|dino/i);
+ });
+});
+
+const gen = (outputs: OutputFile[]): Generation =>
+ ({
+ id: "gen123456",
+ kind: "model3d",
+ status: "succeeded",
+ op: "image-to-3d",
+ modelId: "oss-idol-3d",
+ modelName: "Idol 3D",
+ feature: "app:app-photo-to-3d",
+ favorite: false,
+ request: { feature: "app:app-photo-to-3d", modelId: "oss-idol-3d", op: "image-to-3d", inputs: { images: ["/api/files/p.png"] } },
+ outputs,
+ }) as unknown as Generation;
+
+const idolOutputs: OutputFile[] = [
+ { url: "/api/files/m.glb", kind: "model3d", contentType: "model/gltf-binary", meta: { web: "/api/files/m-web.glb" } },
+ { url: "/api/files/s.spz", kind: "model3d", contentType: "model/x-spz", meta: { role: "splat", format: "spz" } },
+ { url: "/api/files/o.mp4", kind: "video", meta: { role: "orbit" } },
+ { url: "/api/files/p.png", kind: "image" },
+];
+
+describe("the result", () => {
+ it("shows the GLB, with the splat as a download and the orbit as its turntable", () => {
+ const v = m3d.model3dView(gen(idolOutputs));
+ expect(v).toMatchObject({ glb: "/api/files/m.glb", web: "/api/files/m-web.glb", turntable: "/api/files/o.mp4", poster: "/api/files/p.png" });
+ expect(v.splat).toBeUndefined();
+ expect(v.formats).toEqual({ splat: "/api/files/s.spz" });
+ });
+
+ it("is one tile (the GLB), whose menu also downloads the splat", () => {
+ const g = gen(idolOutputs);
+ expect(shownOutputs(g)).toEqual([0]);
+ const acts = outputActions(g, 0);
+ expect(acts.find((a) => a.id === "download")?.label).toBe("Download .glb");
+ expect(acts.find((a) => a.id === "download-splat")).toMatchObject({ label: "Download 3D splat (.spz)", placement: "menu" });
+ expect(acts.find((a) => a.id === "download-splat")?.href).toMatch(/^\/api\/files\/s\.spz\?download=.+\.spz$/);
+ });
+
+ it("leaves a splat-only result (TripoSplat) as it was", () => {
+ const g = gen([{ url: "/api/files/s.spz", kind: "model3d", meta: { role: "splat", format: "spz" } }, { url: "/api/files/t.mp4", kind: "video", meta: { role: "turntable" } }]);
+ expect(shownOutputs(g)).toEqual([0]);
+ expect(outputActions(g, 0).some((a) => a.id === "download-splat")).toBe(false);
+ expect(m3d.model3dView(g).splat).toEqual({ url: "/api/files/s.spz", format: "spz" });
+ });
+
+ it("gets no server turntable when the job brought its orbit", () => {
+ expect(turntableState(idolOutputs)).toBe(OWN_ORBIT);
+ expect(turntableState(idolOutputs, "acct")).toBe(OWN_ORBIT);
+ expect(turntableState([idolOutputs[0]])).toBe("queued");
+ expect(turntableState([idolOutputs[0]], "acct")).toBe(ACCOUNT_TURNTABLE);
+ });
+
+ it("puts 'Make it 3D' on a picture's menu", () => {
+ const g = { ...gen([{ url: "/api/files/look.png", kind: "image" }]), kind: "image", op: "t2i", provider: "comfyui" } as unknown as Generation;
+ expect(outputActions(g, 0).find((a) => a.id === "make-3d")).toMatchObject({ label: "Make it 3D", href: "/apps/app-photo-to-3d?image=%2Fapi%2Ffiles%2Flook.png", placement: "menu" });
+ });
+});
+
+describe("turn with taps", () => {
+ it("has the five views and Left side is the subject's own left (camera on +X)", () => {
+ expect(m3d.TURN_VIEWS.map((v) => v.label)).toEqual(["Front", "Left side", "Back", "Right side", "From above"]);
+ expect(m3d.turnOrbit("front")).toBe("0deg 75deg 130%");
+ expect(m3d.turnOrbit("left")).toBe("90deg 75deg 130%");
+ expect(m3d.turnOrbit("back")).toBe("180deg 75deg 130%");
+ expect(m3d.turnOrbit("right")).toBe("270deg 75deg 130%");
+ expect(m3d.turnOrbit("above")).toBe("25deg 35deg 130%");
+ });
+
+ it("adds the model's front and keeps the angle in 0-359", () => {
+ expect(m3d.turnOrbit("right", 180)).toBe("90deg 75deg 130%");
+ expect(m3d.turnOrbit("front", -90)).toBe("270deg 75deg 130%");
+ expect(m3d.FRONT_YAW["oss-idol-3d"]).toBe(0);
+ });
+});
diff --git a/tests/preset-recipes.test.ts b/tests/preset-recipes.test.ts
index 952bfe29..5453467c 100644
--- a/tests/preset-recipes.test.ts
+++ b/tests/preset-recipes.test.ts
@@ -67,7 +67,7 @@ describe("which presets get a recipe", () => {
// Graded presets whose clip was graded afterwards and that have no recipe in the book.
const gradesWithoutRecipe = [...MOTIONS, ...EFFECTS].filter((x) => x.grade && !recipeKind(x));
expect(new Set(none.map((x) => x.id))).toEqual(new Set([...gradesWithoutRecipe.map((x) => x.id), ...OWN_ROUTE_APPS]));
- expect(none).toHaveLength(33);
+ expect(none).toHaveLength(34);
for (const x of none) for (const engine of ["open", "cloud"] as const) expect(presetRecipe(x, engine, inCatalog), x.id).toBeUndefined();
});
diff --git a/workflows/comfyui/image-to-3d-idol.json b/workflows/comfyui/image-to-3d-idol.json
new file mode 100644
index 00000000..f157d876
--- /dev/null
+++ b/workflows/comfyui/image-to-3d-idol.json
@@ -0,0 +1,443 @@
+{
+ "41": {
+ "inputs": {
+ "fps": 24,
+ "bit_depth": "auto",
+ "color_space": "sRGB",
+ "codec": "h264",
+ "images": [
+ "75",
+ 0
+ ]
+ },
+ "class_type": "CreateVideo",
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "42": {
+ "inputs": {
+ "filename_prefix": "fuobe/image-to-3d-idol",
+ "format": "auto",
+ "format.codec": "auto",
+ "codec": "auto",
+ "video": [
+ "41",
+ 0
+ ]
+ },
+ "class_type": "SaveVideo",
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "51": {
+ "inputs": {
+ "filename_prefix": "fuobe/image-to-3d-idol",
+ "mesh": [
+ "92",
+ 0
+ ]
+ },
+ "class_type": "SaveGLB",
+ "_meta": {
+ "title": "Save 3D Model"
+ }
+ },
+ "60": {
+ "inputs": {
+ "resolution": 384,
+ "kernel": 5,
+ "smooth": 0,
+ "level": 0.4,
+ "min_component": 500,
+ "min_opacity": 0.05,
+ "color_sharpen": 2,
+ "splat": [
+ "88:55",
+ 0
+ ]
+ },
+ "class_type": "SplatToMesh",
+ "_meta": {
+ "title": "Extract Mesh from Splat"
+ }
+ },
+ "61": {
+ "inputs": {
+ "filename_prefix": "fuobe/image-to-3d-idol",
+ "mesh": [
+ "60",
+ 0
+ ]
+ },
+ "class_type": "SaveGLB",
+ "_meta": {
+ "title": "Save 3D Model"
+ }
+ },
+ "75": {
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "frames": 96,
+ "splat_scale": 1,
+ "sharpen": 2,
+ "headlight_shading": 0,
+ "opacity_threshold": 0.05,
+ "render_style": "color",
+ "background": "#ece4da",
+ "splat": [
+ "88:55",
+ 0
+ ],
+ "camera_info": [
+ "79",
+ 0
+ ]
+ },
+ "class_type": "RenderSplat",
+ "_meta": {
+ "title": "Render Splat"
+ }
+ },
+ "76": {
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "frames": 1,
+ "splat_scale": 1,
+ "sharpen": 2,
+ "headlight_shading": 0,
+ "opacity_threshold": 0.05,
+ "render_style": "color",
+ "background": "#ece4da",
+ "splat": [
+ "88:55",
+ 0
+ ],
+ "camera_info": [
+ "80",
+ 0
+ ]
+ },
+ "class_type": "RenderSplat",
+ "_meta": {
+ "title": "Render Splat (front still)"
+ }
+ },
+ "77": {
+ "inputs": {
+ "filename_prefix": "fuobe/image-to-3d-idol",
+ "images": [
+ "76",
+ 0
+ ]
+ },
+ "class_type": "SaveImage",
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "79": {
+ "inputs": {
+ "mode": "orbit",
+ "mode.yaw": 0,
+ "mode.pitch": 10,
+ "mode.distance": 2.6,
+ "target_x": 0,
+ "target_y": 0,
+ "target_z": 0,
+ "roll": 0,
+ "fov": 35,
+ "zoom": 1,
+ "camera_type": "perspective"
+ },
+ "class_type": "CreateCameraInfo",
+ "_meta": {
+ "title": "Create Camera Info"
+ }
+ },
+ "80": {
+ "inputs": {
+ "mode": "orbit",
+ "mode.yaw": 0,
+ "mode.pitch": 5,
+ "mode.distance": 2.4,
+ "target_x": 0,
+ "target_y": 0,
+ "target_z": 0,
+ "roll": 0,
+ "fov": 35,
+ "zoom": 1,
+ "camera_type": "perspective"
+ },
+ "class_type": "CreateCameraInfo",
+ "_meta": {
+ "title": "Create Camera Info (front still)"
+ }
+ },
+ "92": {
+ "inputs": {
+ "format": "spz",
+ "splat": [
+ "88:55",
+ 0
+ ]
+ },
+ "class_type": "SplatToFile3D",
+ "_meta": {
+ "title": "Create 3D File (from Splat)"
+ }
+ },
+ "99": {
+ "inputs": {
+ "image": "subject.png"
+ },
+ "class_type": "LoadImage",
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "88:2": {
+ "inputs": {
+ "erode_radius": 1,
+ "size": 1024,
+ "image": [
+ "99",
+ 0
+ ],
+ "mask": [
+ "88:35",
+ 0
+ ]
+ },
+ "class_type": "TripoSplatPreprocessImage",
+ "_meta": {
+ "title": "TripoSplat Preprocess Image"
+ }
+ },
+ "88:6": {
+ "inputs": {
+ "seed": 46,
+ "steps": 50,
+ "cfg": 4,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1,
+ "model": [
+ "88:16",
+ 0
+ ],
+ "positive": [
+ "88:24",
+ 0
+ ],
+ "negative": [
+ "88:24",
+ 1
+ ],
+ "latent_image": [
+ "88:24",
+ 2
+ ]
+ },
+ "class_type": "KSampler",
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "88:7": {
+ "inputs": {
+ "clip_name": "dino_v3_vit_h.safetensors"
+ },
+ "class_type": "CLIPVisionLoader",
+ "_meta": {
+ "title": "Load CLIP Vision"
+ }
+ },
+ "88:8": {
+ "inputs": {
+ "vae_name": "flux2-vae.safetensors"
+ },
+ "class_type": "VAELoader",
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "88:11": {
+ "inputs": {
+ "vae_name": "idol_decoder_fp16.safetensors"
+ },
+ "class_type": "VAELoader",
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "88:16": {
+ "inputs": {
+ "unet_name": "idol_fp16.safetensors",
+ "weight_dtype": "default"
+ },
+ "class_type": "UNETLoader",
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "88:24": {
+ "inputs": {
+ "clip_vision": [
+ "88:7",
+ 0
+ ],
+ "vae": [
+ "88:8",
+ 0
+ ],
+ "image": [
+ "88:104",
+ 0
+ ]
+ },
+ "class_type": "TripoSplatConditioning",
+ "_meta": {
+ "title": "TripoSplat Conditioning"
+ }
+ },
+ "88:35": {
+ "inputs": {
+ "switch": true,
+ "on_false": [
+ "88:95",
+ 0
+ ],
+ "on_true": [
+ "88:85:81",
+ 0
+ ]
+ },
+ "class_type": "ComfySwitchNode",
+ "_meta": {
+ "title": "Switch: Mask Source"
+ }
+ },
+ "88:55": {
+ "inputs": {
+ "num_gaussians": 262144,
+ "seed": 46,
+ "samples": [
+ "88:6",
+ 0
+ ],
+ "vae": [
+ "88:11",
+ 0
+ ]
+ },
+ "class_type": "VAEDecodeTripoSplat",
+ "_meta": {
+ "title": "TripoSplat Decode"
+ }
+ },
+ "88:85:81": {
+ "inputs": {
+ "bg_removal_model": [
+ "88:85:82",
+ 0
+ ],
+ "image": [
+ "99",
+ 0
+ ]
+ },
+ "class_type": "RemoveBackground",
+ "_meta": {
+ "title": "Remove Background"
+ }
+ },
+ "88:85:82": {
+ "inputs": {
+ "bg_removal_name": "birefnet.safetensors"
+ },
+ "class_type": "LoadBackgroundRemovalModel",
+ "_meta": {
+ "title": "Load Background Removal Model"
+ }
+ },
+ "88:95": {
+ "inputs": {
+ "mask": [
+ "99",
+ 1
+ ]
+ },
+ "class_type": "InvertMask",
+ "_meta": {
+ "title": "Invert Mask"
+ }
+ },
+ "88:101": {
+ "inputs": {
+ "upscale_method": "lanczos",
+ "width": 720,
+ "height": 720,
+ "crop": "disabled",
+ "image": [
+ "88:2",
+ 0
+ ]
+ },
+ "class_type": "ImageScale",
+ "_meta": {
+ "title": "Photo crop: shrink"
+ }
+ },
+ "88:102": {
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "batch_size": 1,
+ "color": 0
+ },
+ "class_type": "EmptyImage",
+ "_meta": {
+ "title": "Photo crop: black square"
+ }
+ },
+ "88:103": {
+ "inputs": {
+ "x": 152,
+ "y": 152,
+ "resize_source": false,
+ "destination": [
+ "88:102",
+ 0
+ ],
+ "source": [
+ "88:101",
+ 0
+ ]
+ },
+ "class_type": "ImageCompositeMasked",
+ "_meta": {
+ "title": "Photo crop: centre"
+ }
+ },
+ "88:104": {
+ "inputs": {
+ "switch": false,
+ "on_false": [
+ "88:2",
+ 0
+ ],
+ "on_true": [
+ "88:103",
+ 0
+ ]
+ },
+ "class_type": "ComfySwitchNode",
+ "_meta": {
+ "title": "Switch: Photo Crop"
+ }
+ }
+}
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index cc78a4c7..a360bdb2 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -23216,6 +23216,184 @@
"validated": true,
"notes": "Subject or product splat (3D Angles, 3D Jutsu props, a splat alternative to TRELLIS.2 spins). The official template 3d_triposplat_image_to_gaussian_splat (2026-06-02) with the UI-only live-preview patch removed and a 75-frame H.264 orbit (RenderSplat + CreateCameraInfo orbit yaw 35, pitch 30, distance 2.5; role turntable, 25 fps). Subject only: BiRefNet cuts it out first (cutout false = use the image's own alpha). Output 1 (role splat): splatFormat spz (Niantic, gzip, ~10x smaller, base colour), ply (full spherical harmonics) or ksplat, saved by SaveGLB under that extension. ComfyUI serves all three as application/octet-stream, so Fuobe goes by the extension: spz and ply are saved as 3D models (model/x-spz, model/ply), ksplat as a .bin file, and each output records its format. cutout is true by default (manifest defaults). numGaussians up to 1,048,576 (262,144 by default); seed drives both the sampler and the decoder. RenderSplat also takes a look_at camera, so a view picked in the browser can be rendered on the server. 3.78 GB of weights (TripoSplat 0.74, DINOv3 ViT-H 1.68, TripoSplat VAE decoder 0.58, FLUX.2 VAE 0.34, BiRefNet 0.44)."
},
+ {
+ "id": "image-to-3d-idol",
+ "title": "Image to a 3D model (.glb) + its Gaussian splat + an orbit video (Idol on core TripoSplat nodes, SplatToMesh)",
+ "capability": "image-to-3d",
+ "file": "image-to-3d-idol.json",
+ "source": "hand-built (scripts/comfy/hand-built/image-to-3d-idol.json)",
+ "bindings": {
+ "image": [
+ {
+ "node": "99",
+ "input": "image"
+ }
+ ],
+ "cutout": [
+ {
+ "node": "88:35",
+ "input": "switch"
+ }
+ ],
+ "photoCrop": [
+ {
+ "node": "88:104",
+ "input": "switch"
+ }
+ ],
+ "seed": [
+ {
+ "node": "88:6",
+ "input": "seed"
+ },
+ {
+ "node": "88:55",
+ "input": "seed"
+ }
+ ],
+ "steps": [
+ {
+ "node": "88:6",
+ "input": "steps"
+ }
+ ],
+ "cfg": [
+ {
+ "node": "88:6",
+ "input": "cfg"
+ }
+ ],
+ "sampler": [
+ {
+ "node": "88:6",
+ "input": "sampler_name"
+ }
+ ],
+ "numGaussians": [
+ {
+ "node": "88:55",
+ "input": "num_gaussians"
+ }
+ ],
+ "splatFormat": [
+ {
+ "node": "92",
+ "input": "format"
+ }
+ ],
+ "orbitFrames": [
+ {
+ "node": "75",
+ "input": "frames"
+ }
+ ],
+ "meshDetail": [
+ {
+ "node": "60",
+ "input": "resolution"
+ }
+ ],
+ "frontYaw": [
+ {
+ "node": "79",
+ "input": "mode.yaw"
+ },
+ {
+ "node": "80",
+ "input": "mode.yaw"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "61",
+ "input": "filename_prefix"
+ },
+ {
+ "node": "51",
+ "input": "filename_prefix"
+ },
+ {
+ "node": "42",
+ "input": "filename_prefix"
+ },
+ {
+ "node": "77",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "61",
+ "kind": "model3d"
+ },
+ {
+ "node": "51",
+ "kind": "model3d",
+ "role": "splat"
+ },
+ {
+ "node": "42",
+ "kind": "video",
+ "role": "orbit"
+ },
+ {
+ "node": "77",
+ "kind": "image"
+ }
+ ],
+ "defaults": {
+ "steps": 50,
+ "cfg": 4,
+ "numGaussians": 262144,
+ "orbitFrames": 96,
+ "meshDetail": 384,
+ "frontYaw": 0,
+ "splatFormat": "spz",
+ "cutout": true,
+ "photoCrop": false
+ },
+ "limits": {
+ "maxGaussians": 1048576
+ },
+ "models": [
+ {
+ "file": "dino_v3_vit_h.safetensors",
+ "folder": "clip_vision",
+ "url": "https://huggingface.co/VAST-AI/TripoSplat/resolve/main/clip_vision/dino_v3_vit_h.safetensors",
+ "sizeGb": 1.68
+ },
+ {
+ "file": "flux2-vae.safetensors",
+ "folder": "vae",
+ "url": "https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors",
+ "sizeGb": 0.34
+ },
+ {
+ "file": "idol_decoder_fp16.safetensors",
+ "folder": "vae",
+ "url": "https://huggingface.co/nynxz/Idol/resolve/c718f2b1b95b353edd07d17e845719fc10880a44/vae/idol_decoder_fp16.safetensors",
+ "sizeGb": 0.58
+ },
+ {
+ "file": "idol_fp16.safetensors",
+ "folder": "diffusion_models",
+ "url": "https://huggingface.co/nynxz/Idol/resolve/c718f2b1b95b353edd07d17e845719fc10880a44/diffusion_models/idol_fp16.safetensors",
+ "sizeGb": 0.74
+ },
+ {
+ "file": "birefnet.safetensors",
+ "folder": "background_removal",
+ "url": "https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors",
+ "sizeGb": 0.44
+ }
+ ],
+ "customNodes": [],
+ "vramGb": 10,
+ "license": "Apache-2.0 (speridlabs/Idol weights, via nynxz/Idol; built on TripoSplat, MIT, VAST-AI-Research); the dino_v3_vit_h image encoder is under the DINOv3 License (royalty-free, commercial use allowed, trade-control limits; the app must show a \"Built with DINOv3\" notice); FLUX.2 VAE Apache-2.0; BiRefNet MIT",
+ "validated": false,
+ "notes": "One photo of one person or product -> a vertex-coloured GLB (main output, no role: the server makes its web GLB), the splat (role splat, .spz), a 4 s orbit of the splat (role orbit: the server skips its mesh turntable) and a front still (the poster). image-to-splat-triposplat with Idol's files and reference sampler (50 euler steps, cfg 4; the shift 3 is built into the TripoSplat model class). BiRefNet cut-out (cutout false = the image's own alpha), then TripoSplatPreprocessImage = Idol's \"synthetic\" 1.2 crop; photoCrop true scales it to 720 px on a black 1024 square, about Idol's \"real\" 1.7 crop (core nodes, not run). SplatToMesh (meshDetail = its grid, 384 by default; min_opacity 0.05 drops Idol's faint halo, which RenderSplat's opacity_threshold 0.05 also hides in the clip and still; the .spz keeps it: no core node prunes a splat). frontYaw turns the orbit's start and the still to the subject's front (calibrated on the GPU). Backdrop #ece4da, the middle of the server turntable's studio sweep. New weights 1.32 GB (idol_fp16 0.74, idol_decoder_fp16 0.58); with TripoSplat's shared DINOv3 ViT-H, FLUX.2 VAE and BiRefNet 3.78 GB. VRAM unmeasured (vendor peak 7.2 GB for Idol, plus the mesh grid). Not validated: no /prompt server was used."
+ },
{
"id": "image-to-splat-idol",
"title": "Image to a Gaussian splat of one object (Idol on the TripoSplat core nodes) + an orbit video",
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index 25ac5e4f..a3ecdd10 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,6 +1,6 @@
{
"v": 1,
- "hash": "f24f67acf9d0b55c777e7cf2b90d9597810e5584a1d61641ed1dfb57929706b5",
+ "hash": "bea863e8579dc48de72504686fca13fb1e01b6e08bfb455dd14270b26be714fd",
"comfyui": {"min":"0.42.0","testedCommit":"5841c187"},
"folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","text_encoders","thinksound","upscale_models","vae"],
"sentinels": ["AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3AdvancedSwapPlan","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FaceMaskSAM","H3FaceStitch","H3FaceTrackCrop","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3RoleMask","H3SLAAttention","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageDetailContrast","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","Metric3D-NormalMapPreprocessor","MiniMaxH3ChainAssemble","MiniMaxH3ChainContext","MiniMaxH3ChainCurrent","MiniMaxH3ChainLoopEnd","MiniMaxH3ChainLoopStart","MiniMaxH3ChainPlanModern","MiniMaxH3ChainReview","MiniMaxH3ChainSegmentSave","MiniMaxH3ContexMaskedTarget","MiniMaxH3FantasticVideoEditLatent","MiniMaxH3GenerationProfile","MiniMaxH3LoopTrim","MiniMaxH3SourceTimeline","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","Orion4D_FXMax_DCTLToneMapper","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SAMLoader","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VRAM_Debug","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
@@ -319,6 +319,7 @@
"image-face-mosaic-sam3": {"core":["CLIPTextEncode","CheckpointLoaderSimple","GetImageSize","GrowMask","ImageCompositeMasked","ImageScale","ImageScaleBy","LoadImage","SAM3_Detect","SaveImage"],"packs":{},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors"],"optional":[],"vramGb":4,"isolated":false,"firstRun":[],"validated":true},
"image-from-picture-prepare": {"core":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","ImageBatch","ImageFromBatch","ImageScale","ImageScaleToMaxDimension","KSampler","LoadImage","PrimitiveStringMultiline","ReferenceMultiLatent","SaveImage","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ComfyUI-VideoHelperSuite":["VHS_LoadVideo"]},"files":["diffusion_models/flux3-image-klein-int8-convrot.safetensors","text_encoders/qwen3.5_9b_flux3_prompt_upsampler_int8_convrot.safetensors","text_encoders/qwen3vl_4b_int8_convrot.safetensors","vae/flux2-vae.safetensors"],"optional":[],"vramGb":16,"isolated":false,"firstRun":[]},
"image-to-3d-hunyuan3d-21": {"core":["CLIPVisionEncode","EmptyLatentHunyuan3Dv2","Hunyuan3Dv2Conditioning","ImageOnlyCheckpointLoader","KSampler","LoadImage","ModelSamplingAuraFlow","SaveGLB","VAEDecodeHunyuan3D","VoxelToMesh"],"packs":{},"files":["checkpoints/hunyuan_3d_v2.1.safetensors"],"optional":[],"vramGb":10,"isolated":false,"firstRun":[],"validated":true},
+ "image-to-3d-idol": {"core":["CLIPVisionLoader","ComfySwitchNode","CreateCameraInfo","CreateVideo","EmptyImage","ImageCompositeMasked","ImageScale","InvertMask","KSampler","LoadBackgroundRemovalModel","LoadImage","RemoveBackground","RenderSplat","SaveGLB","SaveImage","SaveVideo","SplatToFile3D","SplatToMesh","TripoSplatConditioning","TripoSplatPreprocessImage","UNETLoader","VAEDecodeTripoSplat","VAELoader"],"packs":{},"files":["background_removal/birefnet.safetensors","clip_vision/dino_v3_vit_h.safetensors","diffusion_models/idol_fp16.safetensors","vae/flux2-vae.safetensors","vae/idol_decoder_fp16.safetensors"],"optional":[],"vramGb":10,"isolated":false,"firstRun":[]},
"image-to-3d-pixal3d": {"core":["ApplyTextureToMesh","BakeAmbientOcclusion","BakeNormalMapFromMesh","BakeTextureFromVoxel","CFGOverride","CLIPVisionLoader","DecimateMesh","EmptyTrellis2LatentStructure","GetMeshInfo","ImageCropToMask","KSampler","LoadBackgroundRemovalModel","LoadImage","LoadMoGeModel","MeshSmoothNormals","MeshToFile3D","MoGeGeometryToFOV","MoGeInference","ModelSamplingSD3","Pixal3DConditioning","PrimitiveInt","RemeshMesh","RemoveBackground","RescaleCFG","Save3DAdvanced","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","UNETLoader","UnwrapMesh","VAELoader","VaeDecodeShapeTrellis","VaeDecodeStructureTrellis2","VaeDecodeTextureTrellis"],"packs":{},"files":["background_removal/birefnet.safetensors","clip_vision/dino_v3_L_naf_fp32.safetensors","diffusion_models/pixal3d_int8_convrot.safetensors","geometry_estimation/moge_2_vitl_normal_fp16.safetensors","vae/trellis_2_shape_vae_bf16.safetensors","vae/trellis_2_texture_vae_bf16.safetensors"],"optional":[],"vramGb":16,"isolated":false,"firstRun":[],"validated":true},
"image-to-3d-trellis2": {"core":["ApplyTextureToMesh","BakeAmbientOcclusion","BakeNormalMapFromMesh","BakeTextureFromVoxel","CFGOverride","CLIPVisionLoader","DecimateMesh","EmptyTrellis2LatentStructure","GetMeshInfo","ImageCropToMask","KSampler","LoadBackgroundRemovalModel","LoadImage","MeshSmoothNormals","MeshToFile3D","ModelSamplingSD3","PrimitiveInt","RemeshMesh","RemoveBackground","RescaleCFG","Save3DAdvanced","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","UNETLoader","UnwrapMesh","VAELoader","VaeDecodeShapeTrellis","VaeDecodeStructureTrellis2","VaeDecodeTextureTrellis"],"packs":{},"files":["background_removal/birefnet.safetensors","clip_vision/dino_v3_L_naf_fp32.safetensors","diffusion_models/trellis_2_int8_convrot.safetensors","vae/trellis_2_shape_vae_bf16.safetensors","vae/trellis_2_texture_vae_bf16.safetensors"],"optional":[],"vramGb":16,"isolated":false,"firstRun":[],"validated":true},
"image-to-3d-trellis2-multiview": {"core":["ApplyTextureToMesh","BakeAmbientOcclusion","BakeNormalMapFromMesh","BakeTextureFromVoxel","BatchImagesNode","CFGOverride","CLIPVisionLoader","CreateVideo","DecimateMesh","EmptyTrellis2LatentStructure","GetMeshInfo","ImageCropToMask","KSampler","LoadBackgroundRemovalModel","LoadImage","LoadMoGeModel","MeshSmoothNormals","MeshToFile3D","MoGeGeometryToFOV","MoGeInference","ModelSamplingSD3","Pixal3DMultiViewConditioning","PrimitiveInt","RemeshMesh","RemoveBackground","RenderMesh","RescaleCFG","RotateMesh","Save3DAdvanced","SaveVideo","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","UNETLoader","UnwrapMesh","VAELoader","VaeDecodeShapeTrellis","VaeDecodeStructureTrellis2","VaeDecodeTextureTrellis"],"packs":{},"files":["background_removal/birefnet.safetensors","clip_vision/dino_v3_L_naf_fp32.safetensors","diffusion_models/pixal3d_multiview_int8_convrot.safetensors","geometry_estimation/moge_2_vitl_normal_fp16.safetensors","vae/trellis_2_shape_vae_bf16.safetensors","vae/trellis_2_texture_vae_bf16.safetensors"],"optional":[],"vramGb":16,"isolated":false,"firstRun":[],"validated":true},