2024-06-18 14:23:26 +12:00
2024-06-18 14:21:20 +12:00
2024-06-18 11:59:31 +12:00
2024-06-18 11:59:31 +12:00
2024-06-13 10:48:24 +12:00
2024-06-13 10:29:57 +12:00
2024-06-13 09:18:43 +12:00
2024-06-18 14:23:26 +12:00
2024-06-18 14:16:50 +12:00
2024-06-13 10:29:57 +12:00

ComfyUI Ollama Prompt Encode

A prompt generator and CLIP encoder using AI provided by Ollama.

Prerequisites

Install Ollama and have the service running.

This node has been tested with ollama version 0.1.42.

Usage

Example Usage

The Ollama CLIP Prompt Encode node is designed to replace the default CLIP Text Encode (Prompt) node. It generates a prompt using the Ollama AI model and then encodes the prompt with CLIP.

The node will output the generated prompt as a string. This can be viewed with rgthree's Display Any node.

An example workflow is available in the docs folder.

Ollama URL

The URL to the Ollama service. The default is http://localhost:11434.

Ollama Model

This is the model that is used to generate your prompt.

Some models that work well with this prompt generator are:

  • orca-mini
  • mistral
  • tinyllama

The node will automatically download the model if it is not already present on your system.

Smaller models are recommended for faster generation times.

Seed

The seed that will be used to generate the prompt. This is useful for generating the same prompt multiple times or ensuring a different prompt is generated each time.

Prepend Tags

A string that will be prepended to the generated prompt.

This is useful for models like pony that work best with extra tags like score_9, score_8_up.

Text

The text that will be used by the AI model to generate the prompt.

Testing

Run the tests with:

python -m unittest

Credits

Michael Standen

This software is provided under the MIT License so it's free to use so long as you give me credit.

S
Description
No description provided
Readme MIT
373 KiB
Languages
Python 100%