A ComfyUI custom node package for the OmniGen2 multimodal generation model.
Notice: This project is no longer maintained.
ComfyUI-OmniGen2 is archived because official support for OmniGen2 has been added to ComfyUI (see commit ec70ed6aea05c3a380ad0e15d8221c7bf61be7bb). Please refer to the official implementation and tutorial for the latest usage:
We recommend using the official nodes and documentation for better compatibility and future support.
OmniGen2 is an open-source, state-of-the-art multimodal generative model supporting text-to-image, image editing, in-context generation, and visual understanding. It features decoupled text/image decoding, robust visual reasoning, and efficient inference with advanced offloading and quantization options. OmniGen2 achieves competitive results on both understanding and generation tasks, and is designed for research and creative applications.
OmniGen2 models are stored in models/omnigen2/. The ComfyUI-OmniGen2 node will auto-download from HuggingFace if not found locally, or you can download manually:
# Option 1: Use git lfs (recommended for HuggingFace)
cd models/omnigen2
git lfs install
git clone https://huggingface.co/OmniGen2/OmniGen2
# Option 2: Use huggingface-cli
pip install huggingface_hub
huggingface-cli download OmniGen2/OmniGen2 --local-dir OmniGen2 --local-dir-use-symlinks False
# Option 3: Use ModelScope (for users in China)
pip install modelscope
cd models/omnigen2
modelscope download --model OmniGen2/OmniGen2 --local_dir OmniGen2
Note: If you are in a restricted network environment, manual download is recommended. Place the model folder under
models/omnigen2/with the folder name matching the last part of the repo_id (e.g.,OmniGen2).
Install required Python packages:
pip install -r requirements.txt
For optimal performance, you may also install:
pip install flash-attn==2.7.4.post1 --no-build-isolation
Restart ComfyUI to load the new nodes.


OmniGen2Sampler nodeimage_guidance_scale for more/less faithfulness to the input image(s)num_images_per_prompt > 1 for multiple outputs; results are collaged automaticallyimage_guidance_scale for more faithful edits; decrease for more creative resultsnegative_prompt field to avoid unwanted artifactsThis project is licensed under the Apache 2.0 License. Please refer to the official license terms for the use of the OmniGen2 model.
models/omnigen2/ with the correct folder nameContributions are welcome! Please submit issues or pull requests for bug fixes, features, or documentation improvements.
6 commits
Python
100.0%
A ComfyUI custom node package for the OmniGen2 multimodal generation model.
Notice: This project is no longer maintained.
ComfyUI-OmniGen2 is archived because official support for OmniGen2 has been added to ComfyUI (see commit ec70ed6aea05c3a380ad0e15d8221c7bf61be7bb). Please refer to the official implementation and tutorial for the latest usage:
We recommend using the official nodes and documentation for better compatibility and future support.
OmniGen2 is an open-source, state-of-the-art multimodal generative model supporting text-to-image, image editing, in-context generation, and visual understanding. It features decoupled text/image decoding, robust visual reasoning, and efficient inference with advanced offloading and quantization options. OmniGen2 achieves competitive results on both understanding and generation tasks, and is designed for research and creative applications.
OmniGen2 models are stored in models/omnigen2/. The ComfyUI-OmniGen2 node will auto-download from HuggingFace if not found locally, or you can download manually:
# Option 1: Use git lfs (recommended for HuggingFace)
cd models/omnigen2
git lfs install
git clone https://huggingface.co/OmniGen2/OmniGen2
# Option 2: Use huggingface-cli
pip install huggingface_hub
huggingface-cli download OmniGen2/OmniGen2 --local-dir OmniGen2 --local-dir-use-symlinks False
# Option 3: Use ModelScope (for users in China)
pip install modelscope
cd models/omnigen2
modelscope download --model OmniGen2/OmniGen2 --local_dir OmniGen2
Note: If you are in a restricted network environment, manual download is recommended. Place the model folder under
models/omnigen2/with the folder name matching the last part of the repo_id (e.g.,OmniGen2).
Install required Python packages:
pip install -r requirements.txt
For optimal performance, you may also install:
pip install flash-attn==2.7.4.post1 --no-build-isolation
Restart ComfyUI to load the new nodes.


OmniGen2Sampler nodeimage_guidance_scale for more/less faithfulness to the input image(s)num_images_per_prompt > 1 for multiple outputs; results are collaged automaticallyimage_guidance_scale for more faithful edits; decrease for more creative resultsnegative_prompt field to avoid unwanted artifactsThis project is licensed under the Apache 2.0 License. Please refer to the official license terms for the use of the OmniGen2 model.
models/omnigen2/ with the correct folder nameContributions are welcome! Please submit issues or pull requests for bug fixes, features, or documentation improvements.
6 commits
Python
100.0%