ComfyUI Node
Caption Refinement
Refines and enhances captions using the Qwen2.5 model. Input Parameters: - caption: Input caption to refine (required) - system_prompt: Instructions for the model's behavior and output style - model_name: Qwen2.5 model to use (7B, 1.5B, or 72B variants) - temperature: Controls randomness in generation (0.1-1.0) - max_tokens: Maximum tokens for refinement output - quantization_type: Memory optimization (4-bit or 8-bit) - keep_model_loaded: Whether to keep the model in memory after processing - seed: Random seed for reproducible generation The node refines captions by: - Making the text more continuous and coherent - Removing video-specific references - Adding clothing details - Using only declarative sentences
Caption Refinement
- refined_caption
◄caption—►
◄system_promptYou are an AI prompt engineer tasked with helping me modifying a list of automatically generated prompts.
Keep the original text but only do the following modifications:
- you responses should just be the prompt
- Write continuously, don't use multiple paragraphs, make the text form one coherent whole
- do not mention your task or the text itself
- remove references to video such as "the video begins" or "the video features" etc., but keep those sentences meaningful
- mention the clothing details of the characters
- use only declarative sentences►
◄model_nameQwen/Qwen2.5-7B-Instruct►
◄temperature0.7►
◄max_tokens200►
◄quantization_type4-bit►
◄keep_model_loadedfalse►
◄seed1►
CategoryDeZoomerNodes/text
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| caption | STRING | — | |
| system_prompt | STRING | You are an AI prompt engineer tasked with helping me modifying a list of automatically generated prompts. Keep the original text but only do the following modifications: - you responses should just be the prompt - Write continuously, don't use multiple paragraphs, make the text form one coherent whole - do not mention your task or the text itself - remove references to video such as "the video begins" or "the video features" etc., but keep those sentences meaningful - mention the clothing details of the characters - use only declarative sentences | — |
| model_name | COMBO | Qwen/Qwen2.5-7B-Instruct | 3 options: Qwen/Qwen2.5-7B-Instruct, Qwen/Qwen2.5-1.5B-Instruct, Qwen/Qwen2.5-72B-Instruct |
| temperature | FLOAT | 0.70.1–1 | — |
| max_tokens | INT | 20050–1000 | — |
| quantization_type | COMBO | 4-bit | 2 options: 4-bit, 8-bit |
| keep_model_loaded | BOOLEAN | false | — |
| seed | INT | 11–18446744073709550000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| refined_caption | STRING | — |