File size: 3,327 Bytes
e1d360d c319455 49b47e9 c319455 e1d360d c319455 e1d360d c319455 e1d360d 93bd91f e1d360d 49b47e9 c319455 49b47e9 c319455 e1d360d c319455 e1d360d | 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | # FLUX.2 & Klein 9B RefMods Documentation
Welcome to the official documentation and reference guides for **FLUX.2 & Klein 9B RefMods (Reference Latent Adapters)**.
- **Interactive Model Browser:** [https://huggingface.co/spaces/malcolmrey/browser](https://huggingface.co/spaces/malcolmrey/browser) (Visual search & previews across 1,400+ models)
- **Model Weights Hub:** [https://huggingface.co/malcolmrey/klein9](https://huggingface.co/malcolmrey/klein9)
- **ComfyUI Custom Node:** [https://github.com/malcolmamal/ComfyUI-Flux2Klein9Mod](https://github.com/malcolmamal/ComfyUI-Flux2Klein9Mod)
- **Ready-to-Use Workflows:** [`../workflows/`](../workflows/) (`workflow_klein9_refmod.json` & `workflow_klein9_refmod_lora.json`)
---
## 📚 Guides & Technical Documentation
1. **[FLUX.2 & Klein 9B RefMods: Architecture, Extraction, and Usage Guide](FLUX2_KLEIN9_REFMODS_GUIDE.md)**
The primary comprehensive architectural handbook covering:
- Theoretical underpinnings of 2D RoPE reference latent injection vs legacy pixel encoding
- Where to find and download 1,400+ pre-extracted RefMods on Hugging Face ([malcolmrey/klein9](https://huggingface.co/malcolmrey/klein9) & [malcolmrey/browser](https://huggingface.co/spaces/malcolmrey/browser))
- Installing and configuring the `ComfyUI-Flux2Klein9Mod` custom node
- Detailed breakdown of both official ComfyUI JSON workflows (`workflow_klein9_refmod.json` & `workflow_klein9_refmod_lora.json`)
- Step-by-step RefMod creation with dataset curation best practices and CLI extraction
2. **[Visual Benchmarks & 5-Column Comparison Studies](VISUAL_BENCHMARKS_AND_COMPARISONS.md)**
Detailed empirical evaluations across 6 celebrity benchmark datasets:
- Embedded 5-column comparison grids for all benchmark subjects (Brett Cooper, Alison Brie, Olivia Wilde, Jodie Foster, Rebecca Ferguson, Sydney Sweeney)
- Direct download links to individual model weights (`.safetensors`) on Hugging Face
- High-resolution single run artifact links ([`examples/`](examples/)) for Pure LoRA, 8-Raw Reference, Pure RefMod, and Hybrid stacks
- Computational throughput, token load, and VRAM scaling breakdowns
---
## 🎛️ Official ComfyUI Workflows (`workflows/`)
Drag-and-drop workflow files ready for immediate use in ComfyUI:
- **[`workflow_klein9_refmod.json`](../workflows/workflow_klein9_refmod.json):** Pure RefMod Text-to-Image generation for FLUX.2 / Klein 9B.
- **[`workflow_klein9_refmod_lora.json`](../workflows/workflow_klein9_refmod_lora.json):** Hybrid RefMod + LoRA Power Stack for maximum facial likeness and micro-texture fidelity.
---
## 🛠️ Tools & Scripts
- **Generator & Batch Extractor Script:** [`../generate_flux2_klein9_refmod.py`](../generate_flux2_klein9_refmod.py)
CLI generator tool supporting single-dataset extraction, custom token budgets, dry-run inspection, and high-speed mass batch extraction.
- **ComfyUI Custom Node:** [`../comfyui/custom_nodes/ComfyUI-Flux2Klein9Mod/`](../comfyui/custom_nodes/ComfyUI-Flux2Klein9Mod/)
GitHub Repository: [github.com/malcolmamal/ComfyUI-Flux2Klein9Mod](https://github.com/malcolmamal/ComfyUI-Flux2Klein9Mod)
- **Hugging Face Model Hub:** [huggingface.co/malcolmrey/klein9](https://huggingface.co/malcolmrey/klein9)
1,400+ open-weight RefMods and Prodigy LoRAs.
|