The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(workflows): the LTX 2.5 i2v template of Comfy-Org imports and runs (GitHub #196)
purple65f086372aef
diff --git a/src/api/__tests__/a-half-valid-prompt-is-a-rejection.test.ts b/src/api/__tests__/a-half-valid-prompt-is-a-rejection.test.tsnew file mode 100644index 00000000..06d12a66--- /dev/null+++ b/src/api/__tests__/a-half-valid-prompt-is-a-rejection.test.ts@@ -0,0 +1,71 @@+/**+ * GitHub #196: ComfyUI queues a prompt as soon as one output node passes+ * validation and answers 200, listing the failed outputs in node_errors+ * (execution.py validate_prompt, server.py post_prompt of v0.42.4). In the+ * LTX 2.5 template the prompt preview passed and Save Video did not, so LU+ * waited for a run that could only end with "no output was produced".+ * Such a prompt is now taken back out of the queue and reported like a full+ * rejection.+ *+ * Run: npx vitest run src/api/__tests__/a-half-valid-prompt-is-a-rejection.test.ts+ */+import { describe, it, expect, vi, beforeEach } from 'vitest'++const localFetch = vi.fn<(url: string, opts?: { method?: string; body?: string }) => Promise<Response>>()++vi.mock('../backend', async (importOriginal) => ({+ ...(await importOriginal<typeof import('../backend')>()),+ localFetch: (...a: unknown[]) => localFetch(...(a as [string, { method?: string; body?: string }])),+ comfyuiUrl: (p: string) => `http://localhost:8188${p}`,+ isMacOS: () => false,+}))++import { submitWorkflow } from '../comfyui'++const saveVideoError = {+ '75': {+ errors: [{+ type: 'value_not_in_list',+ message: 'Value not in list',+ details: "vae_name: 'ltx-2.5-video-vae-bf16.safetensors' not in ['a.safetensors', 'b.safetensors']",+ }],+ dependent_outputs: ['75'],+ class_type: 'SaveVideo',+ },+}++function answer(promptAnswer: { status: number; body: unknown }) {+ localFetch.mockImplementation(async (url = '') => {+ if (url.endsWith('/prompt')) return new Response(JSON.stringify(promptAnswer.body), { status: promptAnswer.status })+ if (url.endsWith('/queue')) return new Response(JSON.stringify({ queue_running: [], queue_pending: [] }), { status: 200 })+ return new Response('{}', { status: 200 })+ })+}++const graph = { '1': { class_type: 'SaveVideo', inputs: { filename_prefix: 'x' } } }++beforeEach(() => localFetch.mockReset())++describe('a 200 from /prompt with node_errors', () => {+ it('throws with the same wording as a full rejection and deletes the prompt from the queue', async () => {+ answer({ status: 200, body: { prompt_id: 'p-half', number: 3, node_errors: saveVideoError } })+ await expect(submitWorkflow(graph, 'lu-test')).rejects.toThrow(+ "ComfyUI rejected workflow: Node 75 (SaveVideo): Value not in list (vae_name: 'ltx-2.5-video-vae-bf16.safetensors')",+ )+ const del = localFetch.mock.calls.find(([url, opts]) => url.endsWith('/queue') && opts?.method === 'POST')+ expect(del && JSON.parse(del[1]?.body ?? '{}')).toEqual({ delete: ['p-half'] })+ })++ it('a full rejection (400) still reads the same', async () => {+ answer({ status: 400, body: { error: { message: 'Prompt outputs failed validation' }, node_errors: saveVideoError } })+ await expect(submitWorkflow(graph, 'lu-test')).rejects.toThrow(+ "ComfyUI rejected workflow: Prompt outputs failed validation | Node 75 (SaveVideo): Value not in list (vae_name: 'ltx-2.5-video-vae-bf16.safetensors')",+ )+ })++ it('an empty node_errors is a normal start', async () => {+ answer({ status: 200, body: { prompt_id: 'p-ok', number: 4, node_errors: {} } })+ await expect(submitWorkflow(graph, 'lu-test')).resolves.toBe('p-ok')+ expect(localFetch.mock.calls.some(([url]) => url.endsWith('/queue'))).toBe(false)+ })+})diff --git a/src/api/__tests__/comfy-ui-format.test.ts b/src/api/__tests__/comfy-ui-format.test.tsindex 935747cd..448ce572 100644--- a/src/api/__tests__/comfy-ui-format.test.ts+++ b/src/api/__tests__/comfy-ui-format.test.ts@@ -516,3 +516,100 @@ describe('subgraphs: files that are turned down', () => {expect(r.ok && r.graph).toBe(g)})})++// ── V3 dynamic inputs (GitHub #196) ─────────────────────────────+//+// The node definitions are the excerpt of object-info-ltx25.json, written+// down from the ComfyUI v0.42.4 sources (templates/SOURCE.md names file and+// line of every node). The widget values are those of the LTX 2.5 i2v+// template of Comfy-Org.++const v3 = load<ComfyNodeDefs>('object-info-ltx25.json')++/** One node of the given type wired into a Save Video, as the canvas saves it. */+function oneNode(type: string, widgets: unknown[], inputs: UiNode['inputs'] = [], extra: UiNode[] = [], links: unknown[] = []): UiGraph {+ return {+ nodes: [+ { id: 1, type, mode: 0, inputs, outputs: [{ name: 'out', type: '*' }], widgets_values: widgets },+ { id: 2, type: 'PreviewAny', mode: 0, inputs: [{ name: 'source', type: '*', link: 1 }], widgets_values: [] },+ ...extra,+ ],+ links: [[1, 1, 0, 2, 0, '*'], ...links],+ }+}++describe('V3 dynamic inputs: DynamicCombo (TextGenerateLTX2Prompt.sampling_mode)', () => {+ const clip = { id: 3, type: 'CLIPLoader', mode: 0, inputs: [], outputs: [{ name: 'CLIP', type: 'CLIP' }], widgets_values: ['gemma4_e2b_it_int8_convrot.safetensors', 'ltxv', 'default'] }+ const wired = [{ name: 'clip', type: 'CLIP', link: 2 }]+ const values = ['', 600, 'on', 0.7, 64, 0.95, 0.05, 1.15, 0, 0, false, true]++ it('names the values of the chosen option "<combo>.<input>" and reads on after them', () => {+ const r = convertOk(oneNode('TextGenerateLTX2Prompt', values, wired, [clip], [[2, 3, 0, 1, 0, 'CLIP']]), v3)+ expect(r.graph['1'].inputs).toEqual({+ clip: ['3', 0],+ prompt: '',+ max_length: 600,+ sampling_mode: 'on',+ 'sampling_mode.temperature': 0.7,+ 'sampling_mode.top_k': 64,+ 'sampling_mode.top_p': 0.95,+ 'sampling_mode.min_p': 0.05,+ 'sampling_mode.repetition_penalty': 1.15,+ 'sampling_mode.seed': 0,+ 'sampling_mode.presence_penalty': 0,+ thinking: false,+ use_default_template: true,+ })+ })++ it('an option without inputs ("off") takes no values of its own', () => {+ const r = convertOk(oneNode('TextGenerateLTX2Prompt', ['', 600, 'off', true, false], wired, [clip], [[2, 3, 0, 1, 0, 'CLIP']]), v3)+ expect(r.graph['1'].inputs).toMatchObject({ sampling_mode: 'off', thinking: true, use_default_template: false })+ expect(Object.keys(r.graph['1'].inputs ?? {}).some((k) => k.startsWith('sampling_mode.'))).toBe(false)+ })++ it('a value that is no option of the combo turns the file down instead of shifting the rest', () => {+ const r = convertUiGraph(oneNode('TextGenerateLTX2Prompt', ['', 600, 'sometimes', 0.7], wired, [clip], [[2, 3, 0, 1, 0, 'CLIP']]), v3)+ expect(r.ok).toBe(false)+ if (!r.ok) expect(r.reason).toMatch(/saved settings do not match/)+ })++ it('nested combos: Save Video format "auto" with its own codec "auto"', () => {+ const g: UiGraph = {+ nodes: [+ { id: 1, type: 'LoadImage', mode: 0, inputs: [], outputs: [{ name: 'IMAGE', type: 'IMAGE' }], widgets_values: ['neon_cyborg_portrait.png', 'image'] },+ { id: 2, type: 'CreateVideo', mode: 0, inputs: [{ name: 'images', type: 'IMAGE', link: 1 }], outputs: [{ name: 'VIDEO', type: 'VIDEO' }], widgets_values: [24, 8] },+ { id: 3, type: 'SaveVideo', mode: 0, inputs: [{ name: 'video', type: 'VIDEO', link: 2 }], widgets_values: ['video/x', 'auto', 'auto'] },+ ],+ links: [[1, 1, 0, 2, 0, 'IMAGE'], [2, 2, 0, 3, 0, 'VIDEO']],+ }+ expect(convertOk(g, v3).graph['3'].inputs).toEqual({ video: ['2', 0], filename_prefix: 'video/x', format: 'auto', 'format.codec': 'auto' })+ })+})++describe('V3 dynamic inputs: Autogrow (ComfyMathExpression.values)', () => {+ const int = { id: 3, type: 'PrimitiveInt', mode: 0, inputs: [], outputs: [{ name: 'INT', type: 'INT' }], widgets_values: [1280, 'fixed'] }+ const sockets = (linkA: number | null) => [+ { name: 'values.a', type: 'FLOAT,INT,BOOLEAN', link: linkA },+ { name: 'values.b', type: 'FLOAT,INT,BOOLEAN', link: null },+ ]++ it('reads the sockets "values.a", "values.b" and does not ask for "values" itself', () => {+ const r = convertOk(oneNode('ComfyMathExpression', ['a/2'], sockets(2), [int], [[2, 3, 0, 1, 0, 'INT']]), v3)+ expect(r.graph['1'].inputs).toEqual({ expression: 'a/2', 'values.a': ['3', 0] })+ })++ it('the first name is required: an open "values.a" is named', () => {+ const r = convertUiGraph(oneNode('ComfyMathExpression', ['a/2'], sockets(null)), v3)+ expect(r.ok).toBe(false)+ if (!r.ok) expect(r.reason).toMatch(/has no "values\.a" connected/)+ })+})++describe('V3 widgets of more than one type (widgetType)', () => {+ it('LTXVEmptyLatentAudio keeps frame_rate in its widget values, batch_size stays 1', () => {+ const vae = { id: 3, type: 'VAELoader', mode: 0, inputs: [], outputs: [{ name: 'VAE', type: 'VAE' }], widgets_values: ['ltx-2.5-audio-vae-bf16.safetensors'] }+ const r = convertOk(oneNode('LTXVEmptyLatentAudio', [97, 25, 1], [{ name: 'audio_vae', type: 'VAE', link: 2 }], [vae], [[2, 3, 0, 1, 0, 'VAE']]), v3)+ expect(r.graph['1'].inputs).toEqual({ frames_number: 97, frame_rate: 25, batch_size: 1, audio_vae: ['3', 0] })+ })+})diff --git a/src/api/__tests__/fixtures/comfy-ui/object-info-ltx25.json b/src/api/__tests__/fixtures/comfy-ui/object-info-ltx25.jsonnew file mode 100644index 00000000..5174d27d--- /dev/null+++ b/src/api/__tests__/fixtures/comfy-ui/object-info-ltx25.json@@ -0,0 +1,1990 @@+{+ "TextGenerateLTX2Prompt": {+ "input": {+ "required": {+ "clip": [+ "CLIP",+ {}+ ],+ "prompt": [+ "STRING",+ {+ "default": "",+ "multiline": true,+ "dynamicPrompts": true+ }+ ],+ "max_length": [+ "INT",+ {+ "default": 512,+ "min": 1,+ "max": 32768+ }+ ],+ "sampling_mode": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "Sampling Mode",+ "options": [+ {+ "key": "on",+ "inputs": {+ "required": {+ "temperature": [+ "FLOAT",+ {+ "default": 0.7,+ "min": 0.01,+ "max": 2.0,+ "step": 1e-06+ }+ ],+ "top_k": [+ "INT",+ {+ "default": 64,+ "min": 0,+ "max": 1000+ }+ ],+ "top_p": [+ "FLOAT",+ {+ "default": 0.95,+ "min": 0.0,+ "max": 1.0,+ "step": 0.01+ }+ ],+ "min_p": [+ "FLOAT",+ {+ "default": 0.05,+ "min": 0.0,+ "max": 1.0,+ "step": 0.01+ }+ ],+ "repetition_penalty": [+ "FLOAT",+ {+ "default": 1.05,+ "min": 0.0,+ "max": 5.0,+ "step": 0.01+ }+ ],+ "seed": [+ "INT",+ {+ "default": 0,+ "min": 0,+ "max": 18446744073709551615+ }+ ]+ },+ "optional": {+ "presence_penalty": [+ "FLOAT",+ {+ "default": 0.0,+ "min": 0.0,+ "max": 5.0,+ "step": 0.01+ }+ ]+ }+ }+ },+ {+ "key": "off",+ "inputs": {+ "required": {}+ }+ }+ ]+ }+ ]+ },+ "optional": {+ "image": [+ "IMAGE",+ {}+ ],+ "video": [+ "IMAGE",+ {}+ ],+ "audio": [+ "AUDIO",+ {}+ ],+ "thinking": [+ "BOOLEAN",+ {+ "default": false+ }+ ],+ "use_default_template": [+ "BOOLEAN",+ {+ "default": true,+ "advanced": true+ }+ ],+ "mtp": [+ "COMBO",+ {+ "default": "auto",+ "multiselect": false,+ "options": [+ "auto",+ "off",+ "2",+ "3",+ "4",+ "5"+ ]+ }+ ],+ "system_prompt": [+ "STRING",+ {+ "forceInput": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "clip",+ "prompt",+ "max_length",+ "sampling_mode"+ ],+ "optional": [+ "image",+ "video",+ "audio",+ "thinking",+ "use_default_template",+ "mtp",+ "system_prompt"+ ]+ },+ "output": [+ "STRING",+ "STRING"+ ],+ "output_node": false,+ "display_name": "Generate LTX2 Prompt"+ },+ "ComfyMathExpression": {+ "input": {+ "required": {+ "expression": [+ "STRING",+ {+ "default": "a + b",+ "multiline": true+ }+ ],+ "values": [+ "COMFY_AUTOGROW_V3",+ {+ "template": {+ "input": {+ "required": {+ "value": [+ "FLOAT,INT,BOOLEAN",+ {}+ ]+ }+ },+ "names": [+ "a",+ "b",+ "c",+ "d",+ "e",+ "f",+ "g",+ "h",+ "i",+ "j",+ "k",+ "l",+ "m",+ "n",+ "o",+ "p",+ "q",+ "r",+ "s",+ "t",+ "u",+ "v",+ "w",+ "x",+ "y",+ "z"+ ],+ "min": 1+ }+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "expression",+ "values"+ ]+ },+ "output": [+ "FLOAT",+ "INT",+ "BOOLEAN"+ ],+ "output_node": false,+ "display_name": "Math Expression"+ },+ "ResolutionSelector": {+ "input": {+ "required": {+ "aspect_ratio": [+ "COMBO",+ {+ "default": "1:1 (Square)",+ "multiselect": false,+ "options": [+ "1:1 (Square)",+ "2:3 (Portrait Photo)",+ "3:2 (Photo)",+ "3:4 (Portrait Standard)",+ "4:3 (Standard)",+ "9:16 (Portrait Widescreen)",+ "16:9 (Widescreen)",+ "21:9 (Ultrawide)"+ ]+ }+ ],+ "megapixels": [+ "FLOAT",+ {+ "default": 1.0,+ "min": 0.1,+ "max": 16.0,+ "step": 0.1+ }+ ],+ "multiple": [+ "INT",+ {+ "default": 8,+ "min": 8,+ "max": 128,+ "step": 4,+ "advanced": true+ }+ ]+ },+ "optional": {+ "preview": [+ "RESOLUTION_PREVIEW",+ {+ "socketless": true,+ "ratio_widget": "aspect_ratio",+ "megapixels_widget": "megapixels",+ "multiple_widget": "multiple"+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "aspect_ratio",+ "megapixels",+ "multiple"+ ],+ "optional": [+ "preview"+ ]+ },+ "output": [+ "INT",+ "INT"+ ],+ "output_node": false,+ "display_name": "Resolution Selector"+ },+ "ComfySwitchNode": {+ "input": {+ "required": {+ "switch": [+ "BOOLEAN",+ {}+ ]+ },+ "optional": {+ "on_false": [+ "COMFY_MATCHTYPE_V3",+ {+ "lazy": true,+ "template": {+ "template_id": "switch",+ "allowed_types": "*"+ }+ }+ ],+ "on_true": [+ "COMFY_MATCHTYPE_V3",+ {+ "lazy": true,+ "template": {+ "template_id": "switch",+ "allowed_types": "*"+ }+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "switch"+ ],+ "optional": [+ "on_false",+ "on_true"+ ]+ },+ "output": [+ "COMFY_MATCHTYPE_V3"+ ],+ "output_node": false,+ "display_name": "If/Else Switch"+ },+ "PrimitiveStringMultiline": {+ "input": {+ "required": {+ "value": [+ "STRING",+ {+ "multiline": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "value"+ ]+ },+ "output": [+ "STRING"+ ],+ "output_node": false,+ "display_name": "Text (Multiline)"+ },+ "PrimitiveInt": {+ "input": {+ "required": {+ "value": [+ "INT",+ {+ "min": -9223372036854775807,+ "max": 9223372036854775807,+ "control_after_generate": "fixed"+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "value"+ ]+ },+ "output": [+ "INT"+ ],+ "output_node": false,+ "display_name": "Int"+ },+ "PrimitiveBoolean": {+ "input": {+ "required": {+ "value": [+ "BOOLEAN",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "value"+ ]+ },+ "output": [+ "BOOLEAN"+ ],+ "output_node": false,+ "display_name": "Boolean"+ },+ "PreviewAny": {+ "input": {+ "required": {+ "source": [+ "*",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "source"+ ]+ },+ "output": [+ "STRING"+ ],+ "output_node": true,+ "display_name": "Preview Any"+ },+ "ManualSigmas": {+ "input": {+ "required": {+ "sigmas": [+ "STRING",+ {+ "default": "1, 0.5",+ "multiline": false+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "sigmas"+ ]+ },+ "output": [+ "SIGMAS"+ ],+ "output_node": false+ },+ "RandomNoise": {+ "input": {+ "required": {+ "noise_seed": [+ "INT",+ {+ "default": 0,+ "min": 0,+ "max": 18446744073709551615,+ "control_after_generate": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "noise_seed"+ ]+ },+ "output": [+ "NOISE"+ ],+ "output_node": false+ },+ "KSamplerSelect": {+ "input": {+ "required": {+ "sampler_name": [+ "COMBO",+ {+ "multiselect": false,+ "options": [+ "euler",+ "euler_cfg_pp",+ "euler_ancestral",+ "euler_ancestral_cfg_pp",+ "heun",+ "dpmpp_2m",+ "res_multistep",+ "ddim",+ "uni_pc"+ ]+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "sampler_name"+ ]+ },+ "output": [+ "SAMPLER"+ ],+ "output_node": false+ },+ "SamplerCustomAdvanced": {+ "input": {+ "required": {+ "noise": [+ "NOISE",+ {}+ ],+ "guider": [+ "GUIDER",+ {}+ ],+ "sampler": [+ "SAMPLER",+ {}+ ],+ "sigmas": [+ "SIGMAS",+ {}+ ],+ "latent_image": [+ "LATENT",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "noise",+ "guider",+ "sampler",+ "sigmas",+ "latent_image"+ ]+ },+ "output": [+ "LATENT",+ "LATENT"+ ],+ "output_node": false+ },+ "ResizeImageMaskNode": {+ "input": {+ "required": {+ "input": [+ "COMFY_MATCHTYPE_V3",+ {+ "template": {+ "template_id": "input_type",+ "allowed_types": "IMAGE,MASK"+ }+ }+ ],+ "resize_type": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "options": [+ {+ "key": "scale dimensions",+ "inputs": {+ "required": {+ "width": [+ "INT",+ {+ "default": 512,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ],+ "height": [+ "INT",+ {+ "default": 512,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ],+ "crop": [+ "COMBO",+ {+ "default": "center",+ "multiselect": false,+ "options": [+ "disabled",+ "center"+ ]+ }+ ]+ }+ }+ },+ {+ "key": "scale by multiplier",+ "inputs": {+ "required": {+ "multiplier": [+ "FLOAT",+ {+ "default": 1.0,+ "min": 0.01,+ "max": 8.0,+ "step": 0.01+ }+ ]+ }+ }+ },+ {+ "key": "scale longer dimension",+ "inputs": {+ "required": {+ "longer_size": [+ "INT",+ {+ "default": 512,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ]+ }+ }+ },+ {+ "key": "scale shorter dimension",+ "inputs": {+ "required": {+ "shorter_size": [+ "INT",+ {+ "default": 512,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ]+ }+ }+ },+ {+ "key": "scale width",+ "inputs": {+ "required": {+ "width": [+ "INT",+ {+ "default": 512,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ]+ }+ }+ },+ {+ "key": "scale height",+ "inputs": {+ "required": {+ "height": [+ "INT",+ {+ "default": 512,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ]+ }+ }+ },+ {+ "key": "scale total pixels",+ "inputs": {+ "required": {+ "megapixels": [+ "FLOAT",+ {+ "default": 1.0,+ "min": 0.01,+ "max": 16.0,+ "step": 0.01+ }+ ]+ }+ }+ },+ {+ "key": "match size",+ "inputs": {+ "required": {+ "match": [+ "IMAGE,MASK",+ {}+ ],+ "crop": [+ "COMBO",+ {+ "default": "center",+ "multiselect": false,+ "options": [+ "disabled",+ "center"+ ]+ }+ ]+ }+ }+ },+ {+ "key": "scale to multiple",+ "inputs": {+ "required": {+ "multiple": [+ "INT",+ {+ "default": 8,+ "min": 1,+ "max": 16384,+ "step": 1+ }+ ]+ }+ }+ }+ ]+ }+ ],+ "scale_method": [+ "COMBO",+ {+ "default": "area",+ "multiselect": false,+ "options": [+ "nearest-exact",+ "bilinear",+ "area",+ "bicubic",+ "lanczos"+ ]+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "input",+ "resize_type",+ "scale_method"+ ]+ },+ "output": [+ "COMFY_MATCHTYPE_V3"+ ],+ "output_node": false,+ "display_name": "Resize Image/Mask"+ },+ "LTXVConditioning": {+ "input": {+ "required": {+ "positive": [+ "CONDITIONING",+ {}+ ],+ "negative": [+ "CONDITIONING",+ {}+ ],+ "frame_rate": [+ "FLOAT",+ {+ "default": 25.0,+ "min": 0.0,+ "max": 1000.0,+ "step": 0.01+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "positive",+ "negative",+ "frame_rate"+ ]+ },+ "output": [+ "CONDITIONING",+ "CONDITIONING"+ ],+ "output_node": false+ },+ "LTXVDualCFGGuider": {+ "input": {+ "required": {+ "model": [+ "MODEL",+ {}+ ],+ "positive": [+ "CONDITIONING",+ {}+ ],+ "negative": [+ "CONDITIONING",+ {}+ ],+ "video_cfg": [+ "FLOAT",+ {+ "default": 3.0,+ "min": 0.0,+ "max": 100.0,+ "step": 0.1,+ "round": 0.01+ }+ ],+ "audio_cfg": [+ "FLOAT",+ {+ "default": 7.0,+ "min": 0.0,+ "max": 100.0,+ "step": 0.1,+ "round": 0.01+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "model",+ "positive",+ "negative",+ "video_cfg",+ "audio_cfg"+ ]+ },+ "output": [+ "GUIDER"+ ],+ "output_node": false,+ "display_name": "LTXV Dual CFG Guider"+ },+ "LTXVImgToVideoInplace": {+ "input": {+ "required": {+ "vae": [+ "VAE",+ {}+ ],+ "image": [+ "IMAGE",+ {}+ ],+ "latent": [+ "LATENT",+ {}+ ],+ "strength": [+ "FLOAT",+ {+ "default": 1.0,+ "min": 0.0,+ "max": 1.0+ }+ ],+ "bypass": [+ "BOOLEAN",+ {+ "default": false+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "vae",+ "image",+ "latent",+ "strength",+ "bypass"+ ]+ },+ "output": [+ "LATENT"+ ],+ "output_node": false+ },+ "LTXVPreprocess": {+ "input": {+ "required": {+ "image": [+ "IMAGE",+ {}+ ],+ "img_compression": [+ "INT",+ {+ "default": 35,+ "min": 0,+ "max": 100+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "image",+ "img_compression"+ ]+ },+ "output": [+ "IMAGE"+ ],+ "output_node": false,+ "display_name": "LTXV Preprocess"+ },+ "EmptyLTXVLatentVideo": {+ "input": {+ "required": {+ "width": [+ "INT",+ {+ "default": 768,+ "min": 64,+ "max": 16384,+ "step": 32+ }+ ],+ "height": [+ "INT",+ {+ "default": 512,+ "min": 64,+ "max": 16384,+ "step": 32+ }+ ],+ "length": [+ "INT",+ {+ "default": 97,+ "min": 1,+ "max": 16384,+ "step": 8+ }+ ],+ "batch_size": [+ "INT",+ {+ "default": 1,+ "min": 1,+ "max": 4096+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "width",+ "height",+ "length",+ "batch_size"+ ]+ },+ "output": [+ "LATENT"+ ],+ "output_node": false,+ "display_name": "Empty LTXV Latent Video"+ },+ "LTXVConcatAVLatent": {+ "input": {+ "required": {+ "video_latent": [+ "LATENT",+ {}+ ],+ "audio_latent": [+ "LATENT",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "video_latent",+ "audio_latent"+ ]+ },+ "output": [+ "LATENT"+ ],+ "output_node": false,+ "display_name": "Concat AV Latent"+ },+ "LTXVSeparateAVLatent": {+ "input": {+ "required": {+ "av_latent": [+ "LATENT",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "av_latent"+ ]+ },+ "output": [+ "LATENT",+ "LATENT"+ ],+ "output_node": false,+ "display_name": "Separate AV Latent"+ },+ "LTXVEmptyLatentAudio": {+ "input": {+ "required": {+ "frames_number": [+ "INT",+ {+ "default": 97,+ "min": 1,+ "max": 1000,+ "step": 1,+ "display": "number"+ }+ ],+ "frame_rate": [+ "FLOAT,INT",+ {+ "default": 25.0,+ "min": 1.0,+ "max": 1000.0,+ "step": 0.01,+ "display": "number",+ "widgetType": "FLOAT"+ }+ ],+ "batch_size": [+ "INT",+ {+ "default": 1,+ "min": 1,+ "max": 4096,+ "display": "number"+ }+ ],+ "audio_vae": [+ "VAE",+ {+ "display_name": "Audio VAE"+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "frames_number",+ "frame_rate",+ "batch_size",+ "audio_vae"+ ]+ },+ "output": [+ "LATENT"+ ],+ "output_node": false,+ "display_name": "Empty LTXV Latent Audio"+ },+ "LTXVAudioVAEDecode": {+ "input": {+ "required": {+ "samples": [+ "LATENT",+ {}+ ],+ "audio_vae": [+ "VAE",+ {+ "display_name": "Audio VAE"+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "samples",+ "audio_vae"+ ]+ },+ "output": [+ "AUDIO"+ ],+ "output_node": false,+ "display_name": "LTXV Audio VAE Decode"+ },+ "LTXVLatentUpsampler": {+ "input": {+ "required": {+ "samples": [+ "LATENT",+ {}+ ],+ "upscale_model": [+ "LATENT_UPSCALE_MODEL",+ {}+ ],+ "vae": [+ "VAE",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "samples",+ "upscale_model",+ "vae"+ ]+ },+ "output": [+ "LATENT"+ ],+ "output_node": false+ },+ "LatentUpscaleModelLoader": {+ "input": {+ "required": {+ "model_name": [+ "COMBO",+ {+ "multiselect": false,+ "options": [+ "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors"+ ]+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "model_name"+ ]+ },+ "output": [+ "LATENT_UPSCALE_MODEL"+ ],+ "output_node": false,+ "display_name": "Load Latent Upscale Model"+ },+ "CreateVideo": {+ "input": {+ "required": {+ "images": [+ "IMAGE",+ {}+ ],+ "fps": [+ "FLOAT",+ {+ "default": 30.0,+ "min": 1.0,+ "max": 120.0,+ "step": 1.0+ }+ ]+ },+ "optional": {+ "audio": [+ "AUDIO",+ {}+ ],+ "bit_depth": [+ "COMBO",+ {+ "default": "auto",+ "multiselect": false,+ "options": [+ "auto",+ 8,+ 10+ ]+ }+ ],+ "color_space": [+ "COMBO",+ {+ "default": "sRGB",+ "multiselect": false,+ "options": [+ "sRGB",+ "HDR",+ "HDR PQ"+ ]+ }+ ],+ "codec": [+ "COMBO",+ {+ "default": "none",+ "advanced": true,+ "multiselect": false,+ "options": [+ "none",+ "auto",+ "h264",+ "av1"+ ]+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "images",+ "fps"+ ],+ "optional": [+ "audio",+ "bit_depth",+ "color_space",+ "codec"+ ]+ },+ "output": [+ "VIDEO"+ ],+ "output_node": false,+ "display_name": "Create Video"+ },+ "SaveVideo": {+ "input": {+ "required": {+ "video": [+ "VIDEO",+ {}+ ],+ "filename_prefix": [+ "STRING",+ {+ "default": "video/ComfyUI"+ }+ ],+ "format": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {+ "codec": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "h264",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 18.0,+ "min": 0.0,+ "max": 51.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ },+ {+ "key": "av1",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 24.0,+ "min": 0.0,+ "max": 63.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ },+ {+ "key": "mp4",+ "inputs": {+ "required": {+ "codec": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "h264",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 18.0,+ "min": 0.0,+ "max": 51.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ },+ {+ "key": "av1",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 24.0,+ "min": 0.0,+ "max": 63.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ },+ {+ "key": "mkv",+ "inputs": {+ "required": {+ "codec": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "h264",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 18.0,+ "min": 0.0,+ "max": 51.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ },+ {+ "key": "av1",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 24.0,+ "min": 0.0,+ "max": 63.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ },+ {+ "key": "webm",+ "inputs": {+ "required": {+ "codec": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "av1",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 24.0,+ "min": 0.0,+ "max": 63.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ }+ ]+ }+ ]+ },+ "optional": {+ "codec": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "h264",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 18.0,+ "min": 0.0,+ "max": 51.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ },+ {+ "key": "av1",+ "inputs": {+ "required": {},+ "optional": {+ "encoding": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "display_name": "encoding mode",+ "options": [+ {+ "key": "auto",+ "inputs": {+ "required": {}+ }+ },+ {+ "key": "re-encode",+ "inputs": {+ "required": {+ "crf": [+ "FLOAT",+ {+ "default": 24.0,+ "min": 0.0,+ "max": 63.0,+ "step": 1.0+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ }+ }+ ],+ "hidden": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "video",+ "filename_prefix",+ "format"+ ],+ "optional": [+ "codec"+ ]+ },+ "output": [+ "VIDEO"+ ],+ "output_node": true,+ "display_name": "Save Video"+ },+ "CLIPTextEncode": {+ "input": {+ "required": {+ "text": [+ "STRING",+ {+ "multiline": true,+ "dynamicPrompts": true+ }+ ],+ "clip": [+ "CLIP",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "text",+ "clip"+ ]+ },+ "output": [+ "CONDITIONING"+ ],+ "output_node": false,+ "display_name": "CLIP Text Encode (Prompt)"+ },+ "VAEDecodeTiled": {+ "input": {+ "required": {+ "samples": [+ "LATENT"+ ],+ "vae": [+ "VAE"+ ],+ "tile_size": [+ "INT",+ {+ "default": 512,+ "min": 64,+ "max": 4096,+ "step": 32,+ "advanced": true+ }+ ],+ "overlap": [+ "INT",+ {+ "default": 64,+ "min": 0,+ "max": 4096,+ "step": 32,+ "advanced": true+ }+ ],+ "temporal_size": [+ "INT",+ {+ "default": 64,+ "min": 8,+ "max": 4096,+ "step": 4,+ "advanced": true+ }+ ],+ "temporal_overlap": [+ "INT",+ {+ "default": 8,+ "min": 4,+ "max": 4096,+ "step": 4,+ "advanced": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "samples",+ "vae",+ "tile_size",+ "overlap",+ "temporal_size",+ "temporal_overlap"+ ]+ },+ "output": [+ "IMAGE"+ ],+ "output_node": false,+ "display_name": "VAE Decode (Tiled)"+ },+ "VAELoader": {+ "input": {+ "required": {+ "vae_name": [+ [+ "ltx-2.5-audio-vae-bf16.safetensors",+ "ltx-2.5-video-vae-bf16.safetensors"+ ]+ ]+ }+ },+ "input_order": {+ "required": [+ "vae_name"+ ]+ },+ "output": [+ "VAE"+ ],+ "output_node": false,+ "display_name": "Load VAE"+ },+ "UNETLoader": {+ "input": {+ "required": {+ "unet_name": [+ [+ "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors"+ ]+ ],+ "weight_dtype": [+ [+ "default",+ "fp8_e4m3fn",+ "fp8_e4m3fn_fast",+ "fp8_e5m2"+ ],+ {+ "advanced": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "unet_name",+ "weight_dtype"+ ]+ },+ "output": [+ "MODEL"+ ],+ "output_node": false,+ "display_name": "Load Diffusion Model"+ },+ "CLIPLoader": {+ "input": {+ "required": {+ "clip_name": [+ [+ "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",+ "gemma4_e2b_it_int8_convrot.safetensors"+ ]+ ],+ "type": [+ [+ "stable_diffusion",+ "stable_cascade",+ "sd3",+ "stable_audio",+ "mochi",+ "ltxv",+ "pixart",+ "cosmos",+ "lumina2",+ "wan",+ "hidream",+ "chroma",+ "ace",+ "omnigen2",+ "qwen_image",+ "hunyuan_image",+ "flux2",+ "ovis",+ "longcat_image",+ "cogvideox",+ "lens",+ "pixeldit",+ "ideogram4",+ "boogu",+ "krea2",+ "joyimage",+ "mage",+ "minimax",+ "yue2",+ "flux3",+ "moss_image"+ ]+ ]+ },+ "optional": {+ "device": [+ [+ "default",+ "cpu"+ ],+ {+ "advanced": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "clip_name",+ "type"+ ],+ "optional": [+ "device"+ ]+ },+ "output": [+ "CLIP"+ ],+ "output_node": false,+ "display_name": "Load CLIP"+ },+ "LoadImage": {+ "input": {+ "required": {+ "image": [+ [+ "neon_cyborg_portrait.png"+ ],+ {+ "image_upload": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "image"+ ]+ },+ "output": [+ "IMAGE",+ "MASK"+ ],+ "output_node": false,+ "display_name": "Load Image"+ }+}\ No newline at end of filediff --git a/src/api/__tests__/fixtures/comfy-ui/templates/SOURCE.md b/src/api/__tests__/fixtures/comfy-ui/templates/SOURCE.mdindex dd89ac60..911fc73d 100644--- a/src/api/__tests__/fixtures/comfy-ui/templates/SOURCE.md+++ b/src/api/__tests__/fixtures/comfy-ui/templates/SOURCE.md@@ -11,6 +11,43 @@ Copyright Comfy Org and the contributors of that repository.|---|---|---|| image_z_image_turbo.json | baaf937ff071970cc6b1e2fa0093a4dd664a4cc734d38adc4c7810e535c1f1d3 | one subgraph; same file as in the ComfyUI 0.40.0 install of the 3.0.8 Windows test run || image_netayume_lumina_t2i.json | 988b37618599a5bdbbef776f438d64c5f3c5e205800d337cc1280e5e817ca2eb | a subgraph nested in a subgraph |+| video_ltx2_5_i2v.json | 03b136ba0ad752c1e91e496a23fa4f4826ef881777d591dc9129c459922e7dac | GitHub #196: V3 inputs, two VAEs and CLIPs, no KSampler, ResolutionSelector |++`video_ltx2_5_i2v.json` comes straight from the repository instead:+github.com/Comfy-Org/workflow_templates, path `templates/video_ltx2_5_i2v.json`+at commit 14220b8bd3e86baa852959f17039613191e66656 (main on 2026-10-28; the+file last changed in e7cd011d4ded3411c2f481200544f0be6fdc962e, git blob+15a7d911874f48957dd0fe0d5e3dd15047fc73a9). Same MIT license (LICENSE of that+repository). Unchanged.++## ../object-info-ltx25.json++What `/object_info` serves for the 32 node types of `video_ltx2_5_i2v.json`,+written down by hand from the ComfyUI sources at tag v0.42.4 (commit+3f438ca69f3d0efc5f748de055daeea9ba26ee50). Tooltips are left out, the sampler+list is cut short, and the loader lists hold the files the template names, as+on a machine that has them. How the V3 types serialize:+`comfy_api/latest/_io.py` (DynamicCombo 1230, Autogrow 1093, MultiType 969+with `widgetType`, MatchType 1018, ResolutionPreview 1584,+create_input_dict_v1 2073, get_v1_info 1966).++| Node | Source (v0.42.4) |+|---|---|+| TextGenerateLTX2Prompt | comfy_extras/nodes_textgen.py 4 (inputs of TextGenerate), 233 |+| ComfyMathExpression | comfy_extras/nodes_math.py 70 |+| ResolutionSelector | comfy_extras/nodes_resolution.py 36 (options 7) |+| ComfySwitchNode | comfy_extras/nodes_logic.py 91 |+| PrimitiveStringMultiline, PrimitiveInt, PrimitiveBoolean | comfy_extras/nodes_primitive.py 28, 46, 82 |+| PreviewAny | comfy_extras/nodes_preview_any.py 8 |+| ManualSigmas, RandomNoise, KSamplerSelect, SamplerCustomAdvanced | comfy_extras/nodes_custom_sampler.py 1129, 1007, 383, 1024 |+| ResizeImageMaskNode | comfy_extras/nodes_post_processing.py 443 (ResizeType 261) |+| LTXVConditioning, LTXVDualCFGGuider, LTXVImgToVideoInplace, LTXVPreprocess, EmptyLTXVLatentVideo, LTXVConcatAVLatent, LTXVSeparateAVLatent | comfy_extras/nodes_lt.py 697, 1251, 137, 872, 67, 901, 976 |+| LTXVEmptyLatentAudio, LTXVAudioVAEDecode | comfy_extras/nodes_lt_audio.py 97, 64 |+| LTXVLatentUpsampler | comfy_extras/nodes_lt_upsampler.py 15 |+| LatentUpscaleModelLoader | comfy_extras/nodes_hunyuan.py 184 |+| CreateVideo, SaveVideo | comfy_extras/nodes_video.py 210, 139 (codec input 76) |+| CLIPTextEncode, VAEDecodeTiled, VAELoader, UNETLoader, CLIPLoader, LoadImage | nodes.py 58, 348, 776, 992, 1017, 1747 |+Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealdiff --git a/src/api/__tests__/fixtures/comfy-ui/templates/video_ltx2_5_i2v.json b/src/api/__tests__/fixtures/comfy-ui/templates/video_ltx2_5_i2v.jsonnew file mode 100644index 00000000..15a7d911--- /dev/null+++ b/src/api/__tests__/fixtures/comfy-ui/templates/video_ltx2_5_i2v.json@@ -0,0 +1,4728 @@+{+ "id": "07824bbb-6672-4bb0-ac36-4313a519e35b",+ "revision": 0,+ "last_node_id": 404,+ "last_link_id": 784,+ "nodes": [+ {+ "id": 395,+ "type": "LoadImage",+ "pos": [+ 1420,+ 6400+ ],+ "size": [+ 530,+ 650+ ],+ "flags": {},+ "order": 0,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "name": "IMAGE",+ "type": "IMAGE",+ "links": [+ 764+ ]+ },+ {+ "name": "MASK",+ "type": "MASK",+ "links": null+ }+ ],+ "title": "Load First Frame",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.8.2",+ "Node name for S&R": "LoadImage",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "input_ue_unconnectable": {},+ "version": "7.5.2"+ }+ },+ "widgets_values": [+ "neon_cyborg_portrait.png",+ "image"+ ]+ },+ {+ "id": 75,+ "type": "SaveVideo",+ "pos": [+ 2540,+ 6400+ ],+ "size": [+ 800,+ 640+ ],+ "flags": {+ "collapsed": false+ },+ "order": 7,+ "mode": 0,+ "inputs": [+ {+ "name": "video",+ "type": "VIDEO",+ "link": 759+ }+ ],+ "outputs": [+ {+ "name": "video",+ "type": "VIDEO",+ "links": null+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "SaveVideo",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "video/LTX-2.5_i2v",+ "auto",+ "auto"+ ]+ },+ {+ "id": 398,+ "type": "6e397a2b-68f7-48f6-8930-f3a5491a163c",+ "pos": [+ 1990,+ 6400+ ],+ "size": [+ 500,+ 670+ ],+ "flags": {},+ "order": 6,+ "mode": 0,+ "inputs": [+ {+ "label": "first_frame",+ "name": "input",+ "type": "IMAGE,MASK",+ "link": 764+ },+ {+ "label": "prompt",+ "name": "value",+ "type": "STRING",+ "widget": {+ "name": "value"+ },+ "link": null+ },+ {+ "label": "prompt_enhance",+ "name": "value_1",+ "type": "BOOLEAN",+ "widget": {+ "name": "value_1"+ },+ "link": null+ },+ {+ "label": "duration",+ "name": "value_2",+ "type": "INT",+ "widget": {+ "name": "value_2"+ },+ "link": null+ },+ {+ "label": "width",+ "name": "value_3",+ "type": "INT",+ "widget": {+ "name": "value_3"+ },+ "link": 783+ },+ {+ "label": "height",+ "name": "value_4",+ "type": "INT",+ "widget": {+ "name": "value_4"+ },+ "link": 784+ },+ {+ "label": "frame_rate",+ "name": "value_5",+ "type": "INT",+ "widget": {+ "name": "value_5"+ },+ "link": null+ },+ {+ "label": "video_vae",+ "name": "vae_name",+ "type": "COMBO",+ "widget": {+ "name": "vae_name"+ },+ "link": null+ },+ {+ "label": "audio_vae",+ "name": "vae_name_1",+ "type": "COMBO",+ "widget": {+ "name": "vae_name_1"+ },+ "link": null+ },+ {+ "label": "upscale_model",+ "name": "model_name",+ "type": "COMBO",+ "widget": {+ "name": "model_name"+ },+ "link": null+ },+ {+ "label": "prompt_enhance_model",+ "name": "clip_name_1",+ "type": "COMBO",+ "widget": {+ "name": "clip_name_1"+ },+ "link": null+ }+ ],+ "outputs": [+ {+ "name": "VIDEO",+ "type": "VIDEO",+ "links": [+ 759+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.30.0",+ "previewExposures": []+ },+ "widgets_values": [+ "Use the provided start image as the first frame. The cybernetic figure slowly turns his head to the right, his glowing blue eyes scanning the horizon, mechanical joints in his neck whirring faintly. The camera follows his gaze, panning across the rooftop to reveal the city beyond: a river of light winding between dark towers, a flying vehicle gliding past between the buildings, its lights streaking. He watches it pass, then his eyes narrow slightly. The camera settles on his profile against the city glow, distant hover traffic humming, wind gusting across the rooftop. No text, no black frames.",+ false,+ 5,+ 1280,+ 720,+ 875362541677469,+ 24,+ "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",+ "ltx-2.5-video-vae-bf16.safetensors",+ "ltx-2.5-audio-vae-bf16.safetensors",+ "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",+ "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",+ "gemma4_e2b_it_int8_convrot.safetensors"+ ]+ },+ {+ "id": 399,+ "type": "MarkdownNote",+ "pos": [+ 530,+ 6390+ ],+ "size": [+ 780,+ 1280+ ],+ "flags": {},+ "order": 1,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Note: About LTX-2.5",+ "properties": {},+ "widgets_values": [+ "# LTX-2.5\n\nLTX-2.5 is Lightricks' open video generation model : fast, local-first, and built for production. Run it locally, fine-tune it for your own use case, or integrate it into your pipeline.\n\n**Key highlights:**\n\n- **Pixel Diffusion** : keyframes-first generation that builds every scene on a grid of high-fidelity keyframes for industry-leading pixel quality\n- **Diffusion Video Decoder** : sharper faces, legible text, fewer smears in fast motion\n- **Native multishot** : one generation yields multiple connected shots holding character, environment, lighting, voice, and style across cuts\n- **Custom Gemma 4 12B text encoder** : retains multiple subjects, actions, lighting, detail, and camera direction across complex prompts\n- **Dedicated Prompt Enhancer** *(optional)* : a lightweight model that expands short prompts into rich cinematic instructions\n- **Auto Duration** : predicts the right clip length from the described action before diffusion begins\n- **Better distilled model** : carries far more quality, prompt adherence, and motion into a smaller, faster variant\n- Carried over from LTX-2.3: native 4K, synchronized audio-video\n\nOfficial model & files: https://huggingface.co/Lightricks/LTX-2.5\n## What this workflow does\n\nThis **Image-to-Video** workflow animates a first frame into a video. Load a starting image, describe the motion in the prompt, and the model continues the scene while holding character, lighting, and style : with synchronized audio.\n\n## Subgraph parameters\n\nThe **Image to Video (LTX-2.5)** node is a subgraph. Click the **Enter subgraph** button at the bottom of the node to open its internal graph, where you can inspect and fine-tune every step of the pipeline (conditioning, sampler, CFG guider, VAE decode, and more).\n\n| Parameter | What it does |\n|---|---|\n| first_frame | Starting image that the video continues from (load your own image in **Load First Frame**) |\n| prompt | Text prompt describing the motion, scene, lighting, camera, and style |\n| prompt_enhance | *(Optional, off by default)* Toggle the built-in Prompt Enhancer, which expands short prompts into rich cinematic instructions. Requires the separate prompt enhancer model (~10 GB) below and adds ~1-2 min of generation time |\n| duration | Clip length in seconds (Auto Duration can predict it from the action) |\n| width / height | Output resolution in pixels (e.g. 1280×720) |\n| seed | Random seed : set a fixed value to reproduce the same result |\n| frame_rate | Frames per second |\n| unet_name | Main model: LTX-2.5 distilled transformer (ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors) |\n| video_vae | Video VAE used for decoding (ltx-2.5-video-vae-bf16.safetensors) |\n| audio_vae | Audio VAE that produces synchronized audio (ltx-2.5-audio-vae-bf16.safetensors) |\n| clip_name | Text encoder: custom Gemma 4 12B with projection (gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors) |\n| upscale_model | Latent upscaler applied before decoding for higher-fidelity output |\n| prompt_enhance_model | Model checkpoint used by the Prompt Enhancer |\n\n## How to use\n\n1. Download the models listed in **Note: Model Links** and place them in ComfyUI's `models/` folder (the prompt enhancer model is optional - skip it unless you enable **prompt_enhance**)\n2. Replace the image in **Load First Frame** with your own starting frame\n3. Write a prompt describing the motion, optionally toggle **prompt_enhance** for short prompts\n4. Set **duration** / **width** / **height** / **frame_rate** (defaults work well) and hit **Queue**\n5. To dive deeper, click **Enter subgraph** at the bottom of the main node : every internal step (conditioning, sampler, CFG, VAE decode) can be edited there\n"+ ],+ "color": "#222",+ "bgcolor": "#000"+ },+ {+ "id": 401,+ "type": "MarkdownNote",+ "pos": [+ -60,+ 6390+ ],+ "size": [+ 550,+ 880+ ],+ "flags": {},+ "order": 2,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Note: Model Links",+ "properties": {},+ "widgets_values": [+ "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/gemma-4](https://huggingface.co/Comfy-Org/gemma-4)\n- [ModelScope:Comfy-Org/gemma-4](https://modelscope.cn/models/Comfy-Org/gemma-4)\n\n**Input Asset** \n\n- [neon_cyborg_portrait.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/neon_cyborg_portrait.png) — required workflow input (`input/neon_cyborg_portrait.png`)\n\n**text_encoders**\n\n- [gemma4_e2b_it_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e2b_it_int8_convrot.safetensors) (4.84 GB) — *optional, only needed when **prompt_enhance** is enabled*\n- [gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors](https://huggingface.co/Lightricks/LTX-2.5/resolve/main/text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors)\n\n**diffusion_models**\n\n- [ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors](https://huggingface.co/Lightricks/LTX-2.5/resolve/main/diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors)\n\n**vae**\n\n- [ltx-2.5-video-vae-bf16.safetensors](https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-video-vae-bf16.safetensors)\n- [ltx-2.5-audio-vae-bf16.safetensors](https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-audio-vae-bf16.safetensors)\n\n**latent_upscale_models**\n\n- [ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors](https://huggingface.co/Lightricks/LTX-2.5/resolve/main/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 text_encoders/\n│ │ ├── gemma4_e2b_it_int8_convrot.safetensors\n│ │ └── gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors\n│ ├── 📂 diffusion_models/\n│ │ └── ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors\n│ ├── 📂 vae/\n│ │ ├── ltx-2.5-video-vae-bf16.safetensors\n│ │ └── ltx-2.5-audio-vae-bf16.safetensors\n│ └── 📂 latent_upscale_models/\n│ └── ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"+ ],+ "color": "#222",+ "bgcolor": "#000"+ },+ {+ "id": 402,+ "type": "MarkdownNote",+ "pos": [+ 1540,+ 7460+ ],+ "size": [+ 300,+ 520+ ],+ "flags": {},+ "order": 3,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Note: Size Settings Reference",+ "properties": {},+ "widgets_values": [+ "| megapixels | Aspect | Output (multiple=32) |\n|---|---|---|\n| 0.2 | 16:9 | 608 x 352 |\n| 0.3 | 16:9 | 736 x 416 |\n| 0.4 | 16:9 | 864 x 480 |\n| 0.5 | 16:9 | 960 x 544 |\n| 0.6 | 16:9 | 1056 x 608 |\n| 0.7 | 16:9 | 1152 x 640 |\n| 0.8 | 16:9 | 1216 x 672 |\n| 0.9 | 16:9 | 1280 x 736 |\n| 1.0 | 16:9 | 1376 x 768 |\n| 1.2 | 16:9 | 1504 x 832 |\n| 1.5 | 16:9 | 1664 x 928 |\n| 1.8 | 16:9 | 1824 x 1024 |\n| 2.0 | 16:9 | 1920 x 1088 |\n"+ ],+ "color": "#222",+ "bgcolor": "#000"+ },+ {+ "id": 403,+ "type": "ResolutionSelector",+ "pos": [+ 1550,+ 7210+ ],+ "size": [+ 270,+ 170+ ],+ "flags": {},+ "order": 4,+ "mode": 0,+ "showAdvanced": false,+ "inputs": [],+ "outputs": [+ {+ "name": "width",+ "type": "INT",+ "links": [+ 783+ ]+ },+ {+ "name": "height",+ "type": "INT",+ "links": [+ 784+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.30.0",+ "Node name for S&R": "ResolutionSelector"+ },+ "widgets_values": [+ "16:9 (Widescreen)",+ 0.9,+ 32+ ]+ },+ {+ "id": 404,+ "type": "MarkdownNote",+ "pos": [+ -60,+ 6260+ ],+ "size": [+ 340,+ 90+ ],+ "flags": {},+ "order": 5,+ "mode": 0,+ "inputs": [],+ "outputs": [],+ "title": "Note: Model Links",+ "properties": {},+ "widgets_values": [+ "Before you download all the models, please make sure you have granted access to [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) first."+ ],+ "color": "#432",+ "bgcolor": "#653"+ }+ ],+ "links": [+ [+ 759,+ 398,+ 0,+ 75,+ 0,+ "VIDEO"+ ],+ [+ 764,+ 395,+ 0,+ 398,+ 0,+ "IMAGE"+ ],+ [+ 783,+ 403,+ 0,+ 398,+ 4,+ "INT"+ ],+ [+ 784,+ 403,+ 1,+ 398,+ 5,+ "INT"+ ]+ ],+ "groups": [],+ "definitions": {+ "subgraphs": [+ {+ "id": "6e397a2b-68f7-48f6-8930-f3a5491a163c",+ "version": 1,+ "state": {+ "lastGroupId": 27,+ "lastNodeId": 404,+ "lastLinkId": 784,+ "lastRerouteId": 0+ },+ "revision": 0,+ "config": {},+ "name": "Image to Video (LTX-2.5)",+ "inputNode": {+ "id": -10,+ "bounding": [+ -640,+ 6460,+ 183.814453125,+ 328+ ]+ },+ "outputNode": {+ "id": -20,+ "bounding": [+ 5540,+ 6496,+ 128,+ 68+ ]+ },+ "inputs": [+ {+ "id": "075be400-91e7-40a7-8f4e-d5c907af36e8",+ "name": "input",+ "type": "IMAGE,MASK",+ "linkIds": [+ 763+ ],+ "label": "first_frame",+ "pos": [+ -480.185546875,+ 6484+ ]+ },+ {+ "id": "5dab3f68-2044-46e7-b01f-4bf4b8bf4e79",+ "name": "value",+ "type": "STRING",+ "linkIds": [+ 765+ ],+ "label": "prompt",+ "pos": [+ -480.185546875,+ 6504+ ]+ },+ {+ "id": "21c9d37e-1f04-47f8-b752-22667180790c",+ "name": "value_1",+ "type": "BOOLEAN",+ "linkIds": [+ 766+ ],+ "label": "prompt_enhance",+ "pos": [+ -480.185546875,+ 6524+ ]+ },+ {+ "id": "00f26a0c-569d-4aa1-aa8a-281ad2f3c4e0",+ "name": "value_2",+ "type": "INT",+ "linkIds": [+ 767+ ],+ "label": "duration",+ "pos": [+ -480.185546875,+ 6544+ ]+ },+ {+ "id": "5d05d885-6c96-43dd-9cdb-f1d0c48045b5",+ "name": "value_3",+ "type": "INT",+ "linkIds": [+ 768+ ],+ "label": "width",+ "pos": [+ -480.185546875,+ 6564+ ]+ },+ {+ "id": "c646ee59-a1e0-433e-b2f5-f1d8217fe526",+ "name": "value_4",+ "type": "INT",+ "linkIds": [+ 769+ ],+ "label": "height",+ "pos": [+ -480.185546875,+ 6584+ ]+ },+ {+ "id": "7072a79b-5168-42ee-9088-e3f92ac07791",+ "name": "noise_seed",+ "type": "INT",+ "linkIds": [+ 770+ ],+ "pos": [+ -480.185546875,+ 6604+ ]+ },+ {+ "id": "85a2fb6d-1b63-40a7-adb6-5acc97a7cc99",+ "name": "value_5",+ "type": "INT",+ "linkIds": [+ 776+ ],+ "label": "frame_rate",+ "pos": [+ -480.185546875,+ 6624+ ]+ },+ {+ "id": "cbb7ddb9-95d0-4e63-a473-f37c329fbcda",+ "name": "unet_name",+ "type": "COMBO",+ "linkIds": [+ 777+ ],+ "pos": [+ -480.185546875,+ 6644+ ]+ },+ {+ "id": "dd0f8943-da6e-4182-8265-efb74da42c33",+ "name": "vae_name",+ "type": "COMBO",+ "linkIds": [+ 778+ ],+ "label": "video_vae",+ "pos": [+ -480.185546875,+ 6664+ ]+ },+ {+ "id": "69b9a13b-ee5a-4525-abd9-281d4c257277",+ "name": "vae_name_1",+ "type": "COMBO",+ "linkIds": [+ 779+ ],+ "label": "audio_vae",+ "pos": [+ -480.185546875,+ 6684+ ]+ },+ {+ "id": "de6a02d4-1e94-43e7-bf67-2e06f8688943",+ "name": "clip_name",+ "type": "COMBO",+ "linkIds": [+ 780+ ],+ "pos": [+ -480.185546875,+ 6704+ ]+ },+ {+ "id": "83db7bd8-4276-4950-8d15-ee1803e29646",+ "name": "model_name",+ "type": "COMBO",+ "linkIds": [+ 781+ ],+ "label": "upscale_model",+ "pos": [+ -480.185546875,+ 6724+ ]+ },+ {+ "id": "e5ca018e-1483-44ba-a318-3fc83c7f19ba",+ "name": "clip_name_1",+ "type": "COMBO",+ "linkIds": [+ 782+ ],+ "label": "prompt_enhance_model",+ "pos": [+ -480.185546875,+ 6744+ ]+ }+ ],+ "outputs": [+ {+ "id": "b92869b1-7119-47c1-8a9c-c52c131eb1f1",+ "name": "VIDEO",+ "type": "VIDEO",+ "linkIds": [+ 714+ ],+ "localized_name": "VIDEO",+ "pos": [+ 5564,+ 6520+ ]+ }+ ],+ "widgets": [],+ "nodes": [+ {+ "id": 393,+ "type": "CLIPLoader",+ "pos": [+ 120,+ 5290+ ],+ "size": [+ 370,+ 120+ ],+ "flags": {},+ "order": 46,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "clip_name",+ "name": "clip_name",+ "type": "COMBO",+ "widget": {+ "name": "clip_name"+ },+ "link": 782+ }+ ],+ "outputs": [+ {+ "localized_name": "CLIP",+ "name": "CLIP",+ "type": "CLIP",+ "links": [+ 749+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.29.0",+ "Node name for S&R": "CLIPLoader",+ "models": [+ {+ "name": "gemma4_e2b_it_int8_convrot.safetensors",+ "url": "https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e2b_it_int8_convrot.safetensors",+ "directory": "text_encoders"+ }+ ]+ },+ "widgets_values": [+ "gemma4_e2b_it_int8_convrot.safetensors",+ "ltxv",+ "default"+ ]+ },+ {+ "id": 380,+ "type": "TextGenerateLTX2Prompt",+ "pos": [+ 570,+ 5280+ ],+ "size": [+ 400,+ 466+ ],+ "flags": {+ "collapsed": false+ },+ "order": 36,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "clip",+ "name": "clip",+ "type": "CLIP",+ "link": 749+ },+ {+ "localized_name": "image",+ "name": "image",+ "shape": 7,+ "type": "IMAGE",+ "link": 757+ },+ {+ "localized_name": "video",+ "name": "video",+ "shape": 7,+ "type": "IMAGE",+ "link": null+ },+ {+ "localized_name": "audio",+ "name": "audio",+ "shape": 7,+ "type": "AUDIO",+ "link": null+ },+ {+ "localized_name": "prompt",+ "name": "prompt",+ "type": "STRING",+ "widget": {+ "name": "prompt"+ },+ "link": 723+ }+ ],+ "outputs": [+ {+ "localized_name": "generated_text",+ "name": "generated_text",+ "type": "STRING",+ "links": [+ 724+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "TextGenerateLTX2Prompt",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65+ },+ "widgets_values": [+ "",+ 600,+ "on",+ 0.7,+ 64,+ 0.95,+ 0.05,+ 1.15,+ 0,+ 0,+ false,+ true+ ]+ },+ {+ "id": 383,+ "type": "PrimitiveBoolean",+ "pos": [+ 140,+ 5760+ ],+ "size": [+ 270,+ 100+ ],+ "flags": {},+ "order": 39,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "value",+ "name": "value",+ "type": "BOOLEAN",+ "widget": {+ "name": "value"+ },+ "link": 766+ }+ ],+ "outputs": [+ {+ "localized_name": "BOOLEAN",+ "name": "BOOLEAN",+ "type": "BOOLEAN",+ "links": [+ 722+ ]+ }+ ],+ "title": "Boolean (Enable Prompt Enhance)",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.22.0",+ "Node name for S&R": "PrimitiveBoolean",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65+ },+ "widgets_values": [+ true+ ]+ },+ {+ "id": 364,+ "type": "CLIPTextEncode",+ "pos": [+ 1160,+ 6040+ ],+ "size": [+ 550,+ 740+ ],+ "flags": {},+ "order": 22,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "clip",+ "name": "clip",+ "type": "CLIP",+ "link": 732+ },+ {+ "localized_name": "text",+ "name": "text",+ "type": "STRING",+ "widget": {+ "name": "text"+ },+ "link": 721+ }+ ],+ "outputs": [+ {+ "localized_name": "CONDITIONING",+ "name": "CONDITIONING",+ "type": "CONDITIONING",+ "links": [+ 696+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.56",+ "Node name for S&R": "CLIPTextEncode",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ ""+ ],+ "color": "#232",+ "bgcolor": "#353"+ },+ {+ "id": 376,+ "type": "PrimitiveStringMultiline",+ "pos": [+ 150,+ 6080+ ],+ "size": [+ 370,+ 350+ ],+ "flags": {},+ "order": 33,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "value",+ "name": "value",+ "type": "STRING",+ "widget": {+ "name": "value"+ },+ "link": 765+ }+ ],+ "outputs": [+ {+ "localized_name": "STRING",+ "name": "STRING",+ "type": "STRING",+ "links": [+ 720,+ 723+ ]+ }+ ],+ "title": "Prompt",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "PrimitiveStringMultiline",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "Egyptian royal in blue-and-gold headdress and high collar, white dress with golden embroidery and armbands, desert, robot soldiers in formation left and right. She walks steadily forward, head held level and gaze fixed ahead—no dipping or lowering of the head. The camera performs a single, smooth push-in only: starting in a wider shot of her, the robots, and the desert, it moves steadily forward until she is in a medium or medium-close frame, then holds. She stops, posture and head still upright, and says: “The old gods are silent. I am not.” Robot soldiers shift or march in place; sand and fabric move with the wind. No pull-back; the only camera move is the continuous push-in."+ ]+ },+ {+ "id": 382,+ "type": "ComfySwitchNode",+ "pos": [+ 1100,+ 5690+ ],+ "size": [+ 270,+ 130+ ],+ "flags": {},+ "order": 38,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "on_false",+ "name": "on_false",+ "type": "STRING",+ "link": 720+ },+ {+ "localized_name": "on_true",+ "name": "on_true",+ "type": "STRING",+ "link": 724+ },+ {+ "localized_name": "switch",+ "name": "switch",+ "type": "BOOLEAN",+ "widget": {+ "name": "switch"+ },+ "link": 722+ }+ ],+ "outputs": [+ {+ "localized_name": "output",+ "name": "output",+ "type": "STRING",+ "links": [+ 721,+ 725+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.22.0",+ "Node name for S&R": "ComfySwitchNode",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65+ },+ "widgets_values": [+ false+ ]+ },+ {+ "id": 384,+ "type": "UNETLoader",+ "pos": [+ 650,+ 6200+ ],+ "size": [+ 420,+ 130+ ],+ "flags": {},+ "order": 40,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "unet_name",+ "name": "unet_name",+ "type": "COMBO",+ "widget": {+ "name": "unet_name"+ },+ "link": 777+ }+ ],+ "outputs": [+ {+ "localized_name": "MODEL",+ "name": "MODEL",+ "type": "MODEL",+ "links": [+ 771,+ 772+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.29.0",+ "Node name for S&R": "UNETLoader",+ "models": [+ {+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",+ "directory": "diffusion_models"+ }+ ]+ },+ "widgets_values": [+ "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",+ "default"+ ]+ },+ {+ "id": 381,+ "type": "PreviewAny",+ "pos": [+ 1410,+ 5300+ ],+ "size": [+ 510,+ 360+ ],+ "flags": {},+ "order": 37,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "source",+ "name": "source",+ "type": "*",+ "link": 725+ }+ ],+ "outputs": [+ {+ "localized_name": "STRING",+ "name": "STRING",+ "type": "STRING",+ "links": []+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "PreviewAny",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65+ },+ "widgets_values": []+ },+ {+ "id": 362,+ "type": "PrimitiveInt",+ "pos": [+ 150,+ 6630+ ],+ "size": [+ 370,+ 110+ ],+ "flags": {},+ "order": 21,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "value",+ "name": "value",+ "type": "INT",+ "widget": {+ "name": "value"+ },+ "link": 767+ }+ ],+ "outputs": [+ {+ "localized_name": "INT",+ "name": "INT",+ "type": "INT",+ "links": [+ 715+ ]+ }+ ],+ "title": "Duration",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.7.0",+ "Node name for S&R": "PrimitiveInt",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 5,+ "fixed"+ ]+ },+ {+ "id": 363,+ "type": "PrimitiveBoolean",+ "pos": [+ 160,+ 6480+ ],+ "size": [+ 370,+ 100+ ],+ "flags": {},+ "order": 0,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "localized_name": "BOOLEAN",+ "name": "BOOLEAN",+ "type": "BOOLEAN",+ "links": [+ 683,+ 693+ ]+ }+ ],+ "title": "Switch to Text to Video?",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.0",+ "Node name for S&R": "PrimitiveBoolean",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ false+ ]+ },+ {+ "id": 365,+ "type": "LTXVConditioning",+ "pos": [+ 1810,+ 6480+ ],+ "size": [+ 280,+ 130+ ],+ "flags": {},+ "order": 23,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "positive",+ "name": "positive",+ "type": "CONDITIONING",+ "link": 696+ },+ {+ "localized_name": "negative",+ "name": "negative",+ "type": "CONDITIONING",+ "link": 697+ },+ {+ "localized_name": "frame_rate",+ "name": "frame_rate",+ "type": "FLOAT",+ "widget": {+ "name": "frame_rate"+ },+ "link": 698+ }+ ],+ "outputs": [+ {+ "localized_name": "positive",+ "name": "positive",+ "type": "CONDITIONING",+ "links": [+ 735,+ 755+ ]+ },+ {+ "localized_name": "negative",+ "name": "negative",+ "type": "CONDITIONING",+ "links": [+ 736,+ 756+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.56",+ "Node name for S&R": "LTXVConditioning",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 24+ ]+ },+ {+ "id": 385,+ "type": "VAELoader",+ "pos": [+ 650,+ 6410+ ],+ "size": [+ 410,+ 70+ ],+ "flags": {},+ "order": 41,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "vae_name",+ "name": "vae_name",+ "type": "COMBO",+ "widget": {+ "name": "vae_name"+ },+ "link": 778+ }+ ],+ "outputs": [+ {+ "localized_name": "VAE",+ "name": "VAE",+ "type": "VAE",+ "links": [+ 727,+ 773,+ 774,+ 775+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.29.0",+ "Node name for S&R": "VAELoader",+ "models": [+ {+ "name": "ltx-2.5-video-vae-bf16.safetensors",+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-video-vae-bf16.safetensors",+ "directory": "vae"+ }+ ]+ },+ "widgets_values": [+ "ltx-2.5-video-vae-bf16.safetensors"+ ]+ },+ {+ "id": 386,+ "type": "VAELoader",+ "pos": [+ 650,+ 6560+ ],+ "size": [+ 400,+ 90+ ],+ "flags": {},+ "order": 42,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "vae_name",+ "name": "vae_name",+ "type": "COMBO",+ "widget": {+ "name": "vae_name"+ },+ "link": 779+ }+ ],+ "outputs": [+ {+ "localized_name": "VAE",+ "name": "VAE",+ "type": "VAE",+ "links": [+ 729,+ 730+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.29.0",+ "Node name for S&R": "VAELoader",+ "models": [+ {+ "name": "ltx-2.5-audio-vae-bf16.safetensors",+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-audio-vae-bf16.safetensors",+ "directory": "vae"+ }+ ]+ },+ "widgets_values": [+ "ltx-2.5-audio-vae-bf16.safetensors"+ ]+ },+ {+ "id": 372,+ "type": "PrimitiveInt",+ "pos": [+ 150,+ 6780+ ],+ "size": [+ 370,+ 110+ ],+ "flags": {},+ "order": 30,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "value",+ "name": "value",+ "type": "INT",+ "widget": {+ "name": "value"+ },+ "link": 768+ }+ ],+ "outputs": [+ {+ "localized_name": "INT",+ "name": "INT",+ "type": "INT",+ "links": [+ 687+ ]+ }+ ],+ "title": "Width",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "PrimitiveInt",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 1280,+ "fixed"+ ]+ },+ {+ "id": 373,+ "type": "CLIPTextEncode",+ "pos": [+ 1170,+ 6880+ ],+ "size": [+ 530,+ 240+ ],+ "flags": {},+ "order": 31,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "clip",+ "name": "clip",+ "type": "CLIP",+ "link": 731+ }+ ],+ "outputs": [+ {+ "localized_name": "CONDITIONING",+ "name": "CONDITIONING",+ "type": "CONDITIONING",+ "links": [+ 697+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.56",+ "Node name for S&R": "CLIPTextEncode",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "pc game, console game, video game, cartoon, childish, ugly"+ ],+ "color": "#323",+ "bgcolor": "#535"+ },+ {+ "id": 387,+ "type": "CLIPLoader",+ "pos": [+ 650,+ 6730+ ],+ "size": [+ 400,+ 120+ ],+ "flags": {},+ "order": 43,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "clip_name",+ "name": "clip_name",+ "type": "COMBO",+ "widget": {+ "name": "clip_name"+ },+ "link": 780+ }+ ],+ "outputs": [+ {+ "localized_name": "CLIP",+ "name": "CLIP",+ "type": "CLIP",+ "links": [+ 731,+ 732+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.29.0",+ "Node name for S&R": "CLIPLoader",+ "models": [+ {+ "name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",+ "directory": "text_encoders"+ }+ ]+ },+ "widgets_values": [+ "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",+ "ltxv",+ "default"+ ]+ },+ {+ "id": 360,+ "type": "PrimitiveInt",+ "pos": [+ 150,+ 6930+ ],+ "size": [+ 370,+ 110+ ],+ "flags": {},+ "order": 19,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "value",+ "name": "value",+ "type": "INT",+ "widget": {+ "name": "value"+ },+ "link": 769+ }+ ],+ "outputs": [+ {+ "localized_name": "INT",+ "name": "INT",+ "type": "INT",+ "links": [+ 688+ ]+ }+ ],+ "title": "Height",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "PrimitiveInt",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 720,+ "fixed"+ ]+ },+ {+ "id": 352,+ "type": "KSamplerSelect",+ "pos": [+ 2190,+ 6750+ ],+ "size": [+ 280,+ 110+ ],+ "flags": {},+ "order": 1,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "localized_name": "SAMPLER",+ "name": "SAMPLER",+ "type": "SAMPLER",+ "links": [+ 671+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.56",+ "Node name for S&R": "KSamplerSelect",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "euler_ancestral"+ ]+ },+ {+ "id": 339,+ "type": "RandomNoise",+ "pos": [+ 2190,+ 6300+ ],+ "size": [+ 280,+ 110+ ],+ "flags": {},+ "order": 6,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "noise_seed",+ "name": "noise_seed",+ "type": "INT",+ "widget": {+ "name": "noise_seed"+ },+ "link": 770+ }+ ],+ "outputs": [+ {+ "localized_name": "NOISE",+ "name": "NOISE",+ "type": "NOISE",+ "links": [+ 670+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.56",+ "Node name for S&R": "RandomNoise",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 900359092894726,+ "randomize"+ ]+ },+ {+ "id": 397,+ "type": "ManualSigmas",+ "pos": [+ 2170,+ 6920+ ],+ "size": [+ 500,+ 100+ ],+ "flags": {},+ "order": 2,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "localized_name": "SIGMAS",+ "name": "SIGMAS",+ "type": "SIGMAS",+ "links": [+ 754+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.14.1",+ "Node name for S&R": "ManualSigmas"+ },+ "widgets_values": [+ "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"+ ]+ },+ {+ "id": 361,+ "type": "PrimitiveInt",+ "pos": [+ 150,+ 7080+ ],+ "size": [+ 370,+ 110+ ],+ "flags": {},+ "order": 20,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "value",+ "name": "value",+ "type": "INT",+ "widget": {+ "name": "value"+ },+ "link": 776+ }+ ],+ "outputs": [+ {+ "localized_name": "INT",+ "name": "INT",+ "type": "INT",+ "links": [+ 695,+ 716+ ]+ }+ ],+ "title": "Frame Rate",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "PrimitiveInt",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 24,+ "fixed"+ ]+ },+ {+ "id": 371,+ "type": "LatentUpscaleModelLoader",+ "pos": [+ 650,+ 6930+ ],+ "size": [+ 410,+ 140+ ],+ "flags": {},+ "order": 29,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "model_name",+ "name": "model_name",+ "type": "COMBO",+ "widget": {+ "name": "model_name"+ },+ "link": 781+ }+ ],+ "outputs": [+ {+ "localized_name": "LATENT_UPSCALE_MODEL",+ "name": "LATENT_UPSCALE_MODEL",+ "type": "LATENT_UPSCALE_MODEL",+ "links": [+ 678+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.7.0",+ "Node name for S&R": "LatentUpscaleModelLoader",+ "models": [+ {+ "name": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",+ "url": "https://huggingface.co/Lightricks/LTX-2.5/resolve/main/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",+ "directory": "latent_upscale_models"+ }+ ],+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors"+ ]+ },+ {+ "id": 388,+ "type": "LTXVDualCFGGuider",+ "pos": [+ 2200,+ 6460+ ],+ "size": [+ 270,+ 160+ ],+ "flags": {},+ "order": 44,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "model",+ "name": "model",+ "type": "MODEL",+ "link": 771+ },+ {+ "localized_name": "positive",+ "name": "positive",+ "type": "CONDITIONING",+ "link": 735+ },+ {+ "localized_name": "negative",+ "name": "negative",+ "type": "CONDITIONING",+ "link": 736+ }+ ],+ "outputs": [+ {+ "localized_name": "GUIDER",+ "name": "GUIDER",+ "type": "GUIDER",+ "links": [+ 733+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.28.0",+ "Node name for S&R": "LTXVDualCFGGuider",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65+ },+ "widgets_values": [+ 1,+ 1+ ]+ },+ {+ "id": 344,+ "type": "SamplerCustomAdvanced",+ "pos": [+ 2610,+ 6510+ ],+ "size": [+ 230,+ 170+ ],+ "flags": {},+ "order": 8,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "noise",+ "name": "noise",+ "type": "NOISE",+ "link": 670+ },+ {+ "localized_name": "guider",+ "name": "guider",+ "type": "GUIDER",+ "link": 733+ },+ {+ "localized_name": "sampler",+ "name": "sampler",+ "type": "SAMPLER",+ "link": 671+ },+ {+ "localized_name": "sigmas",+ "name": "sigmas",+ "type": "SIGMAS",+ "link": 754+ },+ {+ "localized_name": "latent_image",+ "name": "latent_image",+ "type": "LATENT",+ "link": 672+ }+ ],+ "outputs": [+ {+ "localized_name": "output",+ "name": "output",+ "type": "LATENT",+ "links": [+ 702+ ]+ },+ {+ "localized_name": "denoised_output",+ "name": "denoised_output",+ "type": "LATENT",+ "links": []+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.60",+ "Node name for S&R": "SamplerCustomAdvanced",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": []+ },+ {+ "id": 357,+ "type": "LTXVImgToVideoInplace",+ "pos": [+ 2070,+ 7390+ ],+ "size": [+ 280,+ 180+ ],+ "flags": {},+ "order": 16,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "vae",+ "name": "vae",+ "type": "VAE",+ "link": 727+ },+ {+ "localized_name": "image",+ "name": "image",+ "type": "IMAGE",+ "link": 691+ },+ {+ "localized_name": "latent",+ "name": "latent",+ "type": "LATENT",+ "link": 692+ },+ {+ "localized_name": "bypass",+ "name": "bypass",+ "type": "BOOLEAN",+ "widget": {+ "name": "bypass"+ },+ "link": 693+ }+ ],+ "outputs": [+ {+ "localized_name": "latent",+ "name": "latent",+ "type": "LATENT",+ "links": [+ 699+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.7.0",+ "Node name for S&R": "LTXVImgToVideoInplace",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 0.7,+ false+ ]+ },+ {+ "id": 366,+ "type": "LTXVEmptyLatentAudio",+ "pos": [+ 1620,+ 7370+ ],+ "size": [+ 280,+ 170+ ],+ "flags": {},+ "order": 24,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "audio_vae",+ "name": "audio_vae",+ "type": "VAE",+ "link": 729+ },+ {+ "localized_name": "frames_number",+ "name": "frames_number",+ "type": "INT",+ "widget": {+ "name": "frames_number"+ },+ "link": 717+ },+ {+ "localized_name": "frame_rate",+ "name": "frame_rate",+ "type": "FLOAT,INT",+ "widget": {+ "name": "frame_rate"+ },+ "link": 701+ }+ ],+ "outputs": [+ {+ "localized_name": "Latent",+ "name": "Latent",+ "type": "LATENT",+ "links": [+ 700+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.68",+ "Node name for S&R": "LTXVEmptyLatentAudio",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 97,+ 25,+ 1+ ]+ },+ {+ "id": 367,+ "type": "LTXVSeparateAVLatent",+ "pos": [+ 2890,+ 6520+ ],+ "size": [+ 250,+ 100+ ],+ "flags": {},+ "order": 25,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "av_latent",+ "name": "av_latent",+ "type": "LATENT",+ "link": 702+ }+ ],+ "outputs": [+ {+ "localized_name": "video_latent",+ "name": "video_latent",+ "type": "LATENT",+ "links": [+ 677+ ]+ },+ {+ "localized_name": "audio_latent",+ "name": "audio_latent",+ "type": "LATENT",+ "links": [+ 666+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "LTXVSeparateAVLatent",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": []+ },+ {+ "id": 377,+ "type": "LTXVConcatAVLatent",+ "pos": [+ 2470,+ 7390+ ],+ "size": [+ 240,+ 100+ ],+ "flags": {},+ "order": 34,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "video_latent",+ "name": "video_latent",+ "type": "LATENT",+ "link": 699+ },+ {+ "localized_name": "audio_latent",+ "name": "audio_latent",+ "type": "LATENT",+ "link": 700+ }+ ],+ "outputs": [+ {+ "localized_name": "latent",+ "name": "latent",+ "type": "LATENT",+ "links": [+ 672+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.7.0",+ "Node name for S&R": "LTXVConcatAVLatent",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": []+ },+ {+ "id": 351,+ "type": "ResizeImageMaskNode",+ "pos": [+ 190,+ 7480+ ],+ "size": [+ 300,+ 118+ ],+ "flags": {},+ "order": 12,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "input",+ "name": "input",+ "type": "IMAGE,MASK",+ "link": 763+ }+ ],+ "outputs": [+ {+ "localized_name": "resized",+ "name": "resized",+ "type": "IMAGE,MASK",+ "links": [+ 752+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.7.0",+ "Node name for S&R": "ResizeImageMaskNode",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "scale longer dimension",+ 1536,+ "lanczos"+ ]+ },+ {+ "id": 353,+ "type": "ComfyMathExpression",+ "pos": [+ 1170,+ 7470+ ],+ "size": [+ 225,+ 0+ ],+ "flags": {+ "collapsed": true+ },+ "order": 13,+ "mode": 0,+ "inputs": [+ {+ "label": "a",+ "localized_name": "values.a",+ "name": "values.a",+ "type": "FLOAT,INT,BOOLEAN",+ "link": 687+ },+ {+ "label": "b",+ "localized_name": "values.b",+ "name": "values.b",+ "shape": 7,+ "type": "FLOAT,INT,BOOLEAN",+ "link": null+ }+ ],+ "outputs": [+ {+ "localized_name": "FLOAT",+ "name": "FLOAT",+ "type": "FLOAT",+ "links": []+ },+ {+ "localized_name": "INT",+ "name": "INT",+ "type": "INT",+ "links": [+ 689+ ]+ },+ {+ "localized_name": "BOOL",+ "name": "BOOL",+ "type": "BOOLEAN",+ "links": []+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "ComfyMathExpression",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "a/2"+ ]+ },+ {+ "id": 355,+ "type": "ComfyMathExpression",+ "pos": [+ 1170,+ 7530+ ],+ "size": [+ 225,+ 0+ ],+ "flags": {+ "collapsed": true+ },+ "order": 14,+ "mode": 0,+ "inputs": [+ {+ "label": "a",+ "localized_name": "values.a",+ "name": "values.a",+ "type": "FLOAT,INT,BOOLEAN",+ "link": 688+ },+ {+ "label": "b",+ "localized_name": "values.b",+ "name": "values.b",+ "shape": 7,+ "type": "FLOAT,INT,BOOLEAN",+ "link": null+ }+ ],+ "outputs": [+ {+ "localized_name": "FLOAT",+ "name": "FLOAT",+ "type": "FLOAT",+ "links": []+ },+ {+ "localized_name": "INT",+ "name": "INT",+ "type": "INT",+ "links": [+ 690+ ]+ },+ {+ "localized_name": "BOOL",+ "name": "BOOL",+ "type": "BOOLEAN",+ "links": []+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "ComfyMathExpression",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "a/2"+ ]+ },+ {+ "id": 350,+ "type": "LTXVPreprocess",+ "pos": [+ 620,+ 7480+ ],+ "size": [+ 290,+ 110+ ],+ "flags": {},+ "order": 11,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "image",+ "name": "image",+ "type": "IMAGE",+ "link": 752+ }+ ],+ "outputs": [+ {+ "localized_name": "output_image",+ "name": "output_image",+ "type": "IMAGE",+ "links": [+ 681,+ 691,+ 757+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.7.0",+ "Node name for S&R": "LTXVPreprocess",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 18+ ]+ },+ {+ "id": 356,+ "type": "EmptyLTXVLatentVideo",+ "pos": [+ 1630,+ 7600+ ],+ "size": [+ 280,+ 200+ ],+ "flags": {},+ "order": 15,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "width",+ "name": "width",+ "type": "INT",+ "widget": {+ "name": "width"+ },+ "link": 689+ },+ {+ "localized_name": "height",+ "name": "height",+ "type": "INT",+ "widget": {+ "name": "height"+ },+ "link": 690+ },+ {+ "localized_name": "length",+ "name": "length",+ "type": "INT",+ "widget": {+ "name": "length"+ },+ "link": 718+ }+ ],+ "outputs": [+ {+ "localized_name": "LATENT",+ "name": "LATENT",+ "type": "LATENT",+ "links": [+ 692+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.60",+ "Node name for S&R": "EmptyLTXVLatentVideo",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 768,+ 512,+ 97,+ 1+ ]+ },+ {+ "id": 348,+ "type": "LTXVLatentUpsampler",+ "pos": [+ 3260,+ 6410+ ],+ "size": [+ 330,+ 120+ ],+ "flags": {},+ "order": 9,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "samples",+ "name": "samples",+ "type": "LATENT",+ "link": 677+ },+ {+ "localized_name": "upscale_model",+ "name": "upscale_model",+ "type": "LATENT_UPSCALE_MODEL",+ "link": 678+ },+ {+ "localized_name": "vae",+ "name": "vae",+ "type": "VAE",+ "link": 773+ }+ ],+ "outputs": [+ {+ "localized_name": "LATENT",+ "name": "LATENT",+ "type": "LATENT",+ "links": [+ 682+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.14.1",+ "Node name for S&R": "LTXVLatentUpsampler",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": []+ },+ {+ "id": 349,+ "type": "LTXVImgToVideoInplace",+ "pos": [+ 3270,+ 6620+ ],+ "size": [+ 300,+ 180+ ],+ "flags": {},+ "order": 10,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "vae",+ "name": "vae",+ "type": "VAE",+ "link": 774+ },+ {+ "localized_name": "image",+ "name": "image",+ "type": "IMAGE",+ "link": 681+ },+ {+ "localized_name": "latent",+ "name": "latent",+ "type": "LATENT",+ "link": 682+ },+ {+ "localized_name": "bypass",+ "name": "bypass",+ "type": "BOOLEAN",+ "widget": {+ "name": "bypass"+ },+ "link": 683+ }+ ],+ "outputs": [+ {+ "localized_name": "latent",+ "name": "latent",+ "type": "LATENT",+ "links": [+ 665+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.7.0",+ "Node name for S&R": "LTXVImgToVideoInplace",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 1,+ false+ ]+ },+ {+ "id": 359,+ "type": "ComfyMathExpression",+ "pos": [+ 1170,+ 7670+ ],+ "size": [+ 225,+ 0+ ],+ "flags": {+ "collapsed": true+ },+ "order": 18,+ "mode": 0,+ "inputs": [+ {+ "label": "a",+ "localized_name": "values.a",+ "name": "values.a",+ "type": "FLOAT,INT,BOOLEAN",+ "link": 695+ },+ {+ "label": "b",+ "localized_name": "values.b",+ "name": "values.b",+ "shape": 7,+ "type": "FLOAT,INT,BOOLEAN",+ "link": null+ }+ ],+ "outputs": [+ {+ "localized_name": "FLOAT",+ "name": "FLOAT",+ "type": "FLOAT",+ "links": [+ 698,+ 713+ ]+ },+ {+ "localized_name": "INT",+ "name": "INT",+ "type": "INT",+ "links": [+ 701+ ]+ },+ {+ "localized_name": "BOOL",+ "name": "BOOL",+ "type": "BOOLEAN",+ "links": []+ }+ ],+ "title": "Math Expression (fps)",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.16.3",+ "Node name for S&R": "ComfyMathExpression",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "a"+ ]+ },+ {+ "id": 378,+ "type": "ComfyMathExpression",+ "pos": [+ 1180,+ 7770+ ],+ "size": [+ 225,+ 0+ ],+ "flags": {+ "collapsed": true+ },+ "order": 35,+ "mode": 0,+ "inputs": [+ {+ "label": "a",+ "localized_name": "values.a",+ "name": "values.a",+ "type": "FLOAT,INT,BOOLEAN",+ "link": 715+ },+ {+ "label": "b",+ "localized_name": "values.b",+ "name": "values.b",+ "shape": 7,+ "type": "FLOAT,INT,BOOLEAN",+ "link": 716+ },+ {+ "label": "c",+ "localized_name": "values.c",+ "name": "values.c",+ "shape": 7,+ "type": "FLOAT,INT,BOOLEAN",+ "link": null+ }+ ],+ "outputs": [+ {+ "localized_name": "FLOAT",+ "name": "FLOAT",+ "type": "FLOAT",+ "links": []+ },+ {+ "localized_name": "INT",+ "name": "INT",+ "type": "INT",+ "links": [+ 717,+ 718+ ]+ },+ {+ "localized_name": "BOOL",+ "name": "BOOL",+ "type": "BOOLEAN",+ "links": []+ }+ ],+ "title": "Math Expression (length)",+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.18.1",+ "Node name for S&R": "ComfyMathExpression",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "input_ue_unconnectable": {},+ "version": "7.7"+ }+ },+ "widgets_values": [+ "a * b + 1"+ ]+ },+ {+ "id": 338,+ "type": "RandomNoise",+ "pos": [+ 3710,+ 6150+ ],+ "size": [+ 280,+ 110+ ],+ "flags": {},+ "order": 3,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "localized_name": "NOISE",+ "name": "NOISE",+ "type": "NOISE",+ "links": [+ 703+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.75",+ "Node name for S&R": "RandomNoise",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 42,+ "fixed"+ ]+ },+ {+ "id": 340,+ "type": "LTXVConcatAVLatent",+ "pos": [+ 3710,+ 6760+ ],+ "size": [+ 280,+ 100+ ],+ "flags": {},+ "order": 7,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "video_latent",+ "name": "video_latent",+ "type": "LATENT",+ "link": 665+ },+ {+ "localized_name": "audio_latent",+ "name": "audio_latent",+ "type": "LATENT",+ "link": 666+ }+ ],+ "outputs": [+ {+ "localized_name": "latent",+ "name": "latent",+ "type": "LATENT",+ "links": [+ 707+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "LTXVConcatAVLatent",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": []+ },+ {+ "id": 396,+ "type": "ManualSigmas",+ "pos": [+ 3710,+ 6980+ ],+ "size": [+ 290,+ 110+ ],+ "flags": {},+ "order": 4,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "localized_name": "SIGMAS",+ "name": "SIGMAS",+ "type": "SIGMAS",+ "links": [+ 751+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "ManualSigmas",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "0.85, 0.7250, 0.4219, 0.0"+ ]+ },+ {+ "id": 391,+ "type": "LTXVDualCFGGuider",+ "pos": [+ 3710,+ 6310+ ],+ "size": [+ 270,+ 160+ ],+ "flags": {},+ "order": 45,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "model",+ "name": "model",+ "type": "MODEL",+ "link": 772+ },+ {+ "localized_name": "positive",+ "name": "positive",+ "type": "CONDITIONING",+ "link": 755+ },+ {+ "localized_name": "negative",+ "name": "negative",+ "type": "CONDITIONING",+ "link": 756+ }+ ],+ "outputs": [+ {+ "localized_name": "GUIDER",+ "name": "GUIDER",+ "type": "GUIDER",+ "links": [+ 744+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.28.0",+ "Node name for S&R": "LTXVDualCFGGuider",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65+ },+ "widgets_values": [+ 1,+ 1+ ]+ },+ {+ "id": 341,+ "type": "KSamplerSelect",+ "pos": [+ 3710,+ 6560+ ],+ "size": [+ 280,+ 110+ ],+ "flags": {},+ "order": 5,+ "mode": 0,+ "inputs": [],+ "outputs": [+ {+ "localized_name": "SAMPLER",+ "name": "SAMPLER",+ "type": "SAMPLER",+ "links": [+ 705+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.75",+ "Node name for S&R": "KSamplerSelect",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ "euler_ancestral"+ ]+ },+ {+ "id": 368,+ "type": "SamplerCustomAdvanced",+ "pos": [+ 4070,+ 6500+ ],+ "size": [+ 230,+ 170+ ],+ "flags": {},+ "order": 26,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "noise",+ "name": "noise",+ "type": "NOISE",+ "link": 703+ },+ {+ "localized_name": "guider",+ "name": "guider",+ "type": "GUIDER",+ "link": 744+ },+ {+ "localized_name": "sampler",+ "name": "sampler",+ "type": "SAMPLER",+ "link": 705+ },+ {+ "localized_name": "sigmas",+ "name": "sigmas",+ "type": "SIGMAS",+ "link": 751+ },+ {+ "localized_name": "latent_image",+ "name": "latent_image",+ "type": "LATENT",+ "link": 707+ }+ ],+ "outputs": [+ {+ "localized_name": "output",+ "name": "output",+ "type": "LATENT",+ "links": [+ 708+ ]+ },+ {+ "localized_name": "denoised_output",+ "name": "denoised_output",+ "type": "LATENT",+ "links": []+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.3.75",+ "Node name for S&R": "SamplerCustomAdvanced",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": []+ },+ {+ "id": 369,+ "type": "LTXVSeparateAVLatent",+ "pos": [+ 4370,+ 6500+ ],+ "size": [+ 230,+ 100+ ],+ "flags": {},+ "order": 27,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "av_latent",+ "name": "av_latent",+ "type": "LATENT",+ "link": 708+ }+ ],+ "outputs": [+ {+ "localized_name": "video_latent",+ "name": "video_latent",+ "type": "LATENT",+ "links": [+ 709+ ]+ },+ {+ "localized_name": "audio_latent",+ "name": "audio_latent",+ "type": "LATENT",+ "links": [+ 694+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "LTXVSeparateAVLatent",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": []+ },+ {+ "id": 374,+ "type": "VAEDecodeTiled",+ "pos": [+ 4760,+ 6360+ ],+ "size": [+ 280,+ 200+ ],+ "flags": {},+ "order": 32,+ "mode": 0,+ "showAdvanced": true,+ "inputs": [+ {+ "localized_name": "samples",+ "name": "samples",+ "type": "LATENT",+ "link": 709+ },+ {+ "localized_name": "vae",+ "name": "vae",+ "type": "VAE",+ "link": 775+ }+ ],+ "outputs": [+ {+ "localized_name": "IMAGE",+ "name": "IMAGE",+ "type": "IMAGE",+ "links": [+ 711+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.14.1",+ "Node name for S&R": "VAEDecodeTiled",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 512,+ 64,+ 64,+ 16+ ]+ },+ {+ "id": 358,+ "type": "LTXVAudioVAEDecode",+ "pos": [+ 4760,+ 6650+ ],+ "size": [+ 270,+ 100+ ],+ "flags": {},+ "order": 17,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "samples",+ "name": "samples",+ "type": "LATENT",+ "link": 694+ },+ {+ "label": "Audio VAE",+ "localized_name": "audio_vae",+ "name": "audio_vae",+ "type": "VAE",+ "link": 730+ }+ ],+ "outputs": [+ {+ "localized_name": "Audio",+ "name": "Audio",+ "type": "AUDIO",+ "links": [+ 712+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.7.0",+ "Node name for S&R": "LTXVAudioVAEDecode",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": []+ },+ {+ "id": 370,+ "type": "CreateVideo",+ "pos": [+ 5200,+ 6460+ ],+ "size": [+ 280,+ 130+ ],+ "flags": {},+ "order": 28,+ "mode": 0,+ "inputs": [+ {+ "localized_name": "images",+ "name": "images",+ "type": "IMAGE",+ "link": 711+ },+ {+ "localized_name": "audio",+ "name": "audio",+ "shape": 7,+ "type": "AUDIO",+ "link": 712+ },+ {+ "localized_name": "fps",+ "name": "fps",+ "type": "FLOAT",+ "widget": {+ "name": "fps"+ },+ "link": 713+ }+ ],+ "outputs": [+ {+ "localized_name": "VIDEO",+ "name": "VIDEO",+ "type": "VIDEO",+ "links": [+ 714+ ]+ }+ ],+ "properties": {+ "cnr_id": "comfy-core",+ "ver": "0.5.1",+ "Node name for S&R": "CreateVideo",+ "enableTabs": false,+ "tabWidth": 65,+ "tabXOffset": 10,+ "hasSecondTab": false,+ "secondTabText": "Send Back",+ "secondTabOffset": 80,+ "secondTabWidth": 65,+ "ue_properties": {+ "widget_ue_connectable": {},+ "version": "7.7",+ "input_ue_unconnectable": {}+ }+ },+ "widgets_values": [+ 24,+ 8+ ]+ }+ ],+ "groups": [+ {+ "id": 27,+ "title": "Prompt Enhancement",+ "bounding": [+ 100,+ 5200,+ 2010,+ 720+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 1,+ "title": "Model",+ "bounding": [+ 620,+ 5950,+ 480,+ 1270+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 3,+ "title": "Prompt",+ "bounding": [+ 1130,+ 5950,+ 980,+ 1270+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 19,+ "title": "Video Settings",+ "bounding": [+ 100,+ 5950,+ 490,+ 1270+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 2,+ "title": "Generate Low Resolution",+ "bounding": [+ 2140,+ 5950,+ 1020,+ 1270+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 7,+ "title": "Latent Upscale",+ "bounding": [+ 3190,+ 5950,+ 460,+ 1270+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 20,+ "title": "Image Preprocessing",+ "bounding": [+ 100,+ 7250,+ 1000,+ 610+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 21,+ "title": "Empty Latent",+ "bounding": [+ 1480,+ 7250,+ 1680,+ 610+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 22,+ "title": "Number conversion",+ "bounding": [+ 1130,+ 7250,+ 320,+ 610+ ],+ "color": "#3f789e",+ "flags": {}+ },+ {+ "id": 6,+ "title": "Generate High Resolution",+ "bounding": [+ 3680,+ 5950,+ 960,+ 1270+ ],+ "color": "#3f789e",+ "flags": {}+ }+ ],+ "links": [+ {+ "id": 749,+ "origin_id": 393,+ "origin_slot": 0,+ "target_id": 380,+ "target_slot": 0,+ "type": "CLIP"+ },+ {+ "id": 757,+ "origin_id": 350,+ "origin_slot": 0,+ "target_id": 380,+ "target_slot": 1,+ "type": "IMAGE"+ },+ {+ "id": 723,+ "origin_id": 376,+ "origin_slot": 0,+ "target_id": 380,+ "target_slot": 4,+ "type": "STRING"+ },+ {+ "id": 732,+ "origin_id": 387,+ "origin_slot": 0,+ "target_id": 364,+ "target_slot": 0,+ "type": "CLIP"+ },+ {+ "id": 721,+ "origin_id": 382,+ "origin_slot": 0,+ "target_id": 364,+ "target_slot": 1,+ "type": "STRING"+ },+ {+ "id": 720,+ "origin_id": 376,+ "origin_slot": 0,+ "target_id": 382,+ "target_slot": 0,+ "type": "STRING"+ },+ {+ "id": 724,+ "origin_id": 380,+ "origin_slot": 0,+ "target_id": 382,+ "target_slot": 1,+ "type": "STRING"+ },+ {+ "id": 722,+ "origin_id": 383,+ "origin_slot": 0,+ "target_id": 382,+ "target_slot": 2,+ "type": "BOOLEAN"+ },+ {+ "id": 725,+ "origin_id": 382,+ "origin_slot": 0,+ "target_id": 381,+ "target_slot": 0,+ "type": "STRING"+ },+ {+ "id": 696,+ "origin_id": 364,+ "origin_slot": 0,+ "target_id": 365,+ "target_slot": 0,+ "type": "CONDITIONING"+ },+ {+ "id": 697,+ "origin_id": 373,+ "origin_slot": 0,+ "target_id": 365,+ "target_slot": 1,+ "type": "CONDITIONING"+ },+ {+ "id": 698,+ "origin_id": 359,+ "origin_slot": 0,+ "target_id": 365,+ "target_slot": 2,+ "type": "FLOAT"+ },+ {+ "id": 731,+ "origin_id": 387,+ "origin_slot": 0,+ "target_id": 373,+ "target_slot": 0,+ "type": "CLIP"+ },+ {+ "id": 735,+ "origin_id": 365,+ "origin_slot": 0,+ "target_id": 388,+ "target_slot": 1,+ "type": "CONDITIONING"+ },+ {+ "id": 736,+ "origin_id": 365,+ "origin_slot": 1,+ "target_id": 388,+ "target_slot": 2,+ "type": "CONDITIONING"+ },+ {+ "id": 670,+ "origin_id": 339,+ "origin_slot": 0,+ "target_id": 344,+ "target_slot": 0,+ "type": "NOISE"+ },+ {+ "id": 733,+ "origin_id": 388,+ "origin_slot": 0,+ "target_id": 344,+ "target_slot": 1,+ "type": "GUIDER"+ },+ {+ "id": 671,+ "origin_id": 352,+ "origin_slot": 0,+ "target_id": 344,+ "target_slot": 2,+ "type": "SAMPLER"+ },+ {+ "id": 754,+ "origin_id": 397,+ "origin_slot": 0,+ "target_id": 344,+ "target_slot": 3,+ "type": "SIGMAS"+ },+ {+ "id": 672,+ "origin_id": 377,+ "origin_slot": 0,+ "target_id": 344,+ "target_slot": 4,+ "type": "LATENT"+ },+ {+ "id": 727,+ "origin_id": 385,+ "origin_slot": 0,+ "target_id": 357,+ "target_slot": 0,+ "type": "VAE"+ },+ {+ "id": 691,+ "origin_id": 350,+ "origin_slot": 0,+ "target_id": 357,+ "target_slot": 1,+ "type": "IMAGE"+ },+ {+ "id": 692,+ "origin_id": 356,+ "origin_slot": 0,+ "target_id": 357,+ "target_slot": 2,+ "type": "LATENT"+ },+ {+ "id": 693,+ "origin_id": 363,+ "origin_slot": 0,+ "target_id": 357,+ "target_slot": 3,+ "type": "BOOLEAN"+ },+ {+ "id": 729,+ "origin_id": 386,+ "origin_slot": 0,+ "target_id": 366,+ "target_slot": 0,+ "type": "VAE"+ },+ {+ "id": 717,+ "origin_id": 378,+ "origin_slot": 1,+ "target_id": 366,+ "target_slot": 1,+ "type": "INT"+ },+ {+ "id": 701,+ "origin_id": 359,+ "origin_slot": 1,+ "target_id": 366,+ "target_slot": 2,+ "type": "INT"+ },+ {+ "id": 702,+ "origin_id": 344,+ "origin_slot": 0,+ "target_id": 367,+ "target_slot": 0,+ "type": "LATENT"+ },+ {+ "id": 699,+ "origin_id": 357,+ "origin_slot": 0,+ "target_id": 377,+ "target_slot": 0,+ "type": "LATENT"+ },+ {+ "id": 700,+ "origin_id": 366,+ "origin_slot": 0,+ "target_id": 377,+ "target_slot": 1,+ "type": "LATENT"+ },+ {+ "id": 687,+ "origin_id": 372,+ "origin_slot": 0,+ "target_id": 353,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 688,+ "origin_id": 360,+ "origin_slot": 0,+ "target_id": 355,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 752,+ "origin_id": 351,+ "origin_slot": 0,+ "target_id": 350,+ "target_slot": 0,+ "type": "IMAGE"+ },+ {+ "id": 689,+ "origin_id": 353,+ "origin_slot": 1,+ "target_id": 356,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 690,+ "origin_id": 355,+ "origin_slot": 1,+ "target_id": 356,+ "target_slot": 1,+ "type": "INT"+ },+ {+ "id": 718,+ "origin_id": 378,+ "origin_slot": 1,+ "target_id": 356,+ "target_slot": 2,+ "type": "INT"+ },+ {+ "id": 677,+ "origin_id": 367,+ "origin_slot": 0,+ "target_id": 348,+ "target_slot": 0,+ "type": "LATENT"+ },+ {+ "id": 678,+ "origin_id": 371,+ "origin_slot": 0,+ "target_id": 348,+ "target_slot": 1,+ "type": "LATENT_UPSCALE_MODEL"+ },+ {+ "id": 681,+ "origin_id": 350,+ "origin_slot": 0,+ "target_id": 349,+ "target_slot": 1,+ "type": "IMAGE"+ },+ {+ "id": 682,+ "origin_id": 348,+ "origin_slot": 0,+ "target_id": 349,+ "target_slot": 2,+ "type": "LATENT"+ },+ {+ "id": 683,+ "origin_id": 363,+ "origin_slot": 0,+ "target_id": 349,+ "target_slot": 3,+ "type": "BOOLEAN"+ },+ {+ "id": 695,+ "origin_id": 361,+ "origin_slot": 0,+ "target_id": 359,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 715,+ "origin_id": 362,+ "origin_slot": 0,+ "target_id": 378,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 716,+ "origin_id": 361,+ "origin_slot": 0,+ "target_id": 378,+ "target_slot": 1,+ "type": "INT"+ },+ {+ "id": 665,+ "origin_id": 349,+ "origin_slot": 0,+ "target_id": 340,+ "target_slot": 0,+ "type": "LATENT"+ },+ {+ "id": 666,+ "origin_id": 367,+ "origin_slot": 1,+ "target_id": 340,+ "target_slot": 1,+ "type": "LATENT"+ },+ {+ "id": 755,+ "origin_id": 365,+ "origin_slot": 0,+ "target_id": 391,+ "target_slot": 1,+ "type": "CONDITIONING"+ },+ {+ "id": 756,+ "origin_id": 365,+ "origin_slot": 1,+ "target_id": 391,+ "target_slot": 2,+ "type": "CONDITIONING"+ },+ {+ "id": 703,+ "origin_id": 338,+ "origin_slot": 0,+ "target_id": 368,+ "target_slot": 0,+ "type": "NOISE"+ },+ {+ "id": 744,+ "origin_id": 391,+ "origin_slot": 0,+ "target_id": 368,+ "target_slot": 1,+ "type": "GUIDER"+ },+ {+ "id": 705,+ "origin_id": 341,+ "origin_slot": 0,+ "target_id": 368,+ "target_slot": 2,+ "type": "SAMPLER"+ },+ {+ "id": 751,+ "origin_id": 396,+ "origin_slot": 0,+ "target_id": 368,+ "target_slot": 3,+ "type": "SIGMAS"+ },+ {+ "id": 707,+ "origin_id": 340,+ "origin_slot": 0,+ "target_id": 368,+ "target_slot": 4,+ "type": "LATENT"+ },+ {+ "id": 708,+ "origin_id": 368,+ "origin_slot": 0,+ "target_id": 369,+ "target_slot": 0,+ "type": "LATENT"+ },+ {+ "id": 709,+ "origin_id": 369,+ "origin_slot": 0,+ "target_id": 374,+ "target_slot": 0,+ "type": "LATENT"+ },+ {+ "id": 694,+ "origin_id": 369,+ "origin_slot": 1,+ "target_id": 358,+ "target_slot": 0,+ "type": "LATENT"+ },+ {+ "id": 730,+ "origin_id": 386,+ "origin_slot": 0,+ "target_id": 358,+ "target_slot": 1,+ "type": "VAE"+ },+ {+ "id": 711,+ "origin_id": 374,+ "origin_slot": 0,+ "target_id": 370,+ "target_slot": 0,+ "type": "IMAGE"+ },+ {+ "id": 712,+ "origin_id": 358,+ "origin_slot": 0,+ "target_id": 370,+ "target_slot": 1,+ "type": "AUDIO"+ },+ {+ "id": 713,+ "origin_id": 359,+ "origin_slot": 0,+ "target_id": 370,+ "target_slot": 2,+ "type": "FLOAT"+ },+ {+ "id": 714,+ "origin_id": 370,+ "origin_slot": 0,+ "target_id": -20,+ "target_slot": 0,+ "type": "VIDEO"+ },+ {+ "id": 763,+ "origin_id": -10,+ "origin_slot": 0,+ "target_id": 351,+ "target_slot": 0,+ "type": "IMAGE,MASK"+ },+ {+ "id": 765,+ "origin_id": -10,+ "origin_slot": 1,+ "target_id": 376,+ "target_slot": 0,+ "type": "STRING"+ },+ {+ "id": 766,+ "origin_id": -10,+ "origin_slot": 2,+ "target_id": 383,+ "target_slot": 0,+ "type": "BOOLEAN"+ },+ {+ "id": 767,+ "origin_id": -10,+ "origin_slot": 3,+ "target_id": 362,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 768,+ "origin_id": -10,+ "origin_slot": 4,+ "target_id": 372,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 769,+ "origin_id": -10,+ "origin_slot": 5,+ "target_id": 360,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 770,+ "origin_id": -10,+ "origin_slot": 6,+ "target_id": 339,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 771,+ "origin_id": 384,+ "origin_slot": 0,+ "target_id": 388,+ "target_slot": 0,+ "type": "MODEL"+ },+ {+ "id": 772,+ "origin_id": 384,+ "origin_slot": 0,+ "target_id": 391,+ "target_slot": 0,+ "type": "MODEL"+ },+ {+ "id": 773,+ "origin_id": 385,+ "origin_slot": 0,+ "target_id": 348,+ "target_slot": 2,+ "type": "VAE"+ },+ {+ "id": 774,+ "origin_id": 385,+ "origin_slot": 0,+ "target_id": 349,+ "target_slot": 0,+ "type": "VAE"+ },+ {+ "id": 775,+ "origin_id": 385,+ "origin_slot": 0,+ "target_id": 374,+ "target_slot": 1,+ "type": "VAE"+ },+ {+ "id": 776,+ "origin_id": -10,+ "origin_slot": 7,+ "target_id": 361,+ "target_slot": 0,+ "type": "INT"+ },+ {+ "id": 777,+ "origin_id": -10,+ "origin_slot": 8,+ "target_id": 384,+ "target_slot": 0,+ "type": "COMBO"+ },+ {+ "id": 778,+ "origin_id": -10,+ "origin_slot": 9,+ "target_id": 385,+ "target_slot": 0,+ "type": "COMBO"+ },+ {+ "id": 779,+ "origin_id": -10,+ "origin_slot": 10,+ "target_id": 386,+ "target_slot": 0,+ "type": "COMBO"+ },+ {+ "id": 780,+ "origin_id": -10,+ "origin_slot": 11,+ "target_id": 387,+ "target_slot": 0,+ "type": "COMBO"+ },+ {+ "id": 781,+ "origin_id": -10,+ "origin_slot": 12,+ "target_id": 371,+ "target_slot": 0,+ "type": "COMBO"+ },+ {+ "id": 782,+ "origin_id": -10,+ "origin_slot": 13,+ "target_id": 393,+ "target_slot": 0,+ "type": "COMBO"+ }+ ],+ "extra": {}+ }+ ]+ },+ "config": {},+ "extra": {+ "frontendVersion": "1.48.7",+ "workflowRendererVersion": "Vue-corrected",+ "prompt": {+ "1": {+ "inputs": {+ "ckpt_name": "ltx-av-step-1751000_vocoder_24K.safetensors"+ },+ "class_type": "CheckpointLoaderSimple",+ "_meta": {+ "title": "Load Checkpoint"+ }+ },+ "2": {+ "inputs": {+ "gemma_path": "gemma-3-12b-it-qat-q4_0-unquantized_readout_proj/model/model.safetensors",+ "ltxv_path": "ltx-av-step-1751000_vocoder_24K.safetensors",+ "max_length": 1024+ },+ "class_type": "LTXVGemmaCLIPModelLoader",+ "_meta": {+ "title": "🅛🅣🅧 Gemma 3 Model Loader"+ }+ },+ "3": {+ "inputs": {+ "text": "",+ "clip": [+ "2",+ 0+ ]+ },+ "class_type": "CLIPTextEncode",+ "_meta": {+ "title": "CLIP Text Encode (Prompt)"+ }+ },+ "4": {+ "inputs": {+ "text": "blurry, low quality, still frame, frames, watermark, overlay, titles, has blurbox, has subtitles",+ "clip": [+ "2",+ 0+ ]+ },+ "class_type": "CLIPTextEncode",+ "_meta": {+ "title": "CLIP Text Encode (Prompt)"+ }+ },+ "8": {+ "inputs": {+ "sampler_name": "euler"+ },+ "class_type": "KSamplerSelect",+ "_meta": {+ "title": "KSamplerSelect"+ }+ },+ "9": {+ "inputs": {+ "steps": 20,+ "max_shift": 2.05,+ "base_shift": 0.95,+ "stretch": true,+ "terminal": 0.1,+ "latent": [+ "28",+ 0+ ]+ },+ "class_type": "LTXVScheduler",+ "_meta": {+ "title": "LTXVScheduler"+ }+ },+ "11": {+ "inputs": {+ "noise_seed": 10+ },+ "class_type": "RandomNoise",+ "_meta": {+ "title": "RandomNoise"+ }+ },+ "12": {+ "inputs": {+ "samples": [+ "29",+ 0+ ],+ "vae": [+ "1",+ 2+ ]+ },+ "class_type": "VAEDecode",+ "_meta": {+ "title": "VAE Decode"+ }+ },+ "13": {+ "inputs": {+ "ckpt_name": "ltx-av-step-1751000_vocoder_24K.safetensors"+ },+ "class_type": "LTXVAudioVAELoader",+ "_meta": {+ "title": "🅛🅣🅧 LTXV Audio VAE Loader"+ }+ },+ "14": {+ "inputs": {+ "samples": [+ "29",+ 1+ ],+ "audio_vae": [+ "13",+ 0+ ]+ },+ "class_type": "LTXVAudioVAEDecode",+ "_meta": {+ "title": "🅛🅣🅧 LTXV Audio VAE Decode"+ }+ },+ "15": {+ "inputs": {+ "frame_rate": [+ "23",+ 0+ ],+ "loop_count": 0,+ "filename_prefix": "AnimateDiff",+ "format": "video/h264-mp4",+ "pix_fmt": "yuv420p",+ "crf": 19,+ "save_metadata": true,+ "trim_to_audio": false,+ "pingpong": false,+ "save_output": true,+ "images": [+ "12",+ 0+ ],+ "audio": [+ "14",+ 0+ ]+ },+ "class_type": "VHS_VideoCombine",+ "_meta": {+ "title": "Video Combine 🎥🅥🅗🅢"+ }+ },+ "17": {+ "inputs": {+ "skip_blocks": "29",+ "model": [+ "28",+ 1+ ],+ "positive": [+ "22",+ 0+ ],+ "negative": [+ "22",+ 1+ ],+ "parameters": [+ "18",+ 0+ ]+ },+ "class_type": "MultimodalGuider",+ "_meta": {+ "title": "🅛🅣🅧 Multimodal Guider"+ }+ },+ "18": {+ "inputs": {+ "modality": "VIDEO",+ "cfg": 3,+ "stg": 0,+ "rescale": 0,+ "modality_scale": 3,+ "parameters": [+ "19",+ 0+ ]+ },+ "class_type": "GuiderParameters",+ "_meta": {+ "title": "🅛🅣🅧 Guider Parameters"+ }+ },+ "19": {+ "inputs": {+ "modality": "AUDIO",+ "cfg": 7,+ "stg": 0,+ "rescale": 0,+ "modality_scale": 3+ },+ "class_type": "GuiderParameters",+ "_meta": {+ "title": "🅛🅣🅧 Guider Parameters"+ }+ },+ "21": {+ "inputs": {+ "audioUI": "",+ "audio": [+ "14",+ 0+ ]+ },+ "class_type": "PreviewAudio",+ "_meta": {+ "title": "PreviewAudio"+ }+ },+ "22": {+ "inputs": {+ "frame_rate": [+ "23",+ 0+ ],+ "positive": [+ "3",+ 0+ ],+ "negative": [+ "4",+ 0+ ]+ },+ "class_type": "LTXVConditioning",+ "_meta": {+ "title": "LTXVConditioning"+ }+ },+ "23": {+ "inputs": {+ "value": 25+ },+ "class_type": "FloatConstant",+ "_meta": {+ "title": "Float Constant"+ }+ },+ "26": {+ "inputs": {+ "frames_number": [+ "27",+ 0+ ],+ "frame_rate": [+ "42",+ 0+ ],+ "batch_size": 1+ },+ "class_type": "LTXVEmptyLatentAudio",+ "_meta": {+ "title": "🅛🅣🅧 LTXV Empty Latent Audio"+ }+ },+ "27": {+ "inputs": {+ "value": 105+ },+ "class_type": "INTConstant",+ "_meta": {+ "title": "INT Constant"+ }+ },+ "28": {+ "inputs": {+ "video_latent": [+ "43",+ 0+ ],+ "audio_latent": [+ "26",+ 0+ ],+ "model": [+ "44",+ 0+ ]+ },+ "class_type": "LTXVConcatAVLatent",+ "_meta": {+ "title": "🅛🅣🅧 LTXV Concat AV Latent"+ }+ },+ "29": {+ "inputs": {+ "av_latent": [+ "41",+ 0+ ],+ "model": [+ "28",+ 1+ ]+ },+ "class_type": "LTXVSeparateAVLatent",+ "_meta": {+ "title": "🅛🅣🅧 LTXV Separate AV Latent"+ }+ },+ "41": {+ "inputs": {+ "noise": [+ "11",+ 0+ ],+ "guider": [+ "17",+ 0+ ],+ "sampler": [+ "8",+ 0+ ],+ "sigmas": [+ "9",+ 0+ ],+ "latent_image": [+ "28",+ 0+ ]+ },+ "class_type": "SamplerCustomAdvanced",+ "_meta": {+ "title": "SamplerCustomAdvanced"+ }+ },+ "42": {+ "inputs": {+ "a": [+ "23",+ 0+ ]+ },+ "class_type": "CM_FloatToInt",+ "_meta": {+ "title": "FloatToInt"+ }+ },+ "43": {+ "inputs": {+ "width": 768,+ "height": 512,+ "length": [+ "27",+ 0+ ],+ "batch_size": 1+ },+ "class_type": "EmptyLTXVLatentVideo",+ "_meta": {+ "title": "EmptyLTXVLatentVideo"+ }+ },+ "44": {+ "inputs": {+ "torch_compile": true,+ "disable_backup": false,+ "model": [+ "1",+ 0+ ]+ },+ "class_type": "LTXVSequenceParallelMultiGPUPatcher",+ "_meta": {+ "title": "LTXVSequenceParallelMultiGPUPatcher"+ }+ },+ "45": {+ "inputs": {+ "frame_idx": 0,+ "strength": 1+ },+ "class_type": "LTXVAddGuide",+ "_meta": {+ "title": "LTXVAddGuide"+ }+ }+ },+ "comfy_fork_version": "feature/av_inference@a6994ed1",+ "VHS_latentpreview": false,+ "VHS_latentpreviewrate": 0,+ "VHS_MetadataImage": true,+ "VHS_KeepIntermediate": true,+ "ue_links": [],+ "ds": {+ "scale": 0.5372579276232843,+ "offset": [+ -997.9255316404019,+ -5946.687550493496+ ]+ }+ },+ "version": 0.4+}diff --git a/src/api/__tests__/ltx25-own-workflow.test.ts b/src/api/__tests__/ltx25-own-workflow.test.tsnew file mode 100644index 00000000..21701565--- /dev/null+++ b/src/api/__tests__/ltx25-own-workflow.test.ts@@ -0,0 +1,213 @@+/**+ * GitHub #196: the LTX 2.5 image-to-video template of Comfy-Org runs in+ * ComfyUI but not in LU. What LU did wrong with it, one case each:+ * - every VAE and CLIP loader got the one file LU picked, though the+ * workflow needs a video and an audio VAE, a text encoder and a prompt+ * enhancer;+ * - without a KSampler the first CLIPTextEncode counted as the positive+ * prompt, and in the template that is the negative one;+ * - the size is set by a ResolutionSelector (aspect ratio and megapixels),+ * so a portrait run still came out 16:9.+ * At the end the real template file goes the whole way: import through the+ * node definitions of ComfyUI v0.42.4, parameter detection, injection.+ *+ * Run: npx vitest run src/api/__tests__/ltx25-own-workflow.test.ts+ */+import { describe, it, expect, vi, beforeEach } from 'vitest'+import { readFileSync } from 'node:fs'+import { join } from 'node:path'+import type { ComfyApiGraph } from '../../types/comfy-graph'+import type { ComfyNodeDefs } from '../comfy-ui-format'+import type { VideoParams } from '../comfyui'++const installed = {+ vae: ['ltx-2.5-audio-vae-bf16.safetensors', 'ltx-2.5-video-vae-bf16.safetensors'],+ clip: ['gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors', 'gemma4_e2b_it_int8_convrot.safetensors'],+}++vi.mock('../comfyui', async (importOriginal) => ({+ ...(await importOriginal<typeof import('../comfyui')>()),+ getVAEModels: vi.fn(async () => installed.vae),+ getCLIPModels: vi.fn(async () => installed.clip),+ findMatchingVAE: vi.fn(async () => 'lu_pick_vae.safetensors'),+ findMatchingCLIP: vi.fn(async () => 'lu_pick_clip.safetensors'),+}))++const { autoDetectParameterMap, injectParameters, parseImportedWorkflow } = await import('../workflows')+const { readWorkflowText } = await import('../workflow-import')+const { luSetInputs, paramKey } = await import('../workflow-params')++const portrait: VideoParams = {+ prompt: 'a lighthouse at dusk', negativePrompt: 'blurry', model: 'ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors',+ sampler: 'euler', scheduler: 'simple', steps: 8, cfgScale: 1,+ width: 480, height: 832, seed: 7, batchSize: 1, frames: 121, fps: 24,+ inputImage: 'upload_1.png',+}++beforeEach(() => {+ installed.vae = ['ltx-2.5-audio-vae-bf16.safetensors', 'ltx-2.5-video-vae-bf16.safetensors']+ installed.clip = ['gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors', 'gemma4_e2b_it_int8_convrot.safetensors']+})++// An API graph shaped like the template, small: the negative encoder comes+// first, the positive text arrives over a wire from a prompt box, the+// conditioning runs through LTXVConditioning into a guider, no KSampler.+function ltxGraph(): ComfyApiGraph {+ return {+ '1': { class_type: 'CLIPTextEncode', inputs: { text: 'ugly, cartoon', clip: ['5', 0] } },+ '2': { class_type: 'CLIPTextEncode', inputs: { text: ['8', 0], clip: ['5', 0] } },+ '3': { class_type: 'LTXVConditioning', inputs: { positive: ['2', 0], negative: ['1', 0], frame_rate: 24 } },+ '4': { class_type: 'CFGGuider', inputs: { model: ['9', 0], positive: ['3', 0], negative: ['3', 1], cfg: 1 } },+ '5': { class_type: 'CLIPLoader', inputs: { clip_name: 'gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors', type: 'ltxv', device: 'default' } },+ '6': { class_type: 'VAELoader', inputs: { vae_name: 'ltx-2.5-video-vae-bf16.safetensors' } },+ '7': { class_type: 'VAELoader', inputs: { vae_name: 'ltx-2.5-audio-vae-bf16.safetensors' } },+ '8': { class_type: 'PrimitiveStringMultiline', inputs: { value: 'a robot on a roof' } },+ '9': { class_type: 'UNETLoader', inputs: { unet_name: 'ltx.safetensors', weight_dtype: 'default' } },+ '10': { class_type: 'ResolutionSelector', inputs: { aspect_ratio: '16:9 (Widescreen)', megapixels: 0.9, multiple: 32 } },+ '11': { class_type: 'CLIPLoader', inputs: { clip_name: 'gemma4_e2b_it_int8_convrot.safetensors', type: 'ltxv', device: 'default' } },+ }+}++describe('VAE and CLIP loaders keep the files the workflow names', () => {+ it('a video and an audio VAE, a text encoder and an enhancer all stay as they are', async () => {+ const wf = ltxGraph()+ const sent = await injectParameters(wf, autoDetectParameterMap(wf), portrait, 'ltx25')+ expect(sent['6'].inputs?.vae_name).toBe('ltx-2.5-video-vae-bf16.safetensors')+ expect(sent['7'].inputs?.vae_name).toBe('ltx-2.5-audio-vae-bf16.safetensors')+ expect(sent['5'].inputs?.clip_name).toBe('gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors')+ expect(sent['11'].inputs?.clip_name).toBe('gemma4_e2b_it_int8_convrot.safetensors')+ expect(sent['5'].inputs?.type).toBe('ltxv')+ })++ it('only a file this ComfyUI lacks is replaced by LU\'s pick', async () => {+ installed.vae = ['ltx-2.5-video-vae-bf16.safetensors']+ installed.clip = []+ const wf = ltxGraph()+ const sent = await injectParameters(wf, autoDetectParameterMap(wf), portrait, 'ltx25')+ expect(sent['6'].inputs?.vae_name).toBe('ltx-2.5-video-vae-bf16.safetensors')+ expect(sent['7'].inputs?.vae_name).toBe('lu_pick_vae.safetensors')+ expect(sent['5'].inputs?.clip_name).toBe('lu_pick_clip.safetensors')+ })++ it('a VAE the user chose still wins', async () => {+ const wf = ltxGraph()+ const sent = await injectParameters(wf, autoDetectParameterMap(wf), portrait, 'ltx25', { '7': { vae_name: 'mine.safetensors' } })+ expect(sent['7'].inputs?.vae_name).toBe('mine.safetensors')+ })+})++describe('prompt roles come from the wires, not from the order of the encoders', () => {+ it('positive through LTXVConditioning and a guider, its text from the prompt box upstream', () => {+ const map = autoDetectParameterMap(ltxGraph())+ expect(map.positivePrompt).toEqual({ nodeId: '8', inputKey: 'value' })+ expect(map.negativePrompt).toEqual({ nodeId: '1', inputKey: 'text' })+ })++ it('the prompt lands in the positive path and the wire to the encoder stays', async () => {+ const wf = ltxGraph()+ const sent = await injectParameters(wf, autoDetectParameterMap(wf), portrait, 'ltx25')+ expect(sent['8'].inputs?.value).toBe('a lighthouse at dusk')+ expect(sent['2'].inputs?.text).toEqual(['8', 0])+ expect(sent['1'].inputs?.text).toBe('blurry')+ })++ it('a map saved by an older LU with the roles swapped is mended on the run', async () => {+ const wf = ltxGraph()+ const stale = { ...autoDetectParameterMap(wf), positivePrompt: { nodeId: '1', inputKey: 'text' }, negativePrompt: { nodeId: '2', inputKey: 'text' } }+ const sent = await injectParameters(wf, stale, portrait, 'ltx25')+ expect(sent['1'].inputs?.text).toBe('blurry')+ expect(sent['8'].inputs?.value).toBe('a lighthouse at dusk')+ expect(sent['2'].inputs?.text).toEqual(['8', 0])+ // And the list of editable values agrees with the run.+ expect(luSetInputs(wf, stale).get(paramKey('8', 'value'))?.label).toBe('Prompt')+ })++ it('a KSampler workflow keeps its prompts as before', () => {+ const wf: ComfyApiGraph = {+ '3': { class_type: 'KSampler', inputs: { seed: 1, steps: 20, cfg: 7, sampler_name: 'euler', scheduler: 'normal', positive: ['7', 0], negative: ['6', 0], denoise: 1 } },+ '6': { class_type: 'CLIPTextEncode', inputs: { text: 'neg', clip: ['4', 1] } },+ '7': { class_type: 'CLIPTextEncode', inputs: { text: 'pos', clip: ['4', 1] } },+ }+ const map = autoDetectParameterMap(wf)+ expect(map.positivePrompt).toEqual({ nodeId: '7', inputKey: 'text' })+ expect(map.negativePrompt).toEqual({ nodeId: '6', inputKey: 'text' })+ })+})++describe('ResolutionSelector follows LU\'s size', () => {+ it('portrait picks 9:16 and keeps the megapixels of the workflow', async () => {+ const wf = ltxGraph()+ const sent = await injectParameters(wf, autoDetectParameterMap(wf), portrait, 'ltx25')+ expect(sent['10'].inputs?.aspect_ratio).toBe('9:16 (Portrait Widescreen)')+ expect(sent['10'].inputs?.megapixels).toBe(0.9)+ expect(luSetInputs(wf, autoDetectParameterMap(wf)).get(paramKey('10', 'aspect_ratio'))?.label).toBe('Aspect ratio')+ })++ it('square and landscape sizes find their option too', async () => {+ const wf = ltxGraph()+ const map = autoDetectParameterMap(wf)+ expect((await injectParameters(wf, map, { ...portrait, width: 1024, height: 1024 }, 'ltx25'))['10'].inputs?.aspect_ratio).toBe('1:1 (Square)')+ expect((await injectParameters(wf, map, { ...portrait, width: 1216, height: 832 }, 'ltx25'))['10'].inputs?.aspect_ratio).toBe('3:2 (Photo)')+ })++ it('a workflow with a width and height to write leaves the selector alone', async () => {+ const wf = { ...ltxGraph(), '12': { class_type: 'EmptyLatentImage', inputs: { width: 1024, height: 576, batch_size: 1 } } }+ const sent = await injectParameters(wf, autoDetectParameterMap(wf), portrait, 'ltx25')+ expect(sent['12'].inputs?.width).toBe(480)+ expect(sent['10'].inputs?.aspect_ratio).toBe('16:9 (Widescreen)')+ })+})++// ── The real template ───────────────────────────────────────────+//+// templates/video_ltx2_5_i2v.json is the file of Comfy-Org/workflow_templates+// as it is (templates/SOURCE.md: commit, checksum, license). The node+// definitions are object-info-ltx25.json, written down from the ComfyUI+// v0.42.4 sources, with the loader lists holding the files the template+// names, as on a machine that has them.++const DIR = join(process.cwd(), 'src/api/__tests__/fixtures/comfy-ui')+const v3 = JSON.parse(readFileSync(join(DIR, 'object-info-ltx25.json'), 'utf8')) as ComfyNodeDefs+const templateText = readFileSync(join(DIR, 'templates/video_ltx2_5_i2v.json'), 'utf8')+const fromV3 = async (types: string[]) => {+ const out: ComfyNodeDefs = {}+ for (const t of types) if (v3[t]) out[t] = v3[t]+ return out+}++describe('the LTX 2.5 i2v template of Comfy-Org, import to injection', () => {+ it('goes from file to the graph LU sends, with the prompt, files and aspect ratio right', async () => {+ const read = await readWorkflowText(templateText, fromV3)+ if (!read.ok) throw new Error(`import failed: ${read.reason}`)+ expect(read.format).toBe('ui')+ expect(read.notes).toEqual(['1 subgraph unpacked', '4 notes left out'])++ const t = parseImportedWorkflow('LTX 2.5 i2v', read.graph)+ expect(t.mode).toBe('video')+ expect(t.parameterMap.positivePrompt).toEqual({ nodeId: '398:376', inputKey: 'value' })+ expect(t.parameterMap.negativePrompt).toEqual({ nodeId: '398:373', inputKey: 'text' })+ expect(t.parameterMap.inputImage).toEqual({ nodeId: '395', inputKey: 'image' })+ expect(t.parameterMap.model).toEqual({ nodeId: '398:384', inputKey: 'unet_name', loaderType: 'unet' })++ const sent = await injectParameters(t.workflow, t.parameterMap, portrait, 'ltx25')+ // The prompt box feeds the enhancer and the switch, the switch the encoder.+ expect(sent['398:376'].inputs?.value).toBe('a lighthouse at dusk')+ expect(sent['398:364'].inputs?.text).toEqual(['398:382', 0])+ expect(sent['398:380'].inputs?.prompt).toEqual(['398:376', 0])+ expect(sent['398:373'].inputs?.text).toBe('blurry')+ // Both VAEs and both text models as the template names them.+ expect(sent['398:385'].inputs?.vae_name).toBe('ltx-2.5-video-vae-bf16.safetensors')+ expect(sent['398:386'].inputs?.vae_name).toBe('ltx-2.5-audio-vae-bf16.safetensors')+ expect(sent['398:387'].inputs).toMatchObject({ clip_name: 'gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors', type: 'ltxv' })+ expect(sent['398:393'].inputs).toMatchObject({ clip_name: 'gemma4_e2b_it_int8_convrot.safetensors', type: 'ltxv' })+ // Portrait size, the template's 0.9 megapixels.+ expect(sent['403'].inputs).toMatchObject({ aspect_ratio: '9:16 (Portrait Widescreen)', megapixels: 0.9, multiple: 32 })+ expect(sent['395'].inputs?.image).toBe('upload_1.png')+ // The V3 inputs went through under the names ComfyUI expects.+ expect(sent['398:380'].inputs).toMatchObject({ sampling_mode: 'on', 'sampling_mode.temperature': 0.7, 'sampling_mode.seed': 0 })+ expect(sent['398:378'].inputs).toMatchObject({ expression: 'a * b + 1', 'values.a': ['398:362', 0], 'values.b': ['398:361', 0] })+ expect(sent['398:351'].inputs).toMatchObject({ resize_type: 'scale longer dimension', 'resize_type.longer_size': 1536, scale_method: 'lanczos' })+ expect(sent['398:366'].inputs).toMatchObject({ frame_rate: ['398:359', 1], batch_size: 1 })+ expect(sent['75'].inputs).toMatchObject({ format: 'auto', 'format.codec': 'auto' })+ })+})diff --git a/src/api/comfy-ui-format.ts b/src/api/comfy-ui-format.tsindex 0388ee6e..966b6b57 100644--- a/src/api/comfy-ui-format.ts+++ b/src/api/comfy-ui-format.ts@@ -450,8 +450,19 @@ function specOptions(spec: unknown): Record<string, unknown> {return Array.isArray(spec) && isRecord(spec[1]) ? spec[1] : {}}+/**+ * The type the widget of an input has. A V3 input that takes more than one+ * type ("FLOAT,INT", io.MultiType with a widget input) names the widget in+ * `widgetType` (comfy_api/latest/_io.py, WidgetInput.as_dict and+ * MultiType.Input), and the canvas keeps its value like any other widget.+ */+function widgetType(spec: unknown): string | string[] | null {+ const declared = specOptions(spec).widgetType+ return typeof declared === 'string' ? declared : specType(spec)+}+function isWidgetSpec(spec: unknown): boolean {- const t = specType(spec)+ const t = widgetType(spec)if (t === null) return falseif (specOptions(spec).forceInput === true) return falsereturn Array.isArray(t) || WIDGET_TYPES.has(t.toUpperCase())@@ -459,7 +470,7 @@ function isWidgetSpec(spec: unknown): boolean {function hasControlWidget(name: string, spec: unknown): boolean {if (specOptions(spec).control_after_generate) return true- const t = specType(spec)+ const t = widgetType(spec)return t === 'INT' && (name === 'seed' || name === 'noise_seed')}@@ -469,7 +480,7 @@ function hasUploadWidget(spec: unknown): boolean {}function valueFits(spec: unknown, value: unknown): boolean {- const t = specType(spec)+ const t = widgetType(spec)if (Array.isArray(t) || t?.toUpperCase() === 'COMBO') return typeof value === 'string' || typeof value === 'number'switch (t?.toUpperCase()) {case 'INT':@@ -503,6 +514,63 @@ function orderedNames(def: ComfyNodeDef, group: 'required' | 'optional'): stringreturn Object.keys(specs)}+// ── V3 dynamic inputs ───────────────────────────────────────────+//+// Two input types of the V3 node API stand for a set of inputs rather than+// one (comfy_api/latest/_io.py of ComfyUI v0.42.4):+// - COMFY_DYNAMICCOMBO_V3 (DynamicCombo): a dropdown whose chosen option+// brings its own inputs. The canvas keeps their values right after the+// dropdown's own value, required ones first. The API format names them+// "<combo>.<input>" (finalize_prefix), nested combos "<a>.<b>.<input>".+// - COMFY_AUTOGROW_V3 (Autogrow): sockets that grow one by one, named+// "<input>.<name>" from a list of names or "<input>.<prefix><i>". The+// first `min` of them are required when the template input is. They are+// sockets only (the template is forced to an input), never widgets.++const DYNAMIC_COMBO = 'COMFY_DYNAMICCOMBO_V3'+const AUTOGROW = 'COMFY_AUTOGROW_V3'++interface DynamicOption {+ key: string+ inputs: { required: Record<string, unknown>; optional: Record<string, unknown> }+}++function inputGroups(raw: unknown): DynamicOption['inputs'] {+ const groups = isRecord(raw) ? raw : {}+ return {+ required: isRecord(groups.required) ? groups.required : {},+ optional: isRecord(groups.optional) ? groups.optional : {},+ }+}++function dynamicOptions(spec: unknown): DynamicOption[] {+ const raw = specOptions(spec).options+ if (!Array.isArray(raw)) return []+ return raw.flatMap((o): DynamicOption[] => {+ if (!isRecord(o) || (typeof o.key !== 'string' && typeof o.key !== 'number')) return []+ return [{ key: String(o.key), inputs: inputGroups(o.inputs) }]+ })+}++/** The socket names of an Autogrow input, with whether each one is required. */+function autogrowSlots(id: string, spec: unknown): { name: string; spec: unknown; required: boolean }[] {+ const template = specOptions(spec).template+ if (!isRecord(template)) return []+ const groups = inputGroups(template.input)+ const requiredFirst = Object.entries(groups.required)[0]+ const entry = requiredFirst ?? Object.entries(groups.optional)[0]+ if (!entry) return []+ const templateRequired = requiredFirst !== undefined+ const min = typeof template.min === 'number' ? template.min : 1+ let names: string[] = []+ if (Array.isArray(template.names)) {+ names = template.names.filter((n): n is string => typeof n === 'string')+ } else if (typeof template.prefix === 'string' && typeof template.max === 'number') {+ names = Array.from({ length: Math.min(template.max, 100) }, (_, i) => `${template.prefix}${i}`)+ }+ return names.map((n, i) => ({ name: `${id}.${n}`, spec: entry[1], required: templateRequired && i < min }))+}+// ── Conversion ──────────────────────────────────────────────────type Source =@@ -597,9 +665,12 @@ export function convertUiGraph(file: UiGraph, defs: ComfyNodeDefs): UiConvertRes}const graph: ComfyApiGraph = {}+ // Per node, the API names of the inputs ComfyUI will ask for.+ const requiredInputs = new Map<string, string[]>()for (const node of real) {const def = defs[node.type]const inputs: ComfyNodeInputs = {}+ const required: string[] = []const vals = node.widgets_valuesconst byName = isRecord(vals) ? vals : nullconst positional = Array.isArray(vals) ? vals : []@@ -612,36 +683,71 @@ export function convertUiGraph(file: UiGraph, defs: ComfyNodeDefs): UiConvertResif (typeof input.widget?.name === 'string') sockets.set(input.widget.name, input)}- for (const group of ['required', 'optional'] as const) {- for (const name of orderedNames(def, group)) {- const spec = def.input?.[group]?.[name]- const widget = isWidgetSpec(spec)- let value: unknown-- if (widget) {- if (byName) {- value = byName[name]- } else if (cursor < positional.length) {- value = positional[cursor++]- if (hasControlWidget(name, spec) && CONTROL_VALUES.has(positional[cursor] as string)) cursor++- if (hasUploadWidget(spec) && UPLOAD_VALUES.has(positional[cursor] as string)) cursor+++ const nextValue = (name: string, spec: unknown): unknown => {+ if (byName) return byName[name]+ if (cursor >= positional.length) return undefined+ const value = positional[cursor++]+ const shortName = name.slice(name.lastIndexOf('.') + 1)+ if (hasControlWidget(shortName, spec) && CONTROL_VALUES.has(positional[cursor] as string)) cursor+++ if (hasUploadWidget(spec) && UPLOAD_VALUES.has(positional[cursor] as string)) cursor+++ return value+ }++ /** One input by its API name. False: the saved values do not fit the definition. */+ const readInput = (name: string, spec: unknown, isRequired: boolean, socketOnly = false): boolean => {+ const type = specType(spec)+ if (type === DYNAMIC_COMBO) {+ const options = dynamicOptions(spec)+ let value = nextValue(name, spec)+ if (value === undefined && isRequired) value = specOptions(spec).default ?? options[0]?.key+ if (value === undefined) return true+ const chosen = options.find((o) => o.key === String(value))+ if (!chosen) return false+ inputs[name] = value as ComfyInputValue+ if (isRequired) required.push(name)+ for (const [group, specs] of Object.entries(chosen.inputs)) {+ for (const [child, childSpec] of Object.entries(specs)) {+ if (!readInput(`${name}.${child}`, childSpec, group === 'required')) return false}- if (value !== undefined && !valueFits(spec, value)) return { ok: false, reason: settingsMismatch(node) }}+ return true+ }+ if (type === AUTOGROW) {+ for (const slot of autogrowSlots(name, spec)) {+ if (!readInput(slot.name, slot.spec, slot.required, true)) return false+ }+ return true+ }- const socket = sockets.get(name)- if (socket && typeof socket.link === 'number') {- const src = resolve(socket.link)- if (src.kind === 'link') { inputs[name] = [src.nodeId, src.slot]; continue }- if (src.kind === 'value') {- if (widget && !valueFits(spec, src.value)) return { ok: false, reason: settingsMismatch(node) }- inputs[name] = src.value as ComfyInputValue- continue- }+ if (isRequired) required.push(name)+ const widget = !socketOnly && isWidgetSpec(spec)+ let value: unknown+ if (widget) {+ value = nextValue(name, spec)+ if (value !== undefined && !valueFits(spec, value)) return false+ }++ const socket = sockets.get(name)+ if (socket && typeof socket.link === 'number') {+ const src = resolve(socket.link)+ if (src.kind === 'link') { inputs[name] = [src.nodeId, src.slot]; return true }+ if (src.kind === 'value') {+ if (widget && !valueFits(spec, src.value)) return false+ inputs[name] = src.value as ComfyInputValue+ return true}+ }++ if (widget && value === undefined && isRequired) value = specDefault(spec)+ if (value !== undefined) inputs[name] = value as ComfyInputValue+ return true+ }- if (widget && value === undefined && group === 'required') value = specDefault(spec)- if (value !== undefined) inputs[name] = value as ComfyInputValue+ for (const group of ['required', 'optional'] as const) {+ for (const name of orderedNames(def, group)) {+ if (!readInput(name, def.input?.[group]?.[name], group === 'required')) {+ return { ok: false, reason: settingsMismatch(node) }+ }}}@@ -651,6 +757,7 @@ export function convertUiGraph(file: UiGraph, defs: ComfyNodeDefs): UiConvertRes_meta: { title: node.title || def.display_name || node.type },}graph[nodeKey(node)] = apiNode+ requiredInputs.set(nodeKey(node), required)}// Keep what an output node needs, the same set ComfyUI would run.@@ -677,8 +784,7 @@ export function convertUiGraph(file: UiGraph, defs: ComfyNodeDefs): UiConvertResfor (const node of real) {const id = nodeKey(node)if (!graph[id]) continue- const def = defs[node.type]- for (const name of orderedNames(def, 'required')) {+ for (const name of requiredInputs.get(id) ?? []) {if (graph[id].inputs?.[name] === undefined) {return {ok: false,diff --git a/src/api/comfyui.ts b/src/api/comfyui.tsindex 795a6fe0..14efbed1 100644--- a/src/api/comfyui.ts+++ b/src/api/comfyui.ts@@ -2261,33 +2261,7 @@ export async function submitWorkflow(workflow: ComfyApiGraph, clientId?: string)const rawText = await res.text().catch(() => '')let errMsg = `HTTP ${res.status}`try {- // ComfyUI's rejection body. Foreign JSON: `error` is a string on some- // versions and an `{ message }` on others, and `node_errors` is only- // present for a validation failure — so every read is narrowed.- const errData: unknown = JSON.parse(rawText)- const parts: string[] = []- const rawErr = isRecord(errData) ? errData.error : undefined- const topLevel = asString(rawErr) ?? (isRecord(rawErr) ? asString(rawErr.message) : undefined)- if (topLevel) parts.push(topLevel)- const nodeErrors = isRecord(errData) ? errData.node_errors : undefined- if (isRecord(nodeErrors)) {- for (const [nodeId, data] of Object.entries(nodeErrors)) {- const errs = asRecordArray(isRecord(data) ? data.errors : undefined)- // "Value not in list" alone names no value; the details say which- // one ("ckpt_name: 'x.safetensors' not in [...]"). The list itself- // can be hundreds of file names, so it is cut off.- .map((e) => {- const message = asString(e.message) ?? ''- const details = asString(e.details)?.split(' not in [')[0].slice(0, 200)- return details && message ? `${message} (${details})` : message || details || ''- })- .filter(Boolean)- .join(', ') || 'unknown'- const cls = (isRecord(data) ? asString(data.class_type) : undefined) ?? '?'- parts.push(`Node ${nodeId} (${cls}): ${errs}`)- }- }- if (parts.length > 0) errMsg = parts.join(' | ')+ errMsg = describeComfyRejection(JSON.parse(rawText)) ?? errMsg} catch {if (rawText) errMsg = rawText.slice(0, 500)}@@ -2296,10 +2270,55 @@ export async function submitWorkflow(workflow: ComfyApiGraph, clientId?: string)}const data: unknown = await res.json()const promptId = isRecord(data) ? asString(data.prompt_id) : undefined+ // ComfyUI queues a prompt as soon as ONE output node passes validation and+ // lists the failed ones in node_errors of a 200 answer (execution.py+ // validate_prompt, server.py post_prompt). The run then ends without the+ // video or image LU waits for, and all the user saw was "no output was+ // produced" (GitHub #196). Such a half prompt is taken out of the queue+ // and reported like a full rejection.+ const nodeErrors = isRecord(data) ? data.node_errors : undefined+ if (isRecord(nodeErrors) && Object.keys(nodeErrors).length > 0) {+ if (promptId) await abandonPrompt(promptId)+ const errMsg = describeComfyRejection(data) ?? 'some output nodes failed validation'+ log.error('comfyui.workflow_rejected', { errMsg, partial: true, workflow: JSON.stringify(workflow).slice(0, 2000) })+ throw new Error(`ComfyUI rejected workflow: ${errMsg}`)+ }if (!promptId) throw new Error('ComfyUI accepted the workflow but returned no prompt_id.')return promptId}+/**+ * ComfyUI's verdict on a prompt as one line, or null when it names nothing.+ * Foreign JSON: `error` is a string on some versions and an `{ message }` on+ * others, and `node_errors` is only present for a validation failure, so+ * every read is narrowed.+ */+function describeComfyRejection(errData: unknown): string | null {+ const parts: string[] = []+ const rawErr = isRecord(errData) ? errData.error : undefined+ const topLevel = asString(rawErr) ?? (isRecord(rawErr) ? asString(rawErr.message) : undefined)+ if (topLevel) parts.push(topLevel)+ const nodeErrors = isRecord(errData) ? errData.node_errors : undefined+ if (isRecord(nodeErrors)) {+ for (const [nodeId, data] of Object.entries(nodeErrors)) {+ const errs = asRecordArray(isRecord(data) ? data.errors : undefined)+ // "Value not in list" alone names no value; the details say which+ // one ("ckpt_name: 'x.safetensors' not in [...]"). The list itself+ // can be hundreds of file names, so it is cut off.+ .map((e) => {+ const message = asString(e.message) ?? ''+ const details = asString(e.details)?.split(' not in [')[0].slice(0, 200)+ return details && message ? `${message} (${details})` : message || details || ''+ })+ .filter(Boolean)+ .join(', ') || 'unknown'+ const cls = (isRecord(data) ? asString(data.class_type) : undefined) ?? '?'+ parts.push(`Node ${nodeId} (${cls}): ${errs}`)+ }+ }+ return parts.length > 0 ? parts.join(' | ') : null+}+export async function cancelGeneration(): Promise<void> {try {await localFetch(comfyuiUrl('/interrupt'), { method: 'POST', timeoutMs: COMFY_STATS_TIMEOUT_MS })diff --git a/src/api/workflow-graph-detect.ts b/src/api/workflow-graph-detect.tsnew file mode 100644index 00000000..4d9b7a0d--- /dev/null+++ b/src/api/workflow-graph-detect.ts@@ -0,0 +1,193 @@+/**+ * What LU reads out of the graph of an imported workflow beyond fixed node+ * types (GitHub #196, the LTX 2.5 image-to-video template of Comfy-Org):+ *+ * - Which text box is the positive prompt and which the negative one. A+ * workflow without a KSampler (LTXVConditioning into a guider, as the LTX+ * templates do) used to fall back to "the first CLIPTextEncode is the+ * positive one", and in that template the first one is the negative. The+ * roles are read from the wires instead: from the `positive` and+ * `negative` inputs of a sampler or guider back to the text encoders.+ * - The ResolutionSelector of ComfyUI (aspect ratio plus megapixels), which+ * sets the size where no width and height input exists to write.+ *+ * Pure, and only reads types, so workflows.ts and workflow-params.ts can both+ * use it without an import cycle.+ */+import type { ParameterMap, ParameterMapping } from '../types/workflows'+import type { ComfyApiGraph, ComfyApiNode } from '../types/comfy-graph'+import { apiNodes, isComfyLinkRef } from '../types/comfy-graph'++// ── Prompts ─────────────────────────────────────────────────────++export interface DetectedPrompts {+ positive?: ParameterMapping+ negative?: ParameterMapping+}++/** Inputs a plain text box keeps its text in, in the order they are tried. */+const TEXT_BOX_KEYS = ['value', 'text', 'string', 'prompt'] as const+const MAX_HOPS = 32++type LinkRef = [string, number]++function linkOf(v: unknown): LinkRef | undefined {+ return isComfyLinkRef(v) ? [String(v[0]), Number(v[1])] : undefined+}++function linkedInputs(node: ComfyApiNode): LinkRef[] {+ return Object.values(node.inputs ?? {}).map(linkOf).filter((l): l is LinkRef => l !== undefined)+}++/** Samplers first, then guiders, then any other node fed both roles. */+function consumerRank(classType: string): number {+ if (classType === 'KSampler' || classType === 'KSamplerAdvanced') return 0+ if (/guider/i.test(classType)) return 1+ return 2+}++/**+ * From a conditioning wire back to the node that encodes the text. Nodes+ * that pass both roles on (LTXVConditioning, WanImageToVideo, ControlNet+ * apply) put positive on output 0 and negative on output 1, a node with one+ * `conditioning` input (ConditioningZeroOut) passes that one on.+ */+function traceEncoder(wf: ComfyApiGraph, start: unknown, role: 'positive' | 'negative'): string | undefined {+ let ref = linkOf(start)+ for (let hop = 0; ref && hop < MAX_HOPS; hop++) {+ const [id, slot] = ref+ const node = wf[id]+ if (!node?.inputs) return undefined+ const inputs = node.inputs+ if ('text' in inputs) return id+ if (linkOf(inputs.positive) && linkOf(inputs.negative)) {+ ref = linkOf(slot === 0 ? inputs.positive : slot === 1 ? inputs.negative : inputs[role])+ continue+ }+ ref = linkOf(inputs.conditioning)+ }+ return undefined+}++/**+ * Where the text of an encoder can be written. Its own `text` when that holds+ * the text; when the text arrives over a wire (a prompt box, maybe through a+ * prompt enhancer and a switch), the nearest text box upstream, so the wire+ * and whatever sits on it keep working.+ */+function textTarget(wf: ComfyApiGraph, encoderId: string): ParameterMapping | undefined {+ const text = wf[encoderId]?.inputs?.text+ if (typeof text === 'string') return { nodeId: encoderId, inputKey: 'text' }+ const queue: string[] = []+ const first = linkOf(text)+ if (first) queue.push(first[0])+ const seen = new Set<string>([encoderId])+ while (queue.length > 0 && seen.size < 256) {+ const id = queue.shift() as string+ if (seen.has(id)) continue+ seen.add(id)+ const node = wf[id]+ if (!node?.inputs) continue+ const key = TEXT_BOX_KEYS.find((k) => typeof node.inputs?.[k] === 'string')+ if (key) return { nodeId: id, inputKey: key }+ for (const [next] of linkedInputs(node)) queue.push(next)+ }+ return undefined+}++/**+ * The prompt boxes, read from the wires. `null` when no node in the graph+ * takes both a positive and a negative input that lead to a text encoder;+ * the caller then falls back to its own guess.+ */+export function detectPrompts(wf: ComfyApiGraph): DetectedPrompts | null {+ const consumers = apiNodes(wf)+ .filter(([, n]) => linkOf(n.inputs?.positive) && linkOf(n.inputs?.negative))+ .map((entry, order) => ({ entry, order, rank: consumerRank(entry[1].class_type) }))+ .sort((a, b) => a.rank - b.rank || a.order - b.order)+ for (const { entry: [, node] } of consumers) {+ const pos = traceEncoder(wf, node.inputs?.positive, 'positive')+ if (!pos) continue+ const neg = traceEncoder(wf, node.inputs?.negative, 'negative')+ const out: DetectedPrompts = {}+ const positive = textTarget(wf, pos)+ if (positive) out.positive = positive+ // A negative made from the positive (ConditioningZeroOut) has no box of its own.+ const negative = neg && neg !== pos ? textTarget(wf, neg) : undefined+ if (negative && (negative.nodeId !== positive?.nodeId || negative.inputKey !== positive?.inputKey)) {+ out.negative = negative+ }+ return out+ }+ return null+}++/**+ * The stored map with its prompt boxes read again from the graph. The map is+ * saved at import, so a workflow imported before the wires were read (3.0.8+ * and older) may still name the negative box as the positive one. The map is+ * only ever written by autoDetectParameterMap, never by hand, so reading the+ * roles again on every run loses nothing and mends those imports in place.+ */+export function withDetectedPrompts(wf: ComfyApiGraph, map: ParameterMap): ParameterMap {+ const found = detectPrompts(wf)+ if (!found) return map+ const out: ParameterMap = { ...map }+ if (found.positive) out.positivePrompt = found.positive+ else delete out.positivePrompt+ if (found.negative) out.negativePrompt = found.negative+ else delete out.negativePrompt+ return out+}++// ── Aspect ratio ────────────────────────────────────────────────++/**+ * The options of ResolutionSelector.aspect_ratio in ComfyUI v0.42.4+ * (comfy_extras/nodes_resolution.py, AspectRatio). A label starts with its+ * ratio, so a newer ComfyUI with more options still reads.+ */+export const RESOLUTION_SELECTOR_ASPECTS = [+ '1:1 (Square)',+ '2:3 (Portrait Photo)',+ '3:2 (Photo)',+ '3:4 (Portrait Standard)',+ '4:3 (Standard)',+ '9:16 (Portrait Widescreen)',+ '16:9 (Widescreen)',+ '21:9 (Ultrawide)',+] as const++function ratioOf(label: string): number | undefined {+ const m = /^\s*(\d+(?:\.\d+)?)\s*:\s*(\d+(?:\.\d+)?)/.exec(label)+ if (!m) return undefined+ const w = Number(m[1])+ const h = Number(m[2])+ return w > 0 && h > 0 ? w / h : undefined+}++/** The option whose ratio comes closest to width by height, or undefined. */+export function closestAspectRatio(+ width: number,+ height: number,+ options: readonly string[] = RESOLUTION_SELECTOR_ASPECTS,+): string | undefined {+ if (!(width > 0) || !(height > 0)) return undefined+ const target = Math.log(width / height)+ let best: string | undefined+ let bestDistance = Infinity+ for (const option of options) {+ const r = ratioOf(option)+ if (r === undefined) continue+ const distance = Math.abs(Math.log(r) - target)+ if (distance < bestDistance) { best = option; bestDistance = distance }+ }+ return best+}++/** The ResolutionSelector nodes whose aspect ratio is a value, not a wire. */+export function resolutionSelectorIds(wf: ComfyApiGraph): string[] {+ return apiNodes(wf)+ .filter(([, n]) => n.class_type === 'ResolutionSelector' && typeof n.inputs?.aspect_ratio === 'string')+ .map(([id]) => id)+}diff --git a/src/api/workflow-params.ts b/src/api/workflow-params.tsindex e1e0fe99..10c29270 100644--- a/src/api/workflow-params.ts+++ b/src/api/workflow-params.ts@@ -7,7 +7,8 @@* - `luSetInputs` names the inputs LU writes itself on every run (prompt,* seed, size, model and the rest found by autoDetectParameterMap). Those* are not offered a second time. The VAE and text encoder loaders are a- * special case: LU picks a matching file, but a value the user chose wins.+ * special case: LU keeps the file the workflow names when ComfyUI has it+ * and picks a matching one when not, but a value the user chose wins.* - `listWorkflowParams` walks the graph and returns, per node, its value* inputs (never a connected input) with the control that fits: from the* node definition of `/object_info` when there is one, else from the value.@@ -21,6 +22,7 @@ import type { ComfyApiGraph, ComfyInputValue } from '../types/comfy-graph'import { apiNodes, inputNumber, isComfyLinkRef } from '../types/comfy-graph'import type { ComfyNodeDef, ComfyNodeDefs } from './comfy-ui-format'import { readComboOptions } from './comfyui-enum'+import { resolutionSelectorIds, withDetectedPrompts } from './workflow-graph-detect'/** A value the list can show and the user can set. */export type ParamValue = string | number | boolean@@ -123,17 +125,25 @@ export function luSetInputs(for (const name of LANE_SET_FIELDS) mark(paramMap[name], MAP_LABELS[name])return out}+ // The prompt boxes as injectParameters finds them on a run.+ const runMap = withDetectedPrompts(workflow, paramMap)for (const [name, label] of Object.entries(MAP_LABELS) as [keyof ParameterMap, string][]) {- mark(paramMap[name], label)+ mark(runMap[name], label)}+ let sized = !!paramMap.width || !!paramMap.heightif (!paramMap.width || !paramMap.height) {const resize = nodes.find(([, n]) => n.class_type === 'ImageResizeKJv2'&& inputNumber(n, 'width') !== undefined && inputNumber(n, 'height') !== undefined)if (resize) {+ sized = trueif (!paramMap.width) mark({ nodeId: resize[0], inputKey: 'width' }, 'Width')if (!paramMap.height) mark({ nodeId: resize[0], inputKey: 'height' }, 'Height')}}+ // Without a size to write, LU's size picks the aspect ratio.+ if (!sized) {+ for (const id of resolutionSelectorIds(workflow)) mark({ nodeId: id, inputKey: 'aspect_ratio' }, 'Aspect ratio')+ }if (!paramMap.inputImage) {const load = nodes.find(([, n]) => n.class_type === 'LoadImage')if (load) mark({ nodeId: load[0], inputKey: 'image' }, 'Source image')diff --git a/src/api/workflows.ts b/src/api/workflows.tsindex bd007176..0ce210f3 100644--- a/src/api/workflows.ts+++ b/src/api/workflows.ts@@ -1,9 +1,12 @@import type { ModelType } from './comfyui'import type { GenerateParams, VideoParams } from './comfyui'-import { findMatchingVAE, findMatchingCLIP } from './comfyui'+import { findMatchingVAE, findMatchingCLIP, getVAEModels, getCLIPModels } from './comfyui'import { log } from '../lib/logger'import { resolveRunSeed } from '../lib/run-seed'import { applyParamOverrides, type WorkflowParamOverrides } from './workflow-params'+import {+ closestAspectRatio, detectPrompts, resolutionSelectorIds, withDetectedPrompts,+} from './workflow-graph-detect'import type {WorkflowTemplate,WorkflowSource,@@ -11,11 +14,11 @@ import type {ParameterMapping,} from '../types/workflows'import type {- ComfyApiGraph, ComfyApiNode, ComfyInputValue, ComfyNodeInputs,+ ComfyApiGraph, ComfyInputValue, ComfyNodeInputs,} from '../types/comfy-graph'import {apiNodes, isComfyApiGraph,- inputNumber, linkTarget,+ inputNumber,} from '../types/comfy-graph'// ─── Validation ───@@ -80,12 +83,9 @@ export function extractSearchTerms(modelName: string, modelType: ModelType): strexport function autoDetectParameterMap(workflow: ComfyApiGraph): ParameterMap {const map: ParameterMap = {}- let ksamplerNode: ComfyApiNode | null = null-for (const [nodeId, node] of apiNodes(workflow)) {const ct = node.class_typeif (ct === 'KSampler' || ct === 'KSamplerAdvanced') {- ksamplerNode = nodemap.seed = { nodeId, inputKey: 'seed' }map.steps = { nodeId, inputKey: 'steps' }map.cfgScale = { nodeId, inputKey: 'cfg' }@@ -95,22 +95,13 @@ export function autoDetectParameterMap(workflow: ComfyApiGraph): ParameterMap {}}- if (ksamplerNode?.inputs) {- const posNodeId = linkTarget(ksamplerNode.inputs.positive)- const negNodeId = linkTarget(ksamplerNode.inputs.negative)- if (posNodeId !== undefined) {- const posNode = workflow[posNodeId]- if (posNode?.class_type === 'CLIPTextEncode') {- map.positivePrompt = { nodeId: posNodeId, inputKey: 'text' }- }- }- if (negNodeId !== undefined) {- const negNode = workflow[negNodeId]- if (negNode?.class_type === 'CLIPTextEncode') {- map.negativePrompt = { nodeId: negNodeId, inputKey: 'text' }- }- }- }+ // The prompt boxes, from the positive and negative inputs of the sampler+ // or guider back to the text encoders (GitHub #196). Only a graph where+ // no such wire leads to an encoder falls back to the order of the+ // CLIPTextEncode nodes further down.+ const prompts = detectPrompts(workflow)+ if (prompts?.positive) map.positivePrompt = prompts.positive+ if (prompts?.negative) map.negativePrompt = prompts.negativefor (const [nodeId, node] of apiNodes(workflow)) {const ct = node.class_type@@ -181,7 +172,7 @@ export function autoDetectParameterMap(workflow: ComfyApiGraph): ParameterMap {}}- if (!map.positivePrompt) {+ if (!prompts) {const clipNodes = apiNodes(workflow).filter(([, n]) => n.class_type === 'CLIPTextEncode')@@ -200,7 +191,7 @@ export function autoDetectParameterMap(workflow: ComfyApiGraph): ParameterMap {export async function injectParameters(workflow: ComfyApiGraph,- paramMap: ParameterMap,+ storedMap: ParameterMap,params: GenerateParams | VideoParams,modelType: ModelType,/** The values the user changed under "Workflow parameters" (workflow-params.ts). */@@ -225,6 +216,10 @@ export async function injectParameters(}}+ // The prompt boxes are read again from the graph: a map saved by an older+ // LU may name the negative box as the positive one (GitHub #196).+ const paramMap = withDetectedPrompts(wf, storedMap)+inject(paramMap.model, params.model)inject(paramMap.positivePrompt, params.prompt)inject(paramMap.negativePrompt, params.negativePrompt || '')@@ -264,6 +259,19 @@ export async function injectParameters(inject(widthMapping, params.width)inject(heightMapping, params.height)++ // No width and height to write, but a ResolutionSelector (aspect ratio+ // plus megapixels, as in the LTX 2.5 templates): pick the aspect ratio+ // closest to LU's size and keep the workflow's megapixels (GitHub #196).+ if (!widthMapping && !heightMapping) {+ const aspect = closestAspectRatio(params.width, params.height)+ if (aspect) {+ for (const id of resolutionSelectorIds(wf)) {+ const node = wf[id]+ if (node.inputs) node.inputs.aspect_ratio = aspect+ }+ }+ }inject(paramMap.batchSize, params.batchSize)inject(paramMap.sampler, params.sampler)inject(paramMap.scheduler, params.scheduler)@@ -307,15 +315,35 @@ export async function injectParameters(`${id}: ${n.class_type} (${Object.keys(n.inputs || {}).join(', ')})`).join(' | ') })- // Auto-resolve VAE and CLIP loaders with real model files+ // VAE and CLIP loaders: the file the workflow names stays when ComfyUI+ // has it. A workflow with more than one of them (LTX 2.5: a video and an+ // audio VAE, a text encoder and a prompt enhancer) needs each one as it+ // is; one pick for all of them breaks it (GitHub #196). Only a file this+ // ComfyUI lacks is replaced by a matching one.+ let vaeFiles: Set<string> | undefined+ let clipFiles: Set<string> | undefined+ const installed = async (read: () => Promise<string[]>): Promise<Set<string>> => {+ try { return new Set(await read()) } catch { return new Set() }+ }for (const [, node] of apiNodes(wf)) {const ct = node.class_typetry {if (ct === 'VAELoader' && node.inputs) {+ const named = node.inputs.vae_name+ if (typeof named === 'string') {+ vaeFiles ??= await installed(getVAEModels)+ if (vaeFiles.has(named)) continue+ }const vae = await findMatchingVAE(modelType)node.inputs.vae_name = vae}if (ct === 'CLIPLoader' && node.inputs) {+ const named = node.inputs.clip_name+ if (typeof named === 'string') {+ clipFiles ??= await installed(getCLIPModels)+ // The workflow's encoder stays, and with it the type it was saved with.+ if (clipFiles.has(named)) continue+ }const clip = await findMatchingCLIP(modelType)node.inputs.clip_name = clip// Also set the CLIP type based on model type