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

ColorFM image color transfer result ColorFM video color transfer result

ColorFM image color transfer (left) and video color transfer (right).

🚀 Explore more application results: Image Color Transfer  |  Video Color Transfer


Table of Contents

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

Image Color Transfer

Content, style, and color transfer result for example 4

Content, style, and color transfer result for example 6

Content, style, and color transfer result for example 5

Content, style, and color transfer result for example 7

Content, style, and color transfer result for example 1

Content, style, and color transfer result for example 8

Content, style, and color transfer result for example 3

Content, style, and color transfer result for example 2

Video Color Transfer

Video color transfer example 1 Video color transfer example 2

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

Installation

Create an environment and install the dependencies from the repository root:

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

Install the PyTorch build that matches your CUDA version when GPU acceleration is required. xFormers can optionally accelerate ColorFM-L on supported CUDA environments.

Download the pretrained ColorFM-L checkpoint from Hugging Face and place it under the repository-level checkpoints folder. ColorFM-O does not require a pretrained checkpoint.

Testing/Training

Guide Description
Testing Run the ColorFM-O and ColorFM-L image or video WebUIs.
Training Generate ColorFM-O training pairs, train ColorFM-L, and run evaluation.

Acknowledgements

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

Citation

If you find this work useful, please cite:

@inproceedings{he2026colorfm,
    title={ColorFM: An Optimization-to-Learning Framework for Color Transfer via Flow Matching},
    author={He, Yuhang and Zhang, Kai and Li, Xiaoming and Chen, Du and Yang, Jian},
    booktitle={European Conference on Computer Vision},
    year={2026}
}

License

This project is released under the Apache License 2.0.

About

ECCV 2026 (The testing codes are released!)

Resources

Stars

24 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages