4.51 GB
3,604 files
Updated 16 days ago
Name
Size
comfyui
docs
workflows
README.md4.27 kB
xet
generate_flux2_klein9_refmod.py23.3 kB
xet
README.md

FLUX.2 & Klein 9B RefMods (Reference Latent Adapters)

Open research, architecture documentation, and implementation repository for FLUX.2 & Klein 9B RefMods.


📁 Repository Structure

klein9/
├── generate_flux2_klein9_refmod.py         <── CLI Generator & Mass Batch Extractor Tool
├── workflows/                              <── Mirrored Production Workflows
│   ├── workflow_klein9_refmod.json         <── Pure RefMod Text-to-Image Workflow
│   └── workflow_klein9_refmod_lora.json    <── Hybrid RefMod + LoRA Power Stack Workflow
├── docs/
│   ├── README.md                           <── Documentation Index
│   ├── FLUX2_KLEIN9_REFMODS_GUIDE.md       <── Complete Architecture, Extraction & Usage Guide
│   ├── VISUAL_BENCHMARKS_AND_COMPARISONS.md <── 5-Column Visual Benchmarks & Single Run Links
│   └── examples/                           <── Benchmark Grids & Single Run Artifacts (PNGs)
└── comfyui/
    └── custom_nodes/
        └── ComfyUI-Flux2Klein9Mod/         <── Full ComfyUI Custom Node Package

🚀 Quickstart

1. Install ComfyUI Custom Node

cd ComfyUI/custom_nodes
git clone https://github.com/malcolmamal/ComfyUI-Flux2Klein9Mod.git

2. Discover & Download RefMods

Search and find any character, celebrity, or concept .safetensors in the Malcolmrey Browser Space or directly on the Hugging Face Hub, then place the file into:

ComfyUI/models/refmods-klein9/

3. Load Ready-to-Use Workflows

Load either of the official JSON workflows located in workflows/:

4. Extract Custom RefMods from Datasets

Use the included generator script generate_flux2_klein9_refmod.py:

# Extract single dataset by name or path
python generate_flux2_klein9_refmod.py C:/Development/ai-toolkit/datasets/your_character --token-budget 1024

# Preview media discovered without encoding
python generate_flux2_klein9_refmod.py your_character --dry-run

# Mass batch extract all datasets in directory
python generate_flux2_klein9_refmod.py --all --datasets-root C:/Development/ai-toolkit/datasets

📖 Complete Documentation & Visual Studies

Total size
4.51 GB
Files
3,604
Last updated
Oct 29
Pre-warmed CDN
US EU US EU

Contributors