Skip to content
프로젝트

lovisdotio/workflow-comfyui-single-image-to-lora-flux

GitHub에서 보기

소개

Single image to Lora Model for Flux in ComfyUI using Llm and Flux Kontext

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Single Image to LoRA - ComfyUI Workflow

Automated ComfyUI workflow that creates a custom LoRA model from just one reference image.

How It Works

  1. LLM Prompt Generation: Gemini analyzes your image and generates 20 diverse prompts
  2. Image Generation: FLUX.1 Kontext creates 20 consistent variations using those prompts
  3. Dataset Creation: Images are automatically saved with caption files
  4. LoRA Training: Integrated training directly in ComfyUI

Workflow Capture

Setup

Required Custom Nodes

Install via ComfyUI Manager:

  • ComfyUI-Impact-Pack
  • WAS Node Suite
  • ComfyUI_Fill-Nodes
  • ComfyUI-KJNodes
  • comfyui_tinyterranodes
  • ComfyUI-FluxTrainer
  • ComfyUI-SP-Nodes
  • ComfyUI-Custom-Scripts

Required Models

  • FLUX.1 Kontext model (flux1-dev-kontext_fp8_scaled.safetensors)
  • FLUX VAE (ae.safetensors)
  • FLUX CLIP encoders (clip_l.safetensors, t5xxl_fp8_e4m3fn_scaled.safetensors)
  • Training models (flux1-dev.safetensors, t5xxl_fp16.safetensors)

Usage

  1. Load the workflow.json file into ComfyUI
  2. Connect your reference image to the Load Image node
  3. Set your Gemini API key in the FL_GeminiVideoCaptioner node
  4. Configure:
    • Trigger word: Unique word for your LoRA
    • Folder name: Where to save dataset and LoRA
    • Output path: Path to ComfyUI output directory
  5. Run the workflow

Your trained LoRA will be saved in the specified folder.

Links

관련 프로젝트 살펴보기

불러오는 중…