Skip to content

Repository files navigation

Yuhang He1, Kai Zhang1,†, Xiaoming Li1, Du Chen2, Jian Yang1

1Nanjing University, China    2VIVO BlueImage Lab, China
Corresponding author

ECCV 2026

arXiv Project Page


Overview

ColorFM is an optimization-to-learning framework for accurate and semantically consistent color transfer. It connects instance-specific optimization with efficient feed-forward inference through two complementary variants: ColorFM-O and ColorFM-L.

Online Demos

Method Type Demo
ColorFM-O Optimization-based Try online
ColorFM-L Learning-based Try online

Testing

Create an environment and install the dependencies:

conda create -n ColorFM python=3.10 -y
conda activate ColorFM
pip install torch torchvision
pip install -r requirements.txt

# Optional: accelerate ColorFM-L on supported CUDA environments 
# https://github.com/facebookresearch/xformers

Run local WebUI from the repository root:

# Optimization-based ColorFM-O
python app_colorfm_o.py

# Learning-based ColorFM-L
python app_colorfm_l.py

Please download ckpt and place under checkpoints folder. ColorFM-O performs instance-specific optimization and does not require a pretrained checkpoint.

Method

ColorFM formulates color transfer as transporting pixel distributions along velocity fields via Flow Matching. ColorFM-O optimizes an instance-specific velocity field with semantic guidance, while ColorFM-L learns from the generated pairs to provide efficient feed-forward inference.

Overview of the ColorFM framework

Overview of the ColorFM-O and ColorFM-L frameworks.

Quantitative Results

The following table compares ColorFM with existing color transfer methods in terms of similarity, Lipschitz constant, and inference time. All results are evaluated at an image resolution of 512 x 512.

Quantitative comparison with existing color transfer methods

Image Color Transfer

Image color transfer example 1 Image color transfer example 2 Image color transfer example 3

Video Color Transfer

Video color transfer example 1 Video color transfer example 2

Acknowledgements

This project builds upon the open-source implementations of DINOv2 by Meta AI.

Citation

If you find this work useful, please cite:

@misc{he2026ColorFM,
      title={ColorFM: An Optimization-to-Learning Framework for Color Transfer via Flow Matching}, 
      author={Yuhang He and Kai Zhang and Xiaoming Li and Du Chen and Jian Yang},
      year={2026},
      eprint={2607.07119},
      url={https://arxiv.org/abs/2607.07119}, 
}

License

This project is released under the Apache License 2.0.

About

ECCV 2026

Resources

Stars

18 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages