메인 콘텐츠로 건너뛰기

FLUX.1 Kontext Dev 소개

FLUX.1 Kontext는 블랙 포레스트 랩스가 개발한 획기적인 멀티모달 이미지 편집 모델로, 텍스트와 이미지를 동시에 입력받아 이미지의 맥락을 지능적으로 이해하고 정밀한 편집을 수행합니다. 이 모델의 개발 버전은 120억 파라미터를 가진 오픈소스 확산 트랜스포머 모델로, 뛰어난 맥락 이해력과 캐릭터 일관성 유지 기능을 갖추고 있어 여러 차례 반복 편집을 거쳐도 캐릭터 특징과 구성 레이아웃과 같은 핵심 요소들이 안정적으로 유지됩니다. 이 모델은 FLUX.1 Kontext 제품군과 동일한 핵심 기능을 공유합니다:
  • 캐릭터 일관성: 이미지 내의 참조 캐릭터나 객체와 같은 고유한 요소들을 여러 장면과 환경에서도 보존합니다.
  • 편집: 이미지의 특정 요소들만을 대상으로 맞춤형 수정을 수행하며 다른 부분에는 영향을 주지 않습니다.
  • 스타일 참고: 텍스트 프롬프트에 따라 참조 이미지의 독특한 스타일을 유지하면서 새로운 장면을 생성합니다.
  • 인터랙티브 속도: 이미지 생성과 편집 시 최소한의 지연 시간을 제공합니다.
이전에 출시된 API 버전이 가장 높은 정확성과 속도를 제공하는 반면, FLUX.1 Kontext [Dev]는 전적으로 로컬 머신에서 실행되며, 실험을 원하는 개발자, 연구원 및 고급 사용자에게 무결한 유연성을 제공합니다.

버전 정보

  • [FLUX.1 Kontext [pro] - 상용 버전, 빠른 반복 편집에 중점
  • FLUX.1 Kontext [max] - 더 강력한 프롬프트 적합성을 갖춘 실험용 버전
  • FLUX.1 Kontext [dev] - 오픈소스 버전 (본 튜토리얼에서 사용), 120억 파라미터, 주로 연구용
현재 ComfyUI에서는 이 모든 버전을 사용할 수 있으며, Pro 및 Max 버전은 파트너 노드를 통해 호출할 수 있고, Dev 오픈소스 버전은 본 가이드의 지침을 참고하세요.
Make sure your ComfyUI is updated.Workflows in this guide can be found in the Workflow Templates. If you can’t find them in the template, your ComfyUI may be outdated. (Desktop version’s update will delay sometime)If nodes are missing when loading a workflow, possible reasons:
  1. You are not using the latest ComfyUI version (Nightly version)
  2. Some nodes failed to import at startup

모델 다운로드

본 가이드의 워크플로우를 성공적으로 실행하려면 먼저 다음 모델 파일을 다운로드해야 합니다. 해당 워크플로우에서 바로 모델 다운로드 링크를 얻을 수도 있으며, 이미 모델 파일 다운로드 정보가 포함되어 있습니다. 확산 모델
원본 가중치를 사용하고 싶다면 블랙 포레스트 랩스의 관련 리포지토리를 방문해 원본 모델 가중치를 받아 사용할 수 있습니다.
VAE 텍스트 인코더 모델 저장 위치
📂 ComfyUI/
├── 📂 models/
│   ├── 📂 diffusion_models/
│   │   └── flux1-dev-kontext_fp8_scaled.safetensors
│   ├── 📂 vae/
│   │   └── ae.safetensor
│   └── 📂 text_encoders/
│       ├── clip_l.safetensors
│       └── t5xxl_fp16.safetensors or t5xxl_fp8_e4m3fn_scaled.safetensors

Flux.1 Kontext Dev 워크플로우

Comfy Cloud에서 실행하기

이 워크플로우는 Load Image(from output) 노드를 사용해 편집할 이미지를 불러오므로, 여러 차례의 편집을 위해 편집된 이미지에 더욱 편리하게 접근할 수 있습니다.

1. 워크플로우 및 입력 이미지 다운로드

다음 파일들을 다운로드해 ComfyUI로 드래그하여 해당 워크플로우를 불러오세요. ComfyUI Flux.1 Kontext Pro 이미지 파트너 노드 워크플로우 입력 이미지 ComfyUI Flux Kontext 네이티브 워크플로우 입력

2. 워크플로우를 단계별로 완료하세요

워크플로우 단계 안내 이미지의 숫자를 참고해 워크플로우를 완료할 수 있습니다:
  1. Load Diffusion Model 노드에서 flux1-dev-kontext_fp8_scaled.safetensors 모델을 불러오세요.
  2. DualCLIP Load 노드에서 clip_l.safetensorst5xxl_fp16.safetensors 또는 t5xxl_fp8_e4m3fn_scaled.safetensors가 로드되었는지 확인하세요.
  3. Load VAE 노드에서 ae.safetensors 모델이 로드되었는지 확인하세요.
  4. Load Image(from output) 노드에서 제공된 입력 이미지를 불러오세요.
  5. CLIP Text Encode 노드에서 프롬프트를 수정하세요. 영어만 지원됩니다.
  6. Queue 버튼을 클릭하거나 단축키 Ctrl(cmd) + Enter를 사용해 워크플로우를 실행하세요.

Flux Kontext Prompt Techniques

1. Basic Modifications

  • Simple and direct: "Change the car color to red"
  • Maintain style: "Change to daytime while maintaining the same style of the painting"

2. Style Transfer

Principles:
  • Clearly name style: "Transform to Bauhaus art style"
  • Describe characteristics: "Transform to oil painting with visible brushstrokes, thick paint texture"
  • Preserve composition: "Change to Bauhaus style while maintaining the original composition"

3. Character Consistency

Framework:
  • Specific description: "The woman with short black hair" instead of “she”
  • Preserve features: "while maintaining the same facial features, hairstyle, and expression"
  • Step-by-step modifications: Change background first, then actions

4. Text Editing

  • Use quotes: "Replace 'joy' with 'BFL'"
  • Maintain format: "Replace text while maintaining the same font style"

Common Problem Solutions

Character Changes Too Much

❌ Wrong: "Transform the person into a Viking" ✅ Correct: "Change the clothes to be a viking warrior while preserving facial features"

Composition Position Changes

❌ Wrong: "Put him on a beach" ✅ Correct: "Change the background to a beach while keeping the person in the exact same position, scale, and pose"

Style Application Inaccuracy

❌ Wrong: "Make it a sketch" ✅ Correct: "Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture"

Core Principles

  1. Be Specific and Clear - Use precise descriptions, avoid vague terms
  2. Step-by-step Editing - Break complex modifications into multiple simple steps
  3. Explicit Preservation - State what should remain unchanged
  4. Verb Selection - Use “change”, “replace” rather than “transform”

Best Practice Templates

Object Modification: "Change [object] to [new state], keep [content to preserve] unchanged" Style Transfer: "Transform to [specific style], while maintaining [composition/character/other] unchanged" Background Replacement: "Change the background to [new background], keep the subject in the exact same position and pose" Text Editing: "Replace '[original text]' with '[new text]', maintain the same font style"
Remember: The more specific, the better. Kontext excels at understanding detailed instructions and maintaining consistency.