Run this model with HF Jobs
Run Bruece/FLUX.1-dev-CMO 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. 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 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.
Instructions to use Bruece/FLUX.1-dev-CMO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Bruece/FLUX.1-dev-CMO 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.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Bruece/FLUX.1-dev-CMO") 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
- DiffusionBee
FLUX.1-dev-CMO
π€ 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.
π 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"
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_lora.png")
πΌοΈ Qualitative Results
π οΈ Training Details
- Base Model: FLUX.1-dev
- Algorithm: Correlation-Weighted Multi-Reward Optimization (CMO)
- 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
- 82
Model tree for Bruece/FLUX.1-dev-CMO
Base model
black-forest-labs/FLUX.1-dev