ComfyUI Extension
ComfyUI-Story-GGUF
A powerful ComfyUI custom node for local GGUF model storyboard generation with Vision-Language Model support.
josefhsu/ComfyUI-Story-GGUF
Nodes—
On cloudLocal install
Stars0
Updated7 months ago
Readme
ComfyUI-Story-GGUF (Optimized)
中文
簡介
這是一個強大的 ComfyUI 自定義節點,專為本地 GGUF 模型設計,支援分鏡故事生成。本次優化參考了 GGUFInference 節點,加入了自動偵測、視覺模型 (VLM) 支援以及進階採樣功能。
主要功能
- 自動偵測模型: 自動掃描
models/LLM,models/text_encoders,models/clip目錄下的.gguf與mmproj檔案。 - 視覺模型 (VLM) 支援: 支援傳入圖片,讓 LLM 根據畫面內容生成分鏡(需搭配
mmproj檔案)。 - 進階採樣控制: 加入
Seed,Temperature,Top-P,Top-K等參數,精確控制生成結果。 - 智慧記憶體管理: 支援
keep_model_loaded選項,避免頻繁加載跳轉。 - 噪音清理: 自動移除
<think>標籤,適配思考型模型。
安裝步驟
- 進入
ComfyUI/custom_nodes資料夾。 - 安裝依賴:
註:若需 GPU 加速,請參考 llama-cpp-python 官方文檔安裝對應 CUDA 版本的 wheel。pip install -r requirements.txt
使用方法
- StoryLLMLoader: 從下拉選單選擇模型與
mmproj(若使用視覺模型)。 - StoryBoardGenerator: 輸入故事大綱,可選連接
image分鏡參考圖。
English
Introduction
A powerful ComfyUI custom node for local GGUF model storyboard generation. Optimized with features like auto-detection, Vision-Language Model (VLM) support, and advanced sampling.
Key Features
- Auto-detection: Automatically scans
models/LLM,models/text_encoders, andmodels/clipfor.ggufandmmprojfiles. - Vision Support (VLM): Generate stories based on input images using vision-language models (requires
mmproj). - Advanced Sampling: Full control over
Seed,Temperature,Top-P, andTop-K. - Memory Management: Maintain models in memory using
keep_model_loadedfor faster consecutive runs. - Thinking Tag Clean-up: Automatically strips
<think>tags from output.
Installation
- Navigate to
ComfyUI/custom_nodes. - Install dependencies:
Note: For GPU acceleration, install the appropriate llama-cpp-python wheel for your CUDA version.pip install -r requirements.txt
Usage
- StoryLLMLoader: Select your model and optional
mmprojfrom the dropdown. - StoryBoardGenerator: Enter your story concept and optionally connect an reference
image.
Workflow Examples
- workflow_example.json: Basic GGUF LLM inference and storyboard text generation.
- full_integration_workflow.json: Full pipeline from LLM storyboard generation to Stable Diffusion image generation.
示範工作流
- workflow_example.json: 基礎 GGUF LLM 推理與分鏡文本生成。
- full_integration_workflow.json: 完整流水線,從 LLM 分鏡生成到 Stable Diffusion 圖像產出。