GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cszn/ColorFM: ECCV 2026 (The testing codes are released!)

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
checkpoints
checkpoints
 
 
configs
configs
 
 
datasets
datasets
 
 
metrics
metrics
 
 
models
models
 
 
solvers
solvers
 
 
static
static
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TRAINING.md
TRAINING.md
 
 
main_eval_colorfm_l.py
main_eval_colorfm_l.py
 
 
main_train_stage1.py
main_train_stage1.py
 
 
main_train_stage2.py
main_train_stage2.py
 
 
rename_images.py
rename_images.py
 
 
requirements.txt
requirements.txt
 
 
run_train_stage1_parallel.sh
run_train_stage1_parallel.sh
 
 

Repository files navigation

ColorFM: An Optimization-to-Learning Framework for Color Transfer via Flow Matching

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

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

ECCV 2026

arXiv Supplementary Material Project Page Hugging Face Model Hugging Face Dataset

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
  • ColorFM: An Optimization-to-Learning Framework for Color Transfer via Flow Matching
    • Overview
    • Online Demos
    • Image Color Transfer
    • Video Color Transfer
    • Method
    • Quantitative Results
    • Installation
    • Testing/Training
    • Acknowledgements
    • Citation
    • License

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 8

Content, style, and color transfer result for example 1

Content, style, and color transfer result for example 2

Content, style, and color transfer result for example 3

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

[2026-10-12] Pre-generated Stage 1 training pairs are available on Hugging Face. They can be downloaded and used directly to train ColorFM-L in Stage 2; see the Training guide for download and configuration instructions !!!

Guide Description
Testing Run the ColorFM-O and ColorFM-L image or video WebUIs.
Training Use the pre-generated Stage 1 dataset or generate pairs yourself, train ColorFM-L, and run evaluation.

Acknowledgements

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

The original images in dataset ColorFM were sourced from Unsplash and are used solely for non-commercial academic research. Copyright remains with the respective photographers; the images are not relicensed under this project's license. For rights-related inquiries or removal requests, please contact us.

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

Readme
Apache-2.0 license
Activity

Stars

44 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.