if-ai / ComfyUI-IF_AI_tools

ComfyUI-IF_AI_tools is a set of custom nodes for ComfyUI that allows you to generate prompts using a local Large Language Model (LLM) via Ollama. This tool enables you to enhance your image generation workflow by leveraging the power of language models.
https://ko-fi.com/impactframes
MIT License
510 stars 39 forks source link

Some expansion possibilities #116

Open BoastfulCat opened 1 day ago

BoastfulCat commented 1 day ago

I would like to ask if someone can give me some advice or if the author can make some small edits to the extension code:

regarding the dynamic prompt, I would like to implement the following logic (maybe this can be solved with some other extensions): the main query generates an ollama. then, in each iteration, a line from the dynamic query is added to this query.

i.e. if the main prompt from the ollama is

Exquisite, ethereal beauty radiates from her porcelain skin, heart-shaped face, and captivating gaze, as she walks through an enchanted forest, adorned in a flowing, iridescent gown that shimmers like moonlight, her raven locks cascading down her back like a waterfall, surrounded by mythical creatures and lush flora, under a starry sky. Eerie, unsettling, dark, grotesque, suspenseful

and the dynamic prompt says

{close-up, dramatic lighting, intense gaze into camera|full-body shot, dynamic pose, slightly tilted angle}

then I should get several generations with queries like

queue 1:

close-up, dramatic lighting, intense gaze into camera, Exquisite, ethereal beauty radiates from her porcelain skin, heart-shaped face, and captivating gaze, as she walks through an enchanted forest, adorned in a flowing, iridescent gown that shimmers like moonlight, her raven locks cascading down her back like a waterfall, surrounded by mythical creatures and lush flora, under a starry sky. Eerie, unsettling, dark, grotesque, suspenseful

queue 2:

full-body shot, dynamic pose, slightly tilted angle, Exquisite, ethereal beauty radiates from her porcelain skin, heart-shaped face, and captivating gaze, as she walks through an enchanted forest, adorned in a flowing, iridescent gown that shimmers like moonlight, her raven locks cascading down her back like a waterfall, surrounded by mythical creatures and lush flora, under a starry sky. Eerie, unsettling, dark, grotesque, suspenseful

if-ai commented 1 day ago

I work into adding this.

BoastfulCat commented 2 hours ago

I made a chain of different nodes so that i can use ollam's prompt and the variant combinator (https://github.com/adieyal/comfyui-dynamicprompts | https://github.com/florestefano1975/comfyui-prompt-composer). But! I can't figure out how to skip the repeated negation of ollam's prompt until all variants of the combinator are tried

if-ai commented 1 hour ago

Yes I have added a new way where you get AI negatives in the coming update and then I will add the functionality you asked. so the negatives won't repeat as much