Not updated: Check official repo for updated native implementation: https://github.com/Saquib764/omini-kontext
Wrapper ComfyUI integration for the Flux Omini Kontext pipeline, enabling seamless character/object insertion into scenes using FLUX.1-Kontext-dev with LoRA adaptation.
Clone the repository into your ComfyUI custom_nodes folder:
cd ComfyUI/custom_nodes
git clone https://github.com/tercumantanumut/ComfyUI-Omini-Kontext.git
Install dependencies:
cd ComfyUI-Omini-Kontext
pip install -r requirements.txt
Download the base model (optional - will auto-download on first use):
black-forest-labs/FLUX.1-Kontext-dev by defaulthuggingface-cli loginDownload pre-trained LoRA weights (optional):
# Example: Character insertion LoRA
wget https://huggingface.co/saquiboye/omini-kontext-character/resolve/main/character_5000.safetensors \
-O ComfyUI/models/loras/omini_kontext_character_5000.safetensors
Loads the Flux Omini Kontext pipeline with optional LoRA weights.
model_path: HuggingFace model ID or local pathlora_path: Optional path to LoRA weightsOMINI_KONTEXT_PIPELINEMain generation node for character/object insertion.
pipeline: Loaded pipeline from loader nodeprompt: Text descriptionreference_image: Character/object to insertreference_delta_x/y/z: Position control (default: 0, 0, 96)input_image: Base image for img2img modenegative_prompt: Negative text prompttrue_cfg_scale: Additional CFG controlScales images to optimal Kontext resolutions.
Load LoRA weights into an existing pipeline.
pipeline: Pipeline to add LoRA tolora_name: LoRA file from models/loras folderstrength: LoRA strength multiplieradapter_name: Name for the adapterFor advanced workflows:
Insert a specific character into various scenes:
reference_delta = [0, 0, 96] # Standard positioning
prompt = "A boy playing in a sunny park"
Place objects with spatial control:
reference_delta = [50, 0, 96] # Shift right
prompt = "A vintage car parked on a city street"
Combine reference style with scene:
reference_delta = [0, 0, 48] # Closer integration
prompt = "In the style of the reference"
Reference Delta Values:
Memory Management:
LoRA Strength:
Run: pip install git+https://github.com/huggingface/diffusers.git
Run: huggingface-cli login and enter your HuggingFace token
This project follows the same license as the original omini-kontext repository.
Python
100.0%
Not updated: Check official repo for updated native implementation: https://github.com/Saquib764/omini-kontext
Wrapper ComfyUI integration for the Flux Omini Kontext pipeline, enabling seamless character/object insertion into scenes using FLUX.1-Kontext-dev with LoRA adaptation.
Clone the repository into your ComfyUI custom_nodes folder:
cd ComfyUI/custom_nodes
git clone https://github.com/tercumantanumut/ComfyUI-Omini-Kontext.git
Install dependencies:
cd ComfyUI-Omini-Kontext
pip install -r requirements.txt
Download the base model (optional - will auto-download on first use):
black-forest-labs/FLUX.1-Kontext-dev by defaulthuggingface-cli loginDownload pre-trained LoRA weights (optional):
# Example: Character insertion LoRA
wget https://huggingface.co/saquiboye/omini-kontext-character/resolve/main/character_5000.safetensors \
-O ComfyUI/models/loras/omini_kontext_character_5000.safetensors
Loads the Flux Omini Kontext pipeline with optional LoRA weights.
model_path: HuggingFace model ID or local pathlora_path: Optional path to LoRA weightsOMINI_KONTEXT_PIPELINEMain generation node for character/object insertion.
pipeline: Loaded pipeline from loader nodeprompt: Text descriptionreference_image: Character/object to insertreference_delta_x/y/z: Position control (default: 0, 0, 96)input_image: Base image for img2img modenegative_prompt: Negative text prompttrue_cfg_scale: Additional CFG controlScales images to optimal Kontext resolutions.
Load LoRA weights into an existing pipeline.
pipeline: Pipeline to add LoRA tolora_name: LoRA file from models/loras folderstrength: LoRA strength multiplieradapter_name: Name for the adapterFor advanced workflows:
Insert a specific character into various scenes:
reference_delta = [0, 0, 96] # Standard positioning
prompt = "A boy playing in a sunny park"
Place objects with spatial control:
reference_delta = [50, 0, 96] # Shift right
prompt = "A vintage car parked on a city street"
Combine reference style with scene:
reference_delta = [0, 0, 48] # Closer integration
prompt = "In the style of the reference"
Reference Delta Values:
Memory Management:
LoRA Strength:
Run: pip install git+https://github.com/huggingface/diffusers.git
Run: huggingface-cli login and enter your HuggingFace token
This project follows the same license as the original omini-kontext repository.
Python
100.0%