2025-09-22 09:06:38 +02:00
2025-09-15 21:59:24 +02:00
2025-09-15 21:18:10 +02:00
2025-09-14 17:35:09 +02:00
2025-09-14 07:40:48 +02:00
2025-09-15 21:18:10 +02:00
2025-09-14 09:28:31 +02:00
2025-09-12 16:25:03 +02:00
2025-09-22 09:06:38 +02:00
2025-09-14 09:23:32 +02:00
2025-09-14 09:23:32 +02:00

ComfyUI-Ollama-Enhancer 🚀

Custom ComfyUI nodes powered by Ollama
to automatically generate and refine positive/negative prompts for diffusion models like Stable Diffusion XL and Flux.


✨ Features

  • 🔹 Automatic positive & negative prompt generation via Ollama
  • 🔹 Compatible with Stable Diffusion XL and Flux models
  • 🔹 Connects to local or remote Ollama endpoints (http://localhost:11434 or your server)
  • 🔹 Produces ready-to-use encoded outputs for seamless workflow integration
  • 🔹 Optional CPU mode to save VRAM
  • 🔹 Simple, plug-and-play integration with existing ComfyUI pipelines

🎨 Workflow example in ComfyUI

workflow


📦 Installation for Comfyui

Clone this repo inside your ComfyUI custom_nodes folder:

# Step 1 – go to the folder where you keep custom nodes for ComfyUI
cd ComfyUI/custom_nodes

# Step 2 – clone your copy of the Ollama‑Enhancer node from GitHub
git clone git@github.com:efortin/ComfyUI-Ollama-Enhancer.git

# Step 3 – change into the newly‑cloned repository
cd ComfyUI-Ollama-Enhancer

# Step 4 – install the Python dependencies listed in requirements.txt
# (the file is automatically generated by uv, but we keep it for compatibility)
pip install -r requirements.txt

📦 Installation for local dev

mise trust .mise.toml
mise run setup-dev 
mise run test
mise run ollama \
  --user_prompt "A whimsical Ghibli-style girl in a forest at sunset" \
  --ollama_url=https://ollama.empyr.cloud \
  --force_cpu true \
  --enhance_positive true
S
Description
No description provided
Readme
1.1 MiB
Languages
Python 95.1%
Jinja 4.9%