ussaaron commited on
Commit
1849a79
·
verified ·
1 Parent(s): 2007b48

Upload Gemma3-27B_LTX-2_PromptEnhancer.json

Browse files
Files changed (1) hide show
  1. Gemma3-27B_LTX-2_PromptEnhancer.json +456 -0
Gemma3-27B_LTX-2_PromptEnhancer.json ADDED
@@ -0,0 +1,456 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "2aa3ba93-211a-4e32-8b51-3a8ecbd26012",
3
+ "revision": 0,
4
+ "last_node_id": 62,
5
+ "last_link_id": 999005,
6
+ "nodes": [
7
+ {
8
+ "id": 61,
9
+ "type": "PreviewAny",
10
+ "pos": [
11
+ 723.6558778824344,
12
+ 348.70956913117413
13
+ ],
14
+ "size": [
15
+ 318.81727649319555,
16
+ 199.11831566595265
17
+ ],
18
+ "flags": {},
19
+ "order": 6,
20
+ "mode": 0,
21
+ "inputs": [
22
+ {
23
+ "name": "source",
24
+ "type": "*",
25
+ "link": 999004
26
+ }
27
+ ],
28
+ "outputs": [],
29
+ "properties": {
30
+ "cnr_id": "comfy-core",
31
+ "ver": "0.13.0",
32
+ "Node name for S&R": "PreviewAny"
33
+ },
34
+ "widgets_values": [
35
+ null,
36
+ null,
37
+ null
38
+ ]
39
+ },
40
+ {
41
+ "id": 22,
42
+ "type": "Reroute",
43
+ "pos": [
44
+ -478.5929563194253,
45
+ 195.32059151926558
46
+ ],
47
+ "size": [
48
+ 75,
49
+ 26
50
+ ],
51
+ "flags": {},
52
+ "order": 4,
53
+ "mode": 0,
54
+ "inputs": [
55
+ {
56
+ "name": "",
57
+ "type": "*",
58
+ "link": 999005
59
+ }
60
+ ],
61
+ "outputs": [
62
+ {
63
+ "name": "",
64
+ "type": "IMAGE",
65
+ "links": [
66
+ 999002
67
+ ]
68
+ }
69
+ ],
70
+ "title": "Image Input Reroute",
71
+ "properties": {
72
+ "showOutputText": false,
73
+ "horizontal": false,
74
+ "Node name for S&R": "Reroute"
75
+ }
76
+ },
77
+ {
78
+ "id": 62,
79
+ "type": "MarkdownNote",
80
+ "pos": [
81
+ -429.6987715406843,
82
+ -263.51206141637516
83
+ ],
84
+ "size": [
85
+ 980,
86
+ 270
87
+ ],
88
+ "flags": {
89
+ "collapsed": false
90
+ },
91
+ "order": 0,
92
+ "mode": 0,
93
+ "inputs": [],
94
+ "outputs": [],
95
+ "title": "Prompt Enhancer Only",
96
+ "properties": {},
97
+ "widgets_values": [
98
+ "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"
99
+ ],
100
+ "color": "#432",
101
+ "bgcolor": "#653"
102
+ },
103
+ {
104
+ "id": 25,
105
+ "type": "LLavaLoader",
106
+ "pos": [
107
+ -371.1620694300964,
108
+ 288.2749087043521
109
+ ],
110
+ "size": [
111
+ 420,
112
+ 220
113
+ ],
114
+ "flags": {},
115
+ "order": 1,
116
+ "mode": 0,
117
+ "inputs": [],
118
+ "outputs": [
119
+ {
120
+ "label": "model",
121
+ "name": "model",
122
+ "type": "CUSTOM",
123
+ "slot_index": 0,
124
+ "links": [
125
+ 40
126
+ ]
127
+ }
128
+ ],
129
+ "properties": {
130
+ "cnr_id": "comfyui_llm_party",
131
+ "ver": "1.4.1",
132
+ "Node name for S&R": "LLavaLoader"
133
+ },
134
+ "widgets_values": [
135
+ "/home/ubuntu/ComfyUI//models/llm_models/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning.Q8_0.gguf",
136
+ "/home/ubuntu/ComfyUI/models/llm_models/Gemma3-27B-it-vl-GLM-4.7-Uncensored-Heretic-Deep-Reasoning.mmproj-Q8_0.gguf",
137
+ 1836,
138
+ 31,
139
+ 8,
140
+ "minicpm-v-2.6",
141
+ false
142
+ ]
143
+ },
144
+ {
145
+ "id": 30,
146
+ "type": "PrimitiveStringMultiline",
147
+ "pos": [
148
+ -934.4993233290827,
149
+ 499.3783025609207
150
+ ],
151
+ "size": [
152
+ 410,
153
+ 320
154
+ ],
155
+ "flags": {},
156
+ "order": 2,
157
+ "mode": 0,
158
+ "inputs": [],
159
+ "outputs": [
160
+ {
161
+ "name": "STRING",
162
+ "type": "STRING",
163
+ "links": [
164
+ 202
165
+ ]
166
+ }
167
+ ],
168
+ "title": "Raw Prompt",
169
+ "properties": {
170
+ "cnr_id": "comfy-core",
171
+ "ver": "0.5.1",
172
+ "Node name for S&R": "PrimitiveStringMultiline"
173
+ },
174
+ "widgets_values": [
175
+ "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"
176
+ ],
177
+ "color": "#232",
178
+ "bgcolor": "#353"
179
+ },
180
+ {
181
+ "id": 20,
182
+ "type": "LoadImage",
183
+ "pos": [
184
+ -939.1180467084035,
185
+ -37.879351628349774
186
+ ],
187
+ "size": [
188
+ 410,
189
+ 440
190
+ ],
191
+ "flags": {},
192
+ "order": 3,
193
+ "mode": 0,
194
+ "inputs": [],
195
+ "outputs": [
196
+ {
197
+ "name": "IMAGE",
198
+ "type": "IMAGE",
199
+ "links": [
200
+ 201,
201
+ 999005
202
+ ]
203
+ },
204
+ {
205
+ "name": "MASK",
206
+ "type": "MASK",
207
+ "links": []
208
+ }
209
+ ],
210
+ "title": "LoadImage (optional)",
211
+ "properties": {
212
+ "cnr_id": "comfy-core",
213
+ "ver": "0.13.0",
214
+ "Node name for S&R": "LoadImage"
215
+ },
216
+ "widgets_values": [
217
+ "example.png",
218
+ "image"
219
+ ]
220
+ },
221
+ {
222
+ "id": 23,
223
+ "type": "LLM_local",
224
+ "pos": [
225
+ 70,
226
+ 170
227
+ ],
228
+ "size": [
229
+ 460,
230
+ 560
231
+ ],
232
+ "flags": {},
233
+ "order": 5,
234
+ "mode": 0,
235
+ "inputs": [
236
+ {
237
+ "label": "model",
238
+ "name": "model",
239
+ "type": "CUSTOM",
240
+ "link": 40
241
+ },
242
+ {
243
+ "label": "tokenizer",
244
+ "name": "tokenizer",
245
+ "shape": 7,
246
+ "type": "CUSTOM",
247
+ "link": null
248
+ },
249
+ {
250
+ "label": "image",
251
+ "name": "image",
252
+ "shape": 7,
253
+ "type": "IMAGE",
254
+ "link": 999002
255
+ },
256
+ {
257
+ "label": "system_prompt_input",
258
+ "name": "system_prompt_input",
259
+ "shape": 7,
260
+ "type": "STRING",
261
+ "link": null
262
+ },
263
+ {
264
+ "label": "user_prompt_input",
265
+ "name": "user_prompt_input",
266
+ "shape": 7,
267
+ "type": "STRING",
268
+ "link": 202
269
+ },
270
+ {
271
+ "label": "tools",
272
+ "name": "tools",
273
+ "shape": 7,
274
+ "type": "STRING",
275
+ "link": null
276
+ },
277
+ {
278
+ "label": "file_content",
279
+ "name": "file_content",
280
+ "shape": 7,
281
+ "type": "STRING",
282
+ "link": null
283
+ },
284
+ {
285
+ "label": "extra_parameters",
286
+ "name": "extra_parameters",
287
+ "shape": 7,
288
+ "type": "DICT",
289
+ "link": null
290
+ },
291
+ {
292
+ "name": "user_history",
293
+ "shape": 7,
294
+ "type": "STRING",
295
+ "link": null
296
+ }
297
+ ],
298
+ "outputs": [
299
+ {
300
+ "label": "assistant_response",
301
+ "name": "assistant_response",
302
+ "type": "STRING",
303
+ "slot_index": 0,
304
+ "links": [
305
+ 999004
306
+ ]
307
+ },
308
+ {
309
+ "label": "history",
310
+ "name": "history",
311
+ "type": "STRING",
312
+ "links": null
313
+ },
314
+ {
315
+ "label": "tool",
316
+ "name": "tool",
317
+ "type": "STRING",
318
+ "links": null
319
+ },
320
+ {
321
+ "label": "image",
322
+ "name": "image",
323
+ "type": "IMAGE",
324
+ "links": null
325
+ }
326
+ ],
327
+ "properties": {
328
+ "cnr_id": "comfyui_llm_party",
329
+ "ver": "1.4.1",
330
+ "Node name for S&R": "LLM_local"
331
+ },
332
+ "widgets_values": [
333
+ "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.",
334
+ "",
335
+ "VLM-GGUF",
336
+ 0.2,
337
+ 768,
338
+ "disable",
339
+ "disable",
340
+ "enable",
341
+ 1,
342
+ "",
343
+ true,
344
+ "enable"
345
+ ]
346
+ }
347
+ ],
348
+ "links": [
349
+ [
350
+ 202,
351
+ 30,
352
+ 0,
353
+ 23,
354
+ 4,
355
+ "STRING"
356
+ ],
357
+ [
358
+ 201,
359
+ 20,
360
+ 0,
361
+ 22,
362
+ 0,
363
+ "IMAGE"
364
+ ],
365
+ [
366
+ 999002,
367
+ 22,
368
+ 0,
369
+ 23,
370
+ 2,
371
+ "IMAGE"
372
+ ],
373
+ [
374
+ 40,
375
+ 25,
376
+ 0,
377
+ 23,
378
+ 0,
379
+ "CUSTOM"
380
+ ],
381
+ [
382
+ 999004,
383
+ 23,
384
+ 0,
385
+ 61,
386
+ 0,
387
+ "STRING"
388
+ ],
389
+ [
390
+ 999005,
391
+ 20,
392
+ 0,
393
+ 22,
394
+ 0,
395
+ "IMAGE"
396
+ ]
397
+ ],
398
+ "groups": [
399
+ {
400
+ "id": 1,
401
+ "title": "Inputs",
402
+ "bounding": [
403
+ -965,
404
+ -190,
405
+ 470,
406
+ 1052.4040795155524
407
+ ],
408
+ "color": "#3f789e",
409
+ "font_size": 24,
410
+ "flags": {}
411
+ },
412
+ {
413
+ "id": 2,
414
+ "title": "Enhancer",
415
+ "bounding": [
416
+ -446,
417
+ 70,
418
+ 1020,
419
+ 720
420
+ ],
421
+ "color": "#3f789e",
422
+ "font_size": 24,
423
+ "flags": {}
424
+ },
425
+ {
426
+ "id": 3,
427
+ "title": "Output",
428
+ "bounding": [
429
+ 620,
430
+ 220,
431
+ 520,
432
+ 420
433
+ ],
434
+ "color": "#3f789e",
435
+ "font_size": 24,
436
+ "flags": {}
437
+ }
438
+ ],
439
+ "config": {},
440
+ "extra": {
441
+ "workflowRendererVersion": "LG",
442
+ "frontendVersion": "1.38.13",
443
+ "VHS_latentpreview": false,
444
+ "VHS_latentpreviewrate": 0,
445
+ "VHS_MetadataImage": true,
446
+ "VHS_KeepIntermediate": true,
447
+ "ds": {
448
+ "scale": 0.5403771483927394,
449
+ "offset": [
450
+ 1148.9494696713784,
451
+ 287.56930510234025
452
+ ]
453
+ }
454
+ },
455
+ "version": 0.4
456
+ }