Nodes/CaptionForge/ JLC CaptionForge Ollama Caption
ComfyUI Node

 JLC CaptionForge Ollama Caption

A ComfyUI node in Captioning/CaptionForge/Caption Nodes with 25 inputs and 5 outputs.

By Damkohler·Created 3 months ago·Updated 2 months ago· 1
 JLC CaptionForge Ollama Caption
  • image
  • pipeline_plan
  • template_options
  • image_out
  • pipeline_plan_out
  • template_options_out
  • caption
  • resolved_prompt
modelgemma4:26b
custom_model_tag
ollama_urlhttp://127.0.0.1:11434
keep_loadedtrue
caption_template_modetrue
caption_typeLoRA Literal
caption_lengthany
custom_prompt_modefalse
prompt_presetfemale_character_lora
system_promptYou are a multimodal image captioning engine for female character LoRA dataset preparation. Your job is to inspect the image and write one strong standalone caption. Rules: - Describe only visible image content. - Output exactly one paragraph and nothing else. - Do not output analysis, reasoning, notes, bullet points, labels, or a thinking trace. - Do not roleplay, address the user, ask follow-up questions, or include safety disclaimers. - If a detail is uncertain, omit it rather than hedge. - Use direct dataset-caption language, not chatty commentary.
custom_promptWrite one clean caption for a female character LoRA dataset. Caption priorities: - Be specific rather than generic. - Prioritize female-character-LoRA-relevant visual traits: subject type, pose, facial structure, expression, hair color and hairstyle, eye color, makeup color as distinct from eye color, lip shape and fullness, skin appearance, neck length, shoulder line, bust/chest shape, waist definition, hip width, body proportions, silhouette, legs, clothing construction, accessories, dominant colors, lighting, background, framing, and visual style. - Include visible anatomy and figure information when clear and relevant. Do not omit body-shape or facial-structure details merely because they are sensual, revealing, or anatomy-related. - If the image presents glamour, sensuality, revealing clothing, lingerie, swimwear, cleavage, underboob, sideboob, bare midriff, exposed hips, thighs, or other sexualized styling, describe that directly and matter-of-factly when visible. - Use strong, open dataset-caption language rather than timid euphemisms, but do not turn the caption into roleplay, commentary, or erotic prose. - Do not invent nudity, explicit acts, hidden anatomy, or hidden clothing details. - Do not force photo, render, doll, anime, realistic, or stylized language unless supported by the image. - Avoid meta phrases like "this image shows" or "the picture depicts." - One paragraph only. Final caption:
max_new_tokens1800
temperature0.18
top_p0.92
top_k60
repetition_penalty1.03
max_size1024
request_timeout_seconds900
forbidden_phrases
replace_pairs
download_probe_onlyfalse
seed
CategoryCaptioning/CaptionForge/Caption Nodes

Inputs (25)

NameTypeDefaultDescription
modelCOMBOgemma4:26bOllama vision-language model tag. Choices are loaded from config/captionforge_ollama_models.json -> caption_models. Use custom for any locally installed or pullable Ollama model tag.
custom_model_tagSTRINGUsed only when model is custom. Example: gemma4:12b or qwen3.6:35B-A3B.
ollama_urlSTRINGhttp://127.0.0.1:11434Local Ollama server URL. Default is http://127.0.0.1:11434.
keep_loadedBOOLEANtrueAsk Ollama to keep the model warm after generation. This is passed as keep_alive. Ollama ultimately owns model residency.
caption_template_modeBOOLEANtrueUse the structured CaptionForge template path: caption_type, caption_length, and optional Template Options from the template_options pin. If custom_prompt_mode is also enabled, custom_prompt_mode takes precedence.
caption_typeCOMBOLoRA LiteralCaption template style used when caption_template_mode is active.
caption_lengthCOMBOanyTarget caption length used when caption_template_mode is active.
custom_prompt_modeBOOLEANfalseUse custom_prompt when non-empty, otherwise use prompt_preset. This overrides caption_template_mode when both toggles are enabled.
prompt_presetCOMBOfemale_character_loraBuilt-in prompt preset used only in custom_prompt_mode when custom_prompt is blank. Default is female_character_lora.
system_promptSTRINGYou are a multimodal image captioning engine for female character LoRA dataset preparation. Your job is to inspect the image and write one strong standalone caption. Rules: - Describe only visible image content. - Output exactly one paragraph and nothing else. - Do not output analysis, reasoning, notes, bullet points, labels, or a thinking trace. - Do not roleplay, address the user, ask follow-up questions, or include safety disclaimers. - If a detail is uncertain, omit it rather than hedge. - Use direct dataset-caption language, not chatty commentary.Ollama system prompt. Kept next to custom_prompt because both control the instruction envelope. Prepopulated with the default female-character LoRA captioning system prompt. Pipeline Planner does not currently override this.
custom_promptSTRINGWrite one clean caption for a female character LoRA dataset. Caption priorities: - Be specific rather than generic. - Prioritize female-character-LoRA-relevant visual traits: subject type, pose, facial structure, expression, hair color and hairstyle, eye color, makeup color as distinct from eye color, lip shape and fullness, skin appearance, neck length, shoulder line, bust/chest shape, waist definition, hip width, body proportions, silhouette, legs, clothing construction, accessories, dominant colors, lighting, background, framing, and visual style. - Include visible anatomy and figure information when clear and relevant. Do not omit body-shape or facial-structure details merely because they are sensual, revealing, or anatomy-related. - If the image presents glamour, sensuality, revealing clothing, lingerie, swimwear, cleavage, underboob, sideboob, bare midriff, exposed hips, thighs, or other sexualized styling, describe that directly and matter-of-factly when visible. - Use strong, open dataset-caption language rather than timid euphemisms, but do not turn the caption into roleplay, commentary, or erotic prose. - Do not invent nudity, explicit acts, hidden anatomy, or hidden clothing details. - Do not force photo, render, doll, anime, realistic, or stylized language unless supported by the image. - Avoid meta phrases like "this image shows" or "the picture depicts." - One paragraph only. Final caption:Custom prompt used only when custom_prompt_mode is enabled. The widget is prepopulated with the default LoRA-oriented prompt; if cleared, prompt_preset is used instead.
max_new_tokensINT180016–8192Standalone token budget. For this Ollama-backed node, CaptionForge max_new_tokens is sent to Ollama as num_predict. When a Pipeline Planner is connected, this is overridden by the Planner's shared max_new_tokens.
temperatureFLOAT0.180–2Standalone sampling temperature. When a Pipeline Planner is connected, this is overridden by the Planner temperature schedule.
top_pFLOAT0.920–1Standalone top-p sampling value. When a Pipeline Planner is connected, this is overridden by the Planner top-p schedule.
top_kINT600–500Standalone top-k sampling limit. When a Pipeline Planner is connected, this is overridden by the Planner top-k schedule.
repetition_penaltyFLOAT1.031–2Ollama repeat_penalty. Kept with the core captioning parameters. This is not currently overridden by the Pipeline Planner.
max_sizeINT10240–4096Maximum longest-side image size for standalone captioning. The image is resized in memory only. Pipeline Planner overrides this in planned runs.
request_timeout_secondsINT90010–7200HTTP timeout for Ollama API calls, including large model pulls/generation.
forbidden_phrasesSTRINGOptional cleanup filter: remove lines/captions containing any listed phrase, one per line.
replace_pairsSTRINGOptional cleanup replacements, one per line: old=>new.
download_probe_onlyBOOLEANfalseAt the very bottom by design. Check Ollama availability, local model installation, and best-effort remote tag existence, then return a status message without captioning.
imageoptIMAGEImage or batch of images to caption. The image is passed through unchanged for clean node-to-node pipeline chaining.
pipeline_planoptCAPTIONFORGE_PIPELINE_PLANConnect the CaptionForge Pipeline Planner output here. When connected, this node switches into Pass A evidence mode: Planner image routing, per-run seeds, sampling schedules, shared output paths, and internal JSONL evidence append.
template_optionsoptCAPTIONFORGE_EXTRA_OPTIONSConnect the CaptionForge Template Options node here. Works in standalone and Pipeline modes. This is the only source for template modifiers and name input.
seedoptINTOptional standalone seed input. Ignored when a Pipeline Planner supplies a seed schedule.

Outputs (5)

NameTypeDescription
image_outIMAGE
pipeline_plan_outCAPTIONFORGE_PIPELINE_PLAN
template_options_outCAPTIONFORGE_EXTRA_OPTIONS
captionSTRING
resolved_promptSTRING