Image-Text-to-Image
Diffusers
English
Japanese
lora
flux
panorama
outpainting
equirectangular
comfyui
Instructions to use nomadoor/flux-2-klein-9B-360-erp-outpaint-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nomadoor/flux-2-klein-9B-360-erp-outpaint-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-base-9B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("nomadoor/flux-2-klein-9B-360-erp-outpaint-lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
File size: 991 Bytes
3bae5fb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Training Notes (9B)
## Summary
- Base model: `FLUX.2-klein-base-9B`
- LoRA rank: `16`
- Optimizer: `AdamW8bit`
- Learning rate: `3e-5`
- Training steps (tentative best): `600`
## Dataset
- Source images were collected from open-license panorama/HDRI archives on the web.
- License policy was centered on permissive sources (`CC0` / Public Domain), with part of the set including `CC BY` assets.
- After preprocessing and filtering, training was run on a curated ERP pair set of about `1000` samples.
## Preprocess / Pair Generation
- Target format: ERP (equirectangular) `2:1`
- Source panoramas were normalized to ERP and cleaned (invalid aspect/failed reads removed).
- Control images were generated by:
- building a green ERP canvas,
- sampling `1-3` reference patches,
- projecting patches with a pinhole-based spherical mapping,
- handling seam continuity with wrap-aware placement.
- The model is trained to fill green regions while preserving visible reference context.
|