Nodes/ComfyUI-IF_AI_tools/IF Image to Prompt🖼️
ComfyUI Node

IF Image to Prompt🖼️

A ComfyUI node in ImpactFrames💥🎞️/IF_tools with 32 inputs and 6 outputs.

By if-ai·Created 2 years ago·Updated 11 months ago· 701
IF Image to Prompt🖼️
  • images
  • mask
  • Omni
  • question
  • response
  • negative
  • omni
  • generated_images
  • mask
llm_provider
llm_model
base_iplocalhost
port11434
user_prompt
strategynormal
prime_directives
profilesNone
embellish_prompt
style_prompt
neg_prompt
stop_string
max_tokens2048
randomfalse
seed0
temperature0.70
top_k40
top_p0.90
repeat_penalty1.10
keep_alivefalse
clear_historyfalse
history_steps10
aspect_ratio1:1
autofalse
auto_modefalse
batch_count4
external_api_key
precision
attention
CategoryImpactFrames💥🎞️/IF_tools

Inputs (32)

NameTypeDefaultDescription
imagesIMAGE
llm_providerCOMBO12 options: xai, llamacpp, ollama, kobold, lmstudio, textgen, +6
llm_modelCOMBO0 options:
base_ipSTRINGlocalhost
portSTRING11434
user_promptSTRING
strategyoptCOMBOnormal5 options: normal, omost, create, edit, variations
maskoptMASK
prime_directivesoptSTRINGThe system prompt for the LLM.
profilesoptCOMBONoneThe pre-defined system_prompt from the json profile file on the presets folder you can edit or make your own will be listed here.
embellish_promptoptCOMBOThe pre-defined embellishment from the json embellishments file on the presets folder you can edit or make your own will be listed here.
style_promptoptCOMBOThe pre-defined style from the json style_prompts file on the presets folder you can edit or make your own will be listed here.
neg_promptoptCOMBOThe pre-defined negative prompt from the json neg_prompts file on the presets folder you can edit or make your own will be listed here.
stop_stringoptCOMBOSpecifies a string at which text generation should stop.
max_tokensoptINT20481–8192Maximum number of tokens to generate in the response.
randomoptBOOLEANfalseToggles between using a fixed seed or temperature-based randomness.
seedoptINT0Random seed for reproducible outputs.
temperatureoptFLOAT0.700–1Controls randomness in output generation. Higher values increase creativity but may reduce coherence.
top_koptINT40Limits the next token selection to the K most likely tokens.
top_poptFLOAT0.90Cumulative probability cutoff for token selection.
repeat_penaltyoptFLOAT1.10Penalizes repetition in generated text.
keep_aliveoptBOOLEANfalseDetermines whether to keep the model loaded in memory between calls.
clear_historyoptBOOLEANfalseDetermines whether to clear the history between calls.
history_stepsoptINT10Number of steps to keep in history.
aspect_ratiooptCOMBO1:1Aspect ratio for the generated images.
autooptBOOLEANfalseIf true, it generates auto promts based on the listed images click the save combomix settings to set the auto prompt generation file
auto_modeoptBOOLEANfalseIf true, it generates a prompt for each image with Combo mode and Mix mode combined a maximum of 4 images in the list then moves to the next 4 and use it to run a job as many times as your batch count is set. the settings are taken from the yaml file
batch_countoptINT4Number of images to generate. only for create, edit and variations strategies.
external_api_keyoptSTRINGIf this is not empty, it will be used instead of the API key from the .env file. Make sure it is empty to use the .env file.
precisionoptCOMBOSelect preccision on Transformer models.
attentionoptCOMBOSelect attention mechanism on Transformer models.
OmnioptOMNIAdditional input for the selected tool.

Outputs (6)

NameTypeDescription
questionSTRING
responseSTRING
negativeSTRING
omniOMNI
generated_imagesIMAGE
maskMASK