Nodes/WAS LMStudio Easy-Query/LM Studio Caption Dataset
ComfyUI Node

LM Studio Caption Dataset

A ComfyUI node in LM Studio with 8 inputs and 3 outputs.

By WASasquatch·Created 9 months ago·Updated 5 months ago· 17
LM Studio Caption Dataset
  • model
  • dataset
  • options
  • captions
  • written_caption_paths
  • result
system_promptYou are a professional image captioner. Describe the image in natural, concise prose with attention to composition, lighting, and details.
user_prompt
trigger_word_or_phrase
trigger_concat_modeprepend
caption_behavioroverwrite
CategoryLM Studio

Inputs (8)

NameTypeDefaultDescription
modelLMSTUDIO_MODELModel settings from LM Studio Model node.
datasetLMSTUDIO_DATASET_IMAGESDictionary produced by WASLoadImageDirectory mapping file paths to metadata.
system_promptSTRINGYou are a professional image captioner. Describe the image in natural, concise prose with attention to composition, lighting, and details.System prompt that defines the assistant's behavior and captioning style.
user_promptSTRINGOptional extra instructions for each image.
trigger_word_or_phraseSTRINGOptional trigger word or phrase to add to each caption.
trigger_concat_modeCOMBOprependWhether to prepend or append the trigger word/phrase to the caption.
caption_behaviorCOMBOoverwriteBehavior when caption file already exists: overwrite (replace), prepend (add before existing), append (add after existing).
optionsoptLMSTUDIO_OPTIONSOverride generation options.

Outputs (3)

NameTypeDescription
captionsSTRING
written_caption_pathsSTRING
resultSTRING