Run this model with HF Jobs

Run Bruece/FLUX.1-dev-CMO-HPSv2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Bruece/FLUX.1-dev-CMO-HPSv2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Bruece/FLUX.1-dev-CMO-HPSv2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Diffusers library
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.1-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("Bruece/FLUX.1-dev-CMO-HPSv2")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

FLUX.1-dev-CMO-HPSv2

CMO Logo

πŸ€— Hugging Face  |  🌐 Project Page  |  πŸ™ GitHub  |  πŸ“„ arXiv

🌟 Official LoRA Adapter for Correlation-Weighted Multi-Reward Optimization for Compositional Generation, accepted to ECCV 2026

This repository contains the official LoRA adapter for black-forest-labs/FLUX.1-dev fine-tuned using CMO (Correlation-Weighted Multi-Reward Optimization), our ECCV 2026 work on improving compositional generation capabilities. This variant was trained with the CMO reward together with the HPSv2 reward for human preference alignment.

πŸš€ Usage

Below is the code to load and merge the LoRA adapter with the base FLUX.1-dev model.

import torch
from diffusers import FluxPipeline
from peft import PeftModel

model_id = "black-forest-labs/FLUX.1-dev"
lora_ckpt_path = "Bruece/FLUX.1-dev-CMO-HPSv2"
device = "cuda"

pipe = FluxPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
pipe.transformer = PeftModel.from_pretrained(pipe.transformer, lora_ckpt_path)
pipe.transformer = pipe.transformer.merge_and_unload()
pipe = pipe.to(device)

prompt = "a photo of a black kite and a green bear"
image = pipe(
    prompt,
    height=512,
    width=512,
    num_inference_steps=40,
    guidance_scale=4.5
).images[0]

image.save("flux_cmo_hpsv2_lora.png")

πŸ–ΌοΈ Qualitative Results

ConceptMix (Link)
ConceptMix Results
GenEval 2 (Link)
GenEval 2 Results
T2I-CompBench (Link)
T2I-CompBench Results

πŸ› οΈ Training Details

  • Base Model: FLUX.1-dev
  • Algorithm: Correlation-Weighted Multi-Reward Optimization (CMO)
  • Additional Reward: HPSv2 human preference reward, trained jointly with the CMO reward
  • Precision: bfloat16

πŸ“œ Citation

If you find this ECCV 2026 model useful for your research, please cite:

@inproceedings{wi2026correlation,
  title={Correlation-weighted multi-reward optimization for compositional generation},
  author={Wi, Jungmyung and Kim, Hyunsoo and Kim, Donghyun},
  booktitle={European Conference on Computer Vision},
  pages={93--111},
  year={2026},
  organization={Springer}
}
Downloads last month
29
Inference Providers NEW

Model tree for Bruece/FLUX.1-dev-CMO-HPSv2

Adapter
(42,677)
this model

Collection including Bruece/FLUX.1-dev-CMO-HPSv2

Papers for Bruece/FLUX.1-dev-CMO-HPSv2