Code Monkey home page Code Monkey logo

darth-veitcher / comfyui-if_ai_tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from if-ai/comfyui-if_ai_tools

0.0 0.0 0.0 138 KB

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.

Home Page: https://ko-fi.com/impactframes

JavaScript 18.70% Python 81.01% Batchfile 0.29%

comfyui-if_ai_tools's Introduction

ComfyUI-IF_AI_tools

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.

Features

  • Generate prompts using a local LLM via Ollama
  • generate SD prompts or ask questions about an image with Image to prompt node
  • Save generated text
  • Integrate with ComfyUI for a seamless workflow

Prerequisites

  • Ollama - You need to install Ollama for this tool to work. Visit ollama.com for more information.

Optionally Set enviromnet variables for "ANTHROPIC_API_KEY" & "OPENAI_API_KEY" with those names or otherwise it won't pick it up and the respective API keys

Installation

  1. Install Ollama by following the instructions on their GitHub page on windows

You can also install the Node from the ComfyUI manager

  1. Open a terminal and type following command to install the model:

       ollama run brxce/stable-diffusion-prompt-generator
  2. Navigate to your ComfyUI custom_nodes folder, type CMD on the address bar to open a command prompt, and run the following command to clone the repository:

       git clone https://github.com/if-ai/ComfyUI-IF_AI_tools.git
  3. In ComfyUI protable version just dounle click embedded_install.bat or type CMD on the address bar on the newly created custom_nodes\ComfyUI-IF_AI_tools folder type

       H:\ComfyUI_windows_portable\python_embeded\python.exe -m pip install -r requirements.txt

    replace C:\ for your Drive letter where you have the ComfyUI_windows_portable directory

    On custom environment activate the environment and move to the newly created ComfyUI-IF_AI_tools

       cd ComfyUI-IF_AI_tools
       python -m pip install -r requirements.txt

Usage

  1. Start ComfyUI.

  2. Load the custom workflow located in the custom_nodes\ComfyUI-IF_AI_tools\workflows folder.

  3. Run the queue to generate an image.

Recommended Models

Support

If you find this tool useful, please consider supporting my work by:

Your support helps me bring updates and improvements faster!

Related Tools

  • IF_prompt_MKR - A similar tool available for Stable Diffusion WebUI

AIFuzz made a great video usining ollama and IF_AI tools AIFuzz

Also Future thinker @ Benji Thankyou both for putting out this awesome videos Future Thinker @Benji

Example using normal Model

ancient Megastructure, small lone figure 'A dwarfed figure standing atop an ancient megastructure, worn stone towering overhead. Underneath the dim moonlight, intricate engravings adorn the crumbling walls. Overwhelmed by the sheer size and age of the structure, the small figure appears lost amidst the weathered stone behemoth. The background reveals a dark landscape, dotted with faint twinkles from other ancient structures, scattered across the horizon. The silent air is only filled with the soft echoes of distant whispers, carrying secrets of times long past. ethereal-fantasy-concept-art, magical-ambiance, magnificent, celestial, ethereal-lighting, painterly, epic, majestic, dreamy-atmosphere, otherworldly, mystic-elements, surreal, immersive-detail' IF_prompt_Mkr__00011 IF_prompt_Mkr__00012 IF_prompt_Mkr__00010 IF_prompt_Mkr__00014

:IFAItools_comfy

comfyui-if_ai_tools's People

Contributors

if-ai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.