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.

ComfyUI: multi-view TRELLIS.2 measures the photos' field of view with MoGe

Claude0b83dda1f4cc
diff --git a/scripts/comfy/README.md b/scripts/comfy/README.md
index c6a1ed01..8a682916 100644
--- a/scripts/comfy/README.md
+++ b/scripts/comfy/README.md
@@ -270,11 +270,17 @@ node validate-workflows.mjs image-to-3d-trellis2-multiview image-to-3d-trellis2
| id | capability | what | ran for real here |
|---|---|---|---|
-| `image-to-3d-trellis2-multiview` | image-to-3d | One upload per side (image = front, image2 = left, image3 = back, image4 = right) → BiRefNet cut-out and crop per side → `Pixal3DMultiViewConditioning` (a fixed orbit rig) → TRELLIS.2 stages on `pixal3d_multiview_int8_convrot` (5.58 GB, MIT) → PBR GLB + the single-view graph's 36-view turntable | no (GPU); /prompt only |
+| `image-to-3d-trellis2-multiview` | image-to-3d | One upload per side (image = front, image2 = left, image3 = back, image4 = right) → BiRefNet cut-out and crop per side → `Pixal3DMultiViewConditioning` (a fixed orbit rig; its field of view measured on the front crop by MoGe 2) → TRELLIS.2 stages on `pixal3d_multiview_int8_convrot` (5.58 GB, MIT) → PBR GLB + the single-view graph's 36-view turntable | no (GPU); /prompt only (every side, and front + back / front + right pruned); the MoGe FOV subgraph ran on CPU |
- **What the provider does**: `SLOT_RULES` gives the workflow its sides; each photo goes to the side
`params.extra.views` names (in order when unnamed), and a side with no photo is cut out of the graph
(`dropBranch` in `src/lib/comfy.ts`: its loader, cut-out and crop go, and the rig loses that input). The front is needed.
+- **Field of view**: the official multi-view template keeps the rig's 20° (right for rendered turnaround sheets). Photos are
+ wider as framed, so the graph measures it as the single-view Pixal3D template does: `MoGeInference` on the front crop →
+ `MoGeGeometryToFOV` (horizontal, degrees) → the rig's `fov` (+0.66 GB, `moge_2_vitl_normal_fp16`). `fovX` fixes MoGe's lens
+ instead (0 = estimate; 20 for a generated sheet). On the CPU server two runs of the subgraph (resolution level 9, one estimating,
+ one given 20°) took 137 s in all, model load included: 40.0° estimated on a test image, 20° passed through.
+- **Sides**: the rig's left is the object's own left (camera at +90° azimuth): facing the front, walk to your right to photograph it.
- **Licences**: the TRELLIS.2 graphs (single and multi-view) encode with DINOv3 ViT-L (`dino_v3_L_naf`), so their
licence now names the DINOv3 License and its "Built with DINOv3" notice, like TripoSplat's.
- **Not open**: rigging. UniRig (MIT) has no ComfyUI pack verified against v0.41, so Rig & animate is Meshy on fal only.
diff --git a/scripts/comfy/hand-built/image-to-3d-trellis2-multiview.json b/scripts/comfy/hand-built/image-to-3d-trellis2-multiview.json
index 4d225478..14718ff1 100644
--- a/scripts/comfy/hand-built/image-to-3d-trellis2-multiview.json
+++ b/scripts/comfy/hand-built/image-to-3d-trellis2-multiview.json
@@ -671,7 +671,10 @@
},
"324": {
"inputs": {
- "fov": 20,
+ "fov": [
+ "382",
+ 0
+ ],
"clip_vision_model": [
"15",
0
@@ -897,6 +900,51 @@
"title": "Save 3D (Advanced)"
}
},
+ "380": {
+ "inputs": {
+ "model_name": "moge_2_vitl_normal_fp16.safetensors"
+ },
+ "class_type": "LoadMoGeModel",
+ "_meta": {
+ "title": "Load MoGe Model"
+ }
+ },
+ "381": {
+ "inputs": {
+ "resolution_level": 9,
+ "fov_x_degrees": 0,
+ "batch_size": 4,
+ "force_projection": true,
+ "apply_mask": true,
+ "refine_steps": 3,
+ "moge_model": [
+ "380",
+ 0
+ ],
+ "image": [
+ "312",
+ 0
+ ]
+ },
+ "class_type": "MoGeInference",
+ "_meta": {
+ "title": "Run MoGe Inference (the front view's field of view)"
+ }
+ },
+ "382": {
+ "inputs": {
+ "axis": "horizontal",
+ "unit": "degrees",
+ "moge_geometry": [
+ "381",
+ 0
+ ]
+ },
+ "class_type": "MoGeGeometryToFOV",
+ "_meta": {
+ "title": "Get FoV from MoGe Geometry"
+ }
+ },
"500": {
"class_type": "RotateMesh",
"inputs": {
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index efdb2d91..b744d86a 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -2345,20 +2345,24 @@ export const SPEC = [
handBuilt: 'hand-built/image-to-3d-trellis2-multiview.json',
bindings: {
image: [b('360', 'image')], image2: [b('361', 'image')], image3: [b('362', 'image')], image4: [b('363', 'image')],
- seed: [b('3', 'seed'), b('12', 'seed'), b('18', 'seed'), b('23', 'seed')], textureSize: [b('288', 'value')], turntableFps: [b('701', 'fps')], fovX: [b('324', 'fov')],
+ seed: [b('3', 'seed'), b('12', 'seed'), b('18', 'seed'), b('23', 'seed')], textureSize: [b('288', 'value')], turntableFps: [b('701', 'fps')], fovX: [b('381', 'fov_x_degrees')],
},
outputs: [{ node: '372', kind: 'model3d' }, { node: '702', kind: 'video', role: 'turntable' }],
vramGb: 16,
license:
- 'MIT (Pixal3D multi-view weights by TencentARC, TRELLIS.2 VAEs as repackaged by Comfy-Org, BiRefNet); the dino_v3_L_naf image encoder is DINOv3 ViT-L under the DINOv3 License ' +
+ 'MIT (Pixal3D multi-view weights by TencentARC, TRELLIS.2 VAEs as repackaged by Comfy-Org, BiRefNet, microsoft/MoGe 2); the dino_v3_L_naf image encoder is DINOv3 ViT-L under the DINOv3 License ' +
'(royalty-free, commercial use allowed; the app must show a "Built with DINOv3" notice)',
notes:
'Template 3d_pixal3d_multi_views (2026-09-09) with the turnaround-sheet loader and its crops replaced by one upload per side: image = front, image2 = left, image3 = back, image4 = right ' +
- '(Pixal3DMultiViewConditioning, a fixed orbit rig 90 degrees apart; every side but the front is optional and the provider drops the branch of a side with no photo). ' +
+ '(Pixal3DMultiViewConditioning, a fixed orbit rig 90 degrees apart, Z up: the left view is the object\'s own left, the camera at +90 degrees azimuth from the front, i.e. the photographer walks to their right; ' +
+ 'every side but the front is optional and the provider drops the branch of a side with no photo). ' +
'Each side: BiRefNet cut-out -> crop to mask (1024, pad 1.1) -> the view. Then TRELLIS.2 structure (12 steps) -> shape (20) -> upsample to 1536 (12) -> texture (12) on Pixal3D multi-view ' +
'-> decimate to 700k faces -> remesh -> UV unwrap -> baked base colour / metallic / roughness / AO / normal at textureSize -> GLB. The same 36-view turntable as image-to-3d-trellis2. ' +
- 'fovX = the views\' horizontal field of view in degrees as framed (20 for rig renders and most multi-view generators; photos of a real object are usually wider). ' +
- 'Weights: pixal3d_multiview_int8_convrot 5.58 GB + the TRELLIS.2 VAEs, DINOv3-NAF and BiRefNet the single-view graph already uses. VRAM unverified (as the single-view graph: 16 GB). Validated by /prompt only.',
+ 'The views\' horizontal field of view as framed (Pixal3DMultiViewConditioning.fov) is measured on the front crop: MoGe 2 (LoadMoGeModel -> MoGeInference -> MoGeGeometryToFOV, horizontal, degrees), ' +
+ 'as the node\'s tooltip says for photos and as the official single-view template 3d_pixal3d_trellis2_image_to_model feeds Pixal3DConditioning; the multi-view template keeps the rig value 20, ' +
+ 'which suits rendered turnaround sheets but not phone photos, whose crops are usually wider. fovX (degrees, 0 = estimate, the default) fixes MoGe\'s lens instead, ' +
+ 'so MoGeGeometryToFOV passes it on (20 for a generated turnaround sheet). ' +
+ 'Weights: pixal3d_multiview_int8_convrot 5.58 GB + moge_2_vitl_normal_fp16 0.66 GB + the TRELLIS.2 VAEs, DINOv3-NAF and BiRefNet the single-view graph already uses. VRAM unverified (as the single-view graph: 16 GB). Validated by /prompt only.',
},
{
id: 'image-to-3d-hunyuan3d-21',
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index 9f010567..91977f24 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -168,10 +168,10 @@
"at": "2026-10-25T23:18:17.097Z"
},
"image-to-3d-trellis2-multiview": {
- "sha256": "c8530d9a2751d776fdf9391ae2970afd49371e7b4eb0f19fcf68bf0f2e0588f8",
+ "sha256": "06ac47b57c4007ed0bb6f96ecde799de1e24285baf590f14357ffde87081b118",
"validated": true,
"error": null,
- "at": "2026-10-25T23:18:25.073Z"
+ "at": "2026-10-26T00:11:04.344Z"
},
"image-to-splat-triposplat": {
"sha256": "cb65f4660b4d5fef3c0544146ed51b7d3acf059f3190a102dccf8166908f5413",
diff --git a/tests/model3d.test.ts b/tests/model3d.test.ts
index 853ee291..79bee869 100644
--- a/tests/model3d.test.ts
+++ b/tests/model3d.test.ts
@@ -210,6 +210,19 @@ describe("open engine: multi-view TRELLIS.2 (image-to-3d-trellis2-multiview)", (
expect(workflow["702"].inputs.filename_prefix).toBe("fuobe/gen-mv");
});
+ it("measures the photos' field of view on the front crop (MoGe), unless one is given", async () => {
+ const { workflow } = await prep(["f.png", "b.png"], { views: ["front", "back"] });
+ // Pixal3D reads the views' horizontal FOV from MoGe 2 run on the front's cut-out crop, not the rig's fixed 20°.
+ expect(workflow["324"].inputs.fov).toEqual(["382", 0]);
+ expect(workflow["382"]).toMatchObject({ class_type: "MoGeGeometryToFOV", inputs: { moge_geometry: ["381", 0], axis: "horizontal", unit: "degrees" } });
+ expect(workflow["381"]).toMatchObject({ class_type: "MoGeInference", inputs: { image: ["312", 0], fov_x_degrees: 0 } });
+ expect(manifest.models.map((m) => m.file)).toContain("moge_2_vitl_normal_fp16.safetensors");
+ // A rendered turnaround sheet: fovX fixes MoGe's lens, which the FOV node passes on.
+ const sheet = await prep(["f.png", "l.png"], { views: ["front", "left"], fovX: 20 });
+ expect(sheet.workflow["381"].inputs.fov_x_degrees).toBe(20);
+ expect(sheet.workflow["324"].inputs.fov).toEqual(["382", 0]);
+ });
+
it("takes the photos in side order when they aren't named, and all four sides", async () => {
const { workflow } = await prep(["f.png", "l.png", "b.png", "r.png"]);
expect(["360", "361", "362", "363"].map((id) => workflow[id].inputs.image)).toEqual(["f.png", "l.png", "b.png", "r.png"]);
diff --git a/workflows/comfyui/image-to-3d-trellis2-multiview.json b/workflows/comfyui/image-to-3d-trellis2-multiview.json
index 7cc1dea0..ed5c36a6 100644
--- a/workflows/comfyui/image-to-3d-trellis2-multiview.json
+++ b/workflows/comfyui/image-to-3d-trellis2-multiview.json
@@ -611,7 +611,10 @@
},
"324": {
"inputs": {
- "fov": 20,
+ "fov": [
+ "382",
+ 0
+ ],
"clip_vision_model": [
"15",
0
@@ -837,6 +840,51 @@
"title": "Save 3D (Advanced)"
}
},
+ "380": {
+ "inputs": {
+ "model_name": "moge_2_vitl_normal_fp16.safetensors"
+ },
+ "class_type": "LoadMoGeModel",
+ "_meta": {
+ "title": "Load MoGe Model"
+ }
+ },
+ "381": {
+ "inputs": {
+ "resolution_level": 9,
+ "fov_x_degrees": 0,
+ "batch_size": 4,
+ "force_projection": true,
+ "apply_mask": true,
+ "refine_steps": 3,
+ "moge_model": [
+ "380",
+ 0
+ ],
+ "image": [
+ "312",
+ 0
+ ]
+ },
+ "class_type": "MoGeInference",
+ "_meta": {
+ "title": "Run MoGe Inference (the front view's field of view)"
+ }
+ },
+ "382": {
+ "inputs": {
+ "axis": "horizontal",
+ "unit": "degrees",
+ "moge_geometry": [
+ "381",
+ 0
+ ]
+ },
+ "class_type": "MoGeGeometryToFOV",
+ "_meta": {
+ "title": "Get FoV from MoGe Geometry"
+ }
+ },
"500": {
"class_type": "RotateMesh",
"inputs": {
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 78b12e9e..28fe5859 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "generatedAt": "2026-10-25T23:18:12.158Z",
+ "generatedAt": "2026-10-26T00:10:49.871Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",
@@ -10806,8 +10806,8 @@
],
"fovX": [
{
- "node": "324",
- "input": "fov"
+ "node": "381",
+ "input": "fov_x_degrees"
}
],
"filenamePrefix": [
@@ -10835,7 +10835,7 @@
"defaults": {
"textureSize": 4096,
"turntableFps": 12,
- "fovX": 20
+ "fovX": 0
},
"limits": {},
"models": [
@@ -10868,13 +10868,19 @@
"folder": "diffusion_models",
"url": "https://huggingface.co/Comfy-Org/Pixal3D/resolve/main/diffusion_models/pixal3d_multiview_int8_convrot.safetensors",
"sizeGb": 5.58
+ },
+ {
+ "file": "moge_2_vitl_normal_fp16.safetensors",
+ "folder": "geometry_estimation",
+ "url": "https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_2_vitl_normal_fp16.safetensors",
+ "sizeGb": 0.66
}
],
"customNodes": [],
"vramGb": 16,
- "license": "MIT (Pixal3D multi-view weights by TencentARC, TRELLIS.2 VAEs as repackaged by Comfy-Org, BiRefNet); the dino_v3_L_naf image encoder is DINOv3 ViT-L under the DINOv3 License (royalty-free, commercial use allowed; the app must show a \"Built with DINOv3\" notice)",
+ "license": "MIT (Pixal3D multi-view weights by TencentARC, TRELLIS.2 VAEs as repackaged by Comfy-Org, BiRefNet, microsoft/MoGe 2); the dino_v3_L_naf image encoder is DINOv3 ViT-L under the DINOv3 License (royalty-free, commercial use allowed; the app must show a \"Built with DINOv3\" notice)",
"validated": true,
- "notes": "Template 3d_pixal3d_multi_views (2026-09-09) with the turnaround-sheet loader and its crops replaced by one upload per side: image = front, image2 = left, image3 = back, image4 = right (Pixal3DMultiViewConditioning, a fixed orbit rig 90 degrees apart; every side but the front is optional and the provider drops the branch of a side with no photo). Each side: BiRefNet cut-out -> crop to mask (1024, pad 1.1) -> the view. Then TRELLIS.2 structure (12 steps) -> shape (20) -> upsample to 1536 (12) -> texture (12) on Pixal3D multi-view -> decimate to 700k faces -> remesh -> UV unwrap -> baked base colour / metallic / roughness / AO / normal at textureSize -> GLB. The same 36-view turntable as image-to-3d-trellis2. fovX = the views' horizontal field of view in degrees as framed (20 for rig renders and most multi-view generators; photos of a real object are usually wider). Weights: pixal3d_multiview_int8_convrot 5.58 GB + the TRELLIS.2 VAEs, DINOv3-NAF and BiRefNet the single-view graph already uses. VRAM unverified (as the single-view graph: 16 GB). Validated by /prompt only."
+ "notes": "Template 3d_pixal3d_multi_views (2026-09-09) with the turnaround-sheet loader and its crops replaced by one upload per side: image = front, image2 = left, image3 = back, image4 = right (Pixal3DMultiViewConditioning, a fixed orbit rig 90 degrees apart, Z up: the left view is the object's own left, the camera at +90 degrees azimuth from the front, i.e. the photographer walks to their right; every side but the front is optional and the provider drops the branch of a side with no photo). Each side: BiRefNet cut-out -> crop to mask (1024, pad 1.1) -> the view. Then TRELLIS.2 structure (12 steps) -> shape (20) -> upsample to 1536 (12) -> texture (12) on Pixal3D multi-view -> decimate to 700k faces -> remesh -> UV unwrap -> baked base colour / metallic / roughness / AO / normal at textureSize -> GLB. The same 36-view turntable as image-to-3d-trellis2. The views' horizontal field of view as framed (Pixal3DMultiViewConditioning.fov) is measured on the front crop: MoGe 2 (LoadMoGeModel -> MoGeInference -> MoGeGeometryToFOV, horizontal, degrees), as the node's tooltip says for photos and as the official single-view template 3d_pixal3d_trellis2_image_to_model feeds Pixal3DConditioning; the multi-view template keeps the rig value 20, which suits rendered turnaround sheets but not phone photos, whose crops are usually wider. fovX (degrees, 0 = estimate, the default) fixes MoGe's lens instead, so MoGeGeometryToFOV passes it on (20 for a generated turnaround sheet). Weights: pixal3d_multiview_int8_convrot 5.58 GB + moge_2_vitl_normal_fp16 0.66 GB + the TRELLIS.2 VAEs, DINOv3-NAF and BiRefNet the single-view graph already uses. VRAM unverified (as the single-view graph: 16 GB). Validated by /prompt only."
},
{
"id": "image-to-3d-hunyuan3d-21",
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index 548d8f68..275f0359 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -10769,6 +10769,86 @@
"essentials_category": null,
"has_intermediate_output": false
},
+ "MoGeGeometryToFOV": {
+ "input": {
+ "required": {
+ "moge_geometry": [
+ "MOGE_GEOMETRY",
+ {}
+ ],
+ "axis": [
+ "COMBO",
+ {
+ "tooltip": "'vertical' (fov_y), 'horizontal' (fov_x), or 'diagonal'.",
+ "default": "vertical",
+ "multiselect": false,
+ "options": [
+ "vertical",
+ "horizontal",
+ "diagonal"
+ ]
+ }
+ ],
+ "unit": [
+ "COMBO",
+ {
+ "tooltip": "Output unit for the FOV.",
+ "default": "degrees",
+ "multiselect": false,
+ "options": [
+ "degrees",
+ "radians"
+ ]
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "moge_geometry",
+ "axis",
+ "unit"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "FLOAT",
+ "FLOAT"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "fov",
+ "focal_pixels"
+ ],
+ "output_tooltips": [
+ null,
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "MoGeGeometryToFOV",
+ "display_name": "Get FoV from MoGe Geometry",
+ "description": "Derive the field of view and focal length from MoGe intrinsics.",
+ "python_module": "comfy_extras.nodes_moge",
+ "category": "image/geometry estimation",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": [
+ "moge",
+ "fov",
+ "geometry",
+ "intrinsics",
+ "field of view"
+ ],
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
"MoGeInference": {
"input": {
"required": {