explaingit

realrebelai/comfyui-rebels-krea2-outpaint

Analysis updated 2026-05-18

17PythonAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

ComfyUI custom nodes that add AI image outpainting support for the Krea 2 Turbo model.

Mindmap

mindmap
  root((Krea2 Outpaint Nodes))
    What it does
      Extends images with AI
      Registers known pixels
      Restores exact source area
    Tech stack
      ComfyUI
      Python
      Krea 2 model
    Use cases
      Extend image edges
      Build outpaint workflows
      Blend generated seams
    Audience
      ComfyUI developers
      AI image workflow builders
    Limitations
      Single direction pass
      Requires Krea 2 support
      Needs separate LoRA download

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Extend an existing image beyond its edges using AI-generated content that matches the original.

USE CASE 2

Build a ComfyUI workflow that outpaints images with the Krea 2 Turbo model.

USE CASE 3

Restore exact original pixels after generation with a smooth blended seam.

USE CASE 4

Experiment with reference-based image conditioning inside a node-based AI pipeline.

What is it built with?

PythonComfyUIPyTorchKrea 2

How does it compare?

realrebelai/comfyui-rebels-krea2-outpaint0petru/sentimoagi-eval-official/forte
Stars171717
LanguagePythonPythonPython
Setup difficultyhardmoderatehard
Complexity4/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a ComfyUI build with Krea 2 support plus manually downloading the matching model, VAE, CLIP, and LoRA files.

The node code is MIT licensed, free to use and modify, the AI model weights follow a separate Krea 2 Community License with restrictions on commercial misuse.

In plain English

This project is a set of custom nodes for ComfyUI, a visual tool for building AI image generation workflows, that adds support for outpainting with a specific AI model called Krea 2 Turbo. Outpainting means extending an existing image beyond its original edges, generating new image content that flows naturally from what was already there. This pack ports a technique originally built for a different AI framework so it can run inside ComfyUI's node-based interface. The core idea is that the original image is placed onto a larger canvas at an exact position, so the AI model knows precisely which pixels are already known and which area needs to be generated. After the new content is generated, the pack restores the exact original pixels in their place and blends the seam so the transition looks smooth. The README is written for people already experienced with ComfyUI and AI image generation pipelines, and it assumes familiarity with concepts like models, LoRAs, which are small add-on files that adjust how a base model behaves, and node-based visual workflows. To use it, someone needs a ComfyUI setup that supports the Krea 2 model, along with the matching diffusion model, image decoder, and text encoder files, plus a specific LoRA file that must be downloaded separately and placed in the right folder. The pack adds four nodes that handle setting up the canvas and placement, encoding the prompt with a reference to the known image area, patching the AI model to use this specific outpainting technique, and compositing the final result. The README also documents recommended generation settings and explains which directions an image can currently be extended in, noting that this version only supports extending in one direction at a time rather than filling in a fully enclosed empty area. The node code in this pack is released under the MIT license, while parts of the underlying technique are adapted from other projects under MIT and Apache-2.0 licenses. The AI model weights themselves follow a separate Krea 2 Community License.

Copy-paste prompts

Prompt 1
Walk me through installing this ComfyUI outpainting node pack and downloading the required LoRA file.
Prompt 2
Explain how to wire the four Rebels Krea2 Outpaint nodes together in a ComfyUI workflow.
Prompt 3
Help me choose which extend direction option to use for extending my image to the right.
Prompt 4
Explain the single pass limitation mentioned in this README and what it means for my image.

Frequently asked questions

What is comfyui-rebels-krea2-outpaint?

ComfyUI custom nodes that add AI image outpainting support for the Krea 2 Turbo model.

What language is comfyui-rebels-krea2-outpaint written in?

Mainly Python. The stack also includes Python, ComfyUI, PyTorch.

What license does comfyui-rebels-krea2-outpaint use?

The node code is MIT licensed, free to use and modify, the AI model weights follow a separate Krea 2 Community License with restrictions on commercial misuse.

How hard is comfyui-rebels-krea2-outpaint to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is comfyui-rebels-krea2-outpaint for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.