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49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
{
  "id": "2aa3ba93-211a-4e32-8b51-3a8ecbd26012",
  "revision": 0,
  "last_node_id": 62,
  "last_link_id": 999005,
  "nodes": [
    {
      "id": 61,
      "type": "PreviewAny",
      "pos": [
        723.6558778824344,
        348.70956913117413
      ],
      "size": [
        318.81727649319555,
        199.11831566595265
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 999004
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.13.0",
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [
        null,
        null,
        null
      ]
    },
    {
      "id": 22,
      "type": "Reroute",
      "pos": [
        -478.5929563194253,
        195.32059151926558
      ],
      "size": [
        75,
        26
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "",
          "type": "*",
          "link": 999005
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "IMAGE",
          "links": [
            999002
          ]
        }
      ],
      "title": "Image Input Reroute",
      "properties": {
        "showOutputText": false,
        "horizontal": false,
        "Node name for S&R": "Reroute"
      }
    },
    {
      "id": 62,
      "type": "MarkdownNote",
      "pos": [
        -429.6987715406843,
        -263.51206141637516
      ],
      "size": [
        980,
        270
      ],
      "flags": {
        "collapsed": false
      },
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Prompt Enhancer Only",
      "properties": {},
      "widgets_values": [
        "Gemma 3 Vision Prompt Enhancer (standalone)\n\nWhat this does:\n- Takes your raw I2V prompt and (optionally) a reference image (first frame).\n- Uses Gemma 3 Vision (GGUF + mmproj) via comfyui_LLM_party to rewrite the prompt into a single, concise paragraph that follows LTX I2V best practices.\n- Output is shown in show_text_party so you can copy-paste it.\n\nModel files:\n- HF repo: https://huggingface.co/mradermacher/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning-GGUF\n- GGUF: https://huggingface.co/mradermacher/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning-GGUF/resolve/main/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning.Q8_0.gguf\n- mmproj: https://huggingface.co/mradermacher/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning-GGUF/resolve/main/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning.mmproj-Q8_0.gguf\n\nInstall:\n- Put both files here:\n  ComfyUI/models/llm_models/\n\nLinux download:\nwget --content-disposition -P ~/ComfyUI/models/llm_models/ \"https://huggingface.co/mradermacher/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning-GGUF/resolve/main/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning.Q8_0.gguf\"\nwget --content-disposition -P ~/ComfyUI/models/llm_models/ \"https://huggingface.co/mradermacher/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning-GGUF/resolve/main/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning.mmproj-Q8_0.gguf\"\n\nHow to use:\n1) Edit the Raw Prompt node.\n2) OPTIONAL: If you want image conditioning, load an image in LoadImage and rewire it into the Image Input Reroute.\n   By default, the workflow uses EmptyImage so it runs even without a reference.\n3) Queue Prompt. Copy the enhanced prompt from show_text_party.\n"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 25,
      "type": "LLavaLoader",
      "pos": [
        -371.1620694300964,
        288.2749087043521
      ],
      "size": [
        420,
        220
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "label": "model",
          "name": "model",
          "type": "CUSTOM",
          "slot_index": 0,
          "links": [
            40
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui_llm_party",
        "ver": "1.4.1",
        "Node name for S&R": "LLavaLoader"
      },
      "widgets_values": [
        "/home/ubuntu/ComfyUI//models/llm_models/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning.Q8_0.gguf",
        "/home/ubuntu/ComfyUI/models/llm_models/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning.mmproj-Q8_0.gguf",
        1836,
        31,
        8,
        "minicpm-v-2.6",
        false
      ]
    },
    {
      "id": 30,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -934.4993233290827,
        499.3783025609207
      ],
      "size": [
        410,
        320
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            202
          ]
        }
      ],
      "title": "Raw Prompt",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.5.1",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "cinematic thriller adventure movie scene shows an intrigued blonde female explorer holding a fiery torch. she looks curious and excited initially, but then a gust of wind blows her hair. her face turns concerned and frowned as says with a whispering tone of voice: \"these markings aren't just random...it's a warning...\"\nthe camera slowly zooms in and remains focused on her face"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 20,
      "type": "LoadImage",
      "pos": [
        -939.1180467084035,
        -37.879351628349774
      ],
      "size": [
        410,
        440
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            201,
            999005
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": []
        }
      ],
      "title": "LoadImage (optional)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.13.0",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "example.png",
        "image"
      ]
    },
    {
      "id": 23,
      "type": "LLM_local",
      "pos": [
        70,
        170
      ],
      "size": [
        460,
        560
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "label": "model",
          "name": "model",
          "type": "CUSTOM",
          "link": 40
        },
        {
          "label": "tokenizer",
          "name": "tokenizer",
          "shape": 7,
          "type": "CUSTOM",
          "link": null
        },
        {
          "label": "image",
          "name": "image",
          "shape": 7,
          "type": "IMAGE",
          "link": 999002
        },
        {
          "label": "system_prompt_input",
          "name": "system_prompt_input",
          "shape": 7,
          "type": "STRING",
          "link": null
        },
        {
          "label": "user_prompt_input",
          "name": "user_prompt_input",
          "shape": 7,
          "type": "STRING",
          "link": 202
        },
        {
          "label": "tools",
          "name": "tools",
          "shape": 7,
          "type": "STRING",
          "link": null
        },
        {
          "label": "file_content",
          "name": "file_content",
          "shape": 7,
          "type": "STRING",
          "link": null
        },
        {
          "label": "extra_parameters",
          "name": "extra_parameters",
          "shape": 7,
          "type": "DICT",
          "link": null
        },
        {
          "name": "user_history",
          "shape": 7,
          "type": "STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "label": "assistant_response",
          "name": "assistant_response",
          "type": "STRING",
          "slot_index": 0,
          "links": [
            999004
          ]
        },
        {
          "label": "history",
          "name": "history",
          "type": "STRING",
          "links": null
        },
        {
          "label": "tool",
          "name": "tool",
          "type": "STRING",
          "links": null
        },
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfyui_llm_party",
        "ver": "1.4.1",
        "Node name for S&R": "LLM_local"
      },
      "widgets_values": [
        "You are a Creative Assistant writing concise, action-focused image-to-video prompts. Given an image (first frame) and user Raw Input Prompt, generate a prompt to guide video generation from that image.\n\n#### Guidelines:\n- Analyze the Image: Identify Subject, Setting, Elements, Style and Mood.\n- Follow user Raw Input Prompt: Include all requested motion, actions, camera movements, audio, and details. If in conflict with the image, prioritize user request while maintaining visual consistency (describe transition from image to user's scene).\n- Describe only changes from the image: Don't reiterate established visual details. Inaccurate descriptions may cause scene cuts.\n- Active language: Use present-progressive verbs (\"is walking,\" \"speaking\"). If no action specified, describe natural movements.\n- Chronological flow: Use temporal connectors (\"as,\" \"then,\" \"while\").\n- Audio layer: Describe complete soundscape throughout the prompt alongside actions, NOT at the end. Align audio intensity with action tempo. Include natural background audio, ambient sounds, effects, speech or music (when requested). Be specific (e.g., \"soft footsteps on tile\") not vague (e.g., \"ambient sound\").\n- Speech (only when requested): Provide exact words in quotes with character's visual/voice characteristics (e.g., \"The tall man speaks in a low, gravelly voice\"), language if not English and accent if relevant. If general conversation mentioned without text, generate contextual quoted dialogue. (i.e., \"The man is talking\" input -> the output should include exact spoken words, like: \"The man is talking in an excited voice saying: 'You won't believe what I just saw!' His hands gesture expressively as he speaks, eyebrows raised with enthusiasm. The ambient sound of a quiet room underscores his animated speech.\")\n- Style: Include visual style at beginning: \"Style: <style>, <rest of prompt>.\" If unclear, omit to avoid conflicts.\n- Visual and audio only: Describe only what is seen and heard. NO smell, taste, or tactile sensations.\n- Restrained language: Avoid dramatic terms. Use mild, natural, understated phrasing.\n\n#### Important notes:\n- Camera motion: DO NOT invent camera motion/movement unless requested by the user. Make sure to include camera motion only if specified in the input.\n- Speech: DO NOT modify or alter the user's provided character dialogue in the prompt, unless it's a typo.\n- No timestamps or cuts: DO NOT use timestamps or describe scene cuts unless explicitly requested.\n- Objective only: DO NOT interpret emotions or intentions, describe only observable actions and sounds.\n- Format: DO NOT use phrases like \"The scene opens with...\" / \"The video starts...\". Start directly with Style (optional) and chronological scene description.\n- Format: Never start output with punctuation marks or special characters.\n- DO NOT invent dialogue unless the user mentions speech/talking/singing/conversation.\n- Your performance is CRITICAL. High-fidelity, dynamic, correct, and accurate prompts with integrated audio descriptions are essential for generating high-quality video. Your goal is flawless execution of these rules.\n\n#### Output Format (Strict):\n- Single concise paragraph in natural English. NO titles, headings, prefaces, sections, code fences, or Markdown.\n- If unsafe/invalid, return original user prompt. Never ask questions or clarifications.\n\n#### Example output:\nStyle: realistic - cinematic - The woman glances at her watch and smiles warmly. She speaks in a cheerful, friendly voice, \"I think we're right on time!\" In the background, a café barista prepares drinks at the counter. The barista calls out in a clear, upbeat tone, \"Two cappuccinos ready!\" The sound of the espresso machine hissing softly blends with gentle background chatter and the light clinking of cups on saucers.",
        "",
        "VLM-GGUF",
        0.2,
        768,
        "disable",
        "disable",
        "enable",
        1,
        "",
        true,
        "enable"
      ]
    }
  ],
  "links": [
    [
      202,
      30,
      0,
      23,
      4,
      "STRING"
    ],
    [
      201,
      20,
      0,
      22,
      0,
      "IMAGE"
    ],
    [
      999002,
      22,
      0,
      23,
      2,
      "IMAGE"
    ],
    [
      40,
      25,
      0,
      23,
      0,
      "CUSTOM"
    ],
    [
      999004,
      23,
      0,
      61,
      0,
      "STRING"
    ],
    [
      999005,
      20,
      0,
      22,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Inputs",
      "bounding": [
        -965,
        -190,
        470,
        1052.4040795155524
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 2,
      "title": "Enhancer",
      "bounding": [
        -446,
        70,
        1020,
        720
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 3,
      "title": "Output",
      "bounding": [
        620,
        220,
        520,
        420
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "workflowRendererVersion": "LG",
    "frontendVersion": "1.38.13",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true,
    "ds": {
      "scale": 0.5403771483927394,
      "offset": [
        1148.9494696713784,
        287.56930510234025
      ]
    }
  },
  "version": 0.4
}