Prompt
Fill the green spaces according to the image
Prompt
Fill the green spaces according to the image
Prompt
Fill the green spaces according to the image
Prompt
Fill the green spaces according to the image

๐Ÿ–ผ๏ธ Flux Green Screen Outpainting LoRA

Extend images by filling green border areas with AI-generated content

Try on fal.ai License

Outpaint LoRA Banner

๐ŸŽฏ What does this model do?

This LoRA fills green border areas around an image with contextually appropriate AI-generated content. Simply add a green border to any image, and the model will extend the scene naturally.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ โ”‚  Green areas
โ”‚ โ–‘โ–‘โ–‘โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ โ”‚  get filled
โ”‚ โ–‘โ–‘โ–‘โ”‚                       โ”‚โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ โ”‚  with matching
โ”‚ โ–‘โ–‘โ–‘โ”‚    Original Image     โ”‚โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ โ”‚  content
โ”‚ โ–‘โ–‘โ–‘โ”‚                       โ”‚โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ โ”‚
โ”‚ โ–‘โ–‘โ–‘โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ โ”‚
โ”‚ โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Perfect for extending photos, creating wider compositions, and generating seamless backgrounds.


๐Ÿ–ผ๏ธ Examples

Input (with green border) Output (extended image)

๐Ÿš€ Quick Start

Prompt

Fill the green spaces according to the image

Green Border Requirements

  • Use pure green: RGB(0, 255, 0) or #00FF00
  • Border can be any thickness (5%-25% of image dimension works well)
  • Each side can have different border widths

๐Ÿ’ป Usage

Try it Live on fal.ai

โ–ถ๏ธ Open Playground

With fal.ai SDK

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/flux-2/klein/4b/base/edit/lora",
    arguments={
        "prompt": "Fill the green spaces according to the image",
        "model_name": None,
        "loras": [{
            "path": "https://huggingface.co/fal/flux-2-klein-4B-outpaint-lora/resolve/main/flux-outpaint-lora.safetensors",
            "scale": 1.1
        }],
        "embeddings": [],
        "image_urls": ["https://your-image-with-green-border.png"]
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

๐Ÿ“ฆ Model Files

File Use Case
flux-outpaint-lora.safetensors fal.ai
LyNiaZ53Tudg0J6sT8Xbx_pytorch_lora_weights_comfy_converted.safetensors ComfyUI

๐ŸŽ“ Training Details

Click to expand

Dataset

  • Size: 1000 image pairs
  • Content: Diverse subjects including:
    • Landscapes: mountains, beaches, forests, deserts, cities
    • People: portraits, groups, activities
    • Animals: pets, wildlife, birds
    • Food: dishes, ingredients, table settings
    • Architecture: buildings, interiors, landmarks
    • Art styles: paintings, illustrations, abstract
    • Objects: vehicles, electronics, furniture
    • Nature: weather, space, underwater
  • Border variation: Random green borders (5%-25% of each side)
  • Aspect ratios: Various (1:1, 16:9, 9:16, 4:3, 3:4, etc.)

Training

  • Base Model: FLUX.2-Klein 4B
  • Platform: fal.ai
  • Method: LoRA training

๐ŸŽฎ Use Cases

  • Photo Extension: Expand cropped photos to wider compositions
  • Background Generation: Create seamless backgrounds for subjects
  • Aspect Ratio Conversion: Convert portrait to landscape or vice versa
  • Creative Composition: Add environmental context to isolated subjects

โš ๏ธ Limitations

  • Works best with pure green (#00FF00) borders
  • Complex scenes may require multiple passes
  • Very large border areas may produce less coherent results

๐Ÿ“„ License

Apache 2.0


Created by @ilkerzgi โ€ข Trained with fal.ai

Try on fal.ai

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
Examples

Model tree for fal/flux-2-klein-4B-outpaint-lora

Adapter
(7)
this model

Space using fal/flux-2-klein-4B-outpaint-lora 1