Flux.2 Klein 9B: Image Extend

Use the FLUX.2 Klein 9B model to intelligently extend and expand image content. Input an image to generate seamless outpainting and extended compositions.

Input

The picture to extend; the new area is painted to match it.

Pixels to add at the bottom.

Pixels to add on the left (after scaling the image to about 1.5 MP).

Pixels to add on the right.

Pixels to add at the top.

Advanced settings

Soft blend width at the seam, in pixels.

Default: 40

The edit instruction. The new area is marked green; the default asks the model to fill it in.

Leave empty for a new result each run. Enter a number to repeat one.

Flux.2 Klein is distilled for 4 steps.

Default: 4

Output
Output
Example

例を試す

このワークフローについて

The 'Flux.2 Klein 9B: Image Extend' workflow is designed to expand and enhance images using the FLUX.2 Klein 9B model. This workflow excels at outpainting, a technique that extends the boundaries of an image while maintaining its original style and content. It leverages a combination of advanced nodes such as SamplerCustomAdvanced, CLIPLoader, and RandomNoise to generate seamless extensions of the input image.

By using the ComfyUI-Color-Matcher and comfyui-kjnodes, the workflow ensures color consistency and style coherence, making it particularly useful for artists and designers looking to create expansive compositions from limited source material.

Technically, the workflow begins by loading an image and encoding it into a latent space using the VAEEncode node. The image is then padded using the ImagePadForOutpaint node to create space for the new content. The Flux2Scheduler and UNETLoader nodes work together to generate new image data that blends naturally with the existing content.

The process is guided by the CFGGuider and KSamplerSelect nodes, which help refine the image generation based on the input prompts and conditions. Once the outpainting is complete, the VAEDecode node converts the latent representation back into a visible image format, ready for saving or further editing.

よくある質問