floyo logo
Powered by
ThinkDiffusion
floyo logo
Powered by
ThinkDiffusion

Flux.2 Klein Image Expansion / Outpaint

60

Flux2 Klein – Precision Inpaint, Outpaint & 4K Upscale Workflow

This workflow is a high-performance Flux2 Klein production pipeline built for controlled image generation, structural editing, outpainting expansion, and professional 4K upscaling.

Designed for both speed and fidelity, it combines reference latent conditioning, differential diffusion, mask-based inpainting, and SeedVR2 upscale integration — making it a complete end-to-end image enhancement suite.


What This Workflow Does

🎯 Structured Image Editing

  • Inpaint with mask control

  • Expand scenes using overscan outpainting

  • Preserve structure with reference latent injection

  • Differential diffusion for seamless blending

🧠 Controlled Prompt Conditioning

  • Positive & negative prompt routing

  • CFG-guided generation

  • Zero-out conditioning refinement

  • Fine-tuned noise control

⚡ Fast, Lightweight Generation

  • Flux2 Klein backbone (4B / 9B compatible)

  • Low-step optimized scheduler

  • Efficient VRAM usage

  • High detail even before upscale

🖼 Resolution-Aware Scaling

  • Longest-side resolution logic

  • Automatic aspect handling

  • Clean latent dimension management

🚀 Integrated 4K Upscaling (SeedVR2)

  • DiT-based upscale engine

  • Tiled VAE encoding/decoding

  • Up to 4096px output

  • Batch support

  • Optional color correction


Workflow Structure

1️⃣ Upload & Prepare

  • Load base image

  • Optional mask drawing

  • Overscan padding for expansion

  • Feather blending for seamless edges

2️⃣ Flux2 Klein Core Engine

  • CLIP text encoding

  • UNET + VAE loading

  • Differential diffusion strength control

  • Inpaint conditioning

  • Custom sampler (Euler)

  • Flux2 scheduler

  • Latent noise injection

  • Reference latent guidance

3️⃣ Generate & Compare

  • VAE decode

  • Preview output

  • Before/after comparison

  • Save generation

4️⃣ Optional 4K Production Upscale

  • SeedVR2 DiT load

  • Tiled VAE upscale

  • 2048–4096 resolution output

  • Final export


Key Controls

Positive Prompt
Describe scene, lighting, textures, realism, cinematic mood, environment.

Negative Prompt
Remove unwanted elements (blur, artifacts, distorted anatomy, low quality).

Denoise Strength

  • Low → minor refinements

  • Medium → balanced edits

  • High → major structural changes

Steps
Optimized low-step configuration for speed with strong detail retention.

Resolution
Longest-side controlled scaling ensures consistent framing.


Why This Workflow Is Powerful

  • Clean structural control

  • Seamless outpainting

  • Mask-driven precision editing

  • High-fidelity output before upscale

  • 4K ready production pipeline

  • Modular & expandable architecture

This is not just a generation workflow — it’s a complete Flux2 Klein creative system built for professional results.

Read more

N
Generates in about -- secs

Nodes & Models

GetNode
KSamplerSelect
MarkdownNote
RandomNoise
PreviewImage
DrawMaskOnImage
UNETLoader
flux-2-klein-9b.safetensors
CLIPLoader
qwen_3_8b_fp8mixed.safetensors
VAELoader
flux2-vae.safetensors
WorkflowGraphics
LoadImage
ImagePadForOutpaint
SaveImage
Image Comparer (rgthree)
GetImageSize
SetNode
DifferentialDiffusion
CLIPTextEncode
VAEEncode
EmptyFlux2LatentImage
Flux2Scheduler
ConditioningZeroOut
ReferenceLatent
InpaintModelConditioning
CFGGuider
SamplerCustomAdvanced
VAEDecode
Int
SeedVR2LoadDiTModel
SeedVR2LoadVAEModel
ema_vae_fp16.safetensors
SeedVR2VideoUpscaler
CR Prompt Text
LayerUtility: ImageScaleByAspectRatio V2
LayerUtility: ImageScaleByAspectRatio V2

Flux2 Klein – Precision Inpaint, Outpaint & 4K Upscale Workflow

This workflow is a high-performance Flux2 Klein production pipeline built for controlled image generation, structural editing, outpainting expansion, and professional 4K upscaling.

Designed for both speed and fidelity, it combines reference latent conditioning, differential diffusion, mask-based inpainting, and SeedVR2 upscale integration — making it a complete end-to-end image enhancement suite.


What This Workflow Does

🎯 Structured Image Editing

  • Inpaint with mask control

  • Expand scenes using overscan outpainting

  • Preserve structure with reference latent injection

  • Differential diffusion for seamless blending

🧠 Controlled Prompt Conditioning

  • Positive & negative prompt routing

  • CFG-guided generation

  • Zero-out conditioning refinement

  • Fine-tuned noise control

⚡ Fast, Lightweight Generation

  • Flux2 Klein backbone (4B / 9B compatible)

  • Low-step optimized scheduler

  • Efficient VRAM usage

  • High detail even before upscale

🖼 Resolution-Aware Scaling

  • Longest-side resolution logic

  • Automatic aspect handling

  • Clean latent dimension management

🚀 Integrated 4K Upscaling (SeedVR2)

  • DiT-based upscale engine

  • Tiled VAE encoding/decoding

  • Up to 4096px output

  • Batch support

  • Optional color correction


Workflow Structure

1️⃣ Upload & Prepare

  • Load base image

  • Optional mask drawing

  • Overscan padding for expansion

  • Feather blending for seamless edges

2️⃣ Flux2 Klein Core Engine

  • CLIP text encoding

  • UNET + VAE loading

  • Differential diffusion strength control

  • Inpaint conditioning

  • Custom sampler (Euler)

  • Flux2 scheduler

  • Latent noise injection

  • Reference latent guidance

3️⃣ Generate & Compare

  • VAE decode

  • Preview output

  • Before/after comparison

  • Save generation

4️⃣ Optional 4K Production Upscale

  • SeedVR2 DiT load

  • Tiled VAE upscale

  • 2048–4096 resolution output

  • Final export


Key Controls

Positive Prompt
Describe scene, lighting, textures, realism, cinematic mood, environment.

Negative Prompt
Remove unwanted elements (blur, artifacts, distorted anatomy, low quality).

Denoise Strength

  • Low → minor refinements

  • Medium → balanced edits

  • High → major structural changes

Steps
Optimized low-step configuration for speed with strong detail retention.

Resolution
Longest-side controlled scaling ensures consistent framing.


Why This Workflow Is Powerful

  • Clean structural control

  • Seamless outpainting

  • Mask-driven precision editing

  • High-fidelity output before upscale

  • 4K ready production pipeline

  • Modular & expandable architecture

This is not just a generation workflow — it’s a complete Flux2 Klein creative system built for professional results.

Read more

N
FloYo: Flux.2 Klein Image Expansion / Outpaint