video-colorizer

Colorize black-and-white films and shows, frame by frame, with the open-source DDColor model. Then steady the color so it doesn't flicker.

Source on GitHub Troubleshooting
Directed by Michael Fluharty. Written by Claude. Claude, Anthropic's AI, wrote every script and document, ran the tests and measured the results. Michael set the goal and made the calls. The colorization model itself is DDColor, by its own authors (credits below).

What it does · Getting started · How fast · Common problems · Credits · Need help?

What it does

  1. Colorize each frame. The picture's brightness and detail stay exactly as they were. The model only adds the color.
  2. Smooth the color. Color is averaged over 7 frames while brightness comes from the original, so the color doesn't flicker and the picture stays sharp.
  3. Batch it. Point it at a list of videos. Each result lands beside its original as "name (Colorized).mp4". Originals are never changed, and a stopped batch picks up where it left off.

Getting started

You needNotes
A Mac with Apple silicon, or a PC with an NVIDIA graphics cardIt also runs on any computer's processor alone, but far more slowly.
Python3.14 works for the standard path. The faster Mac-only Core ML path needs Python 3.9 to 3.13 (the Mac's built-in Python works).
FFmpegFor reading and writing video. On a Mac: brew install ffmpeg.
About 1 GB free, plus room for one extra copy of your largest videoThe model's weights are about 0.9 GB and download on first use.

Step-by-step setup, every command, and the options are in the README on GitHub.

How fast

Measured on an Apple M1 Mac mini with an 8-core GPU, on the same 100 frames:

EngineSpeedPicture
PyTorch on the Mac's GPU1.86 frames a secondreference
Core ML on the Mac's GPU (recommended)2.72 frames a second, 1.5× fasterlooks the same
Core ML on the Neural Engine4.58 frames a second, 2.5× fastercolors come out washed out

At the recommended setting, a 25-minute episode takes about 3 hours 50 minutes, and a 90-minute film about 13 hours, on an M1.

Common problems

The full troubleshooting table is in the README.

Check that you have the right to colorize and share a film or show. Many older works are in the public domain, but not all, and some have newer restorations that aren't.

Credits

video-colorizer's scripts are MIT-licensed. Michael Fluharty's copyright claims none of the following work; each belongs to its authors:

Need help?

Open an issue on GitHub, or email michael@fluharty.com with what happened, your computer and its operating system version, and the command you ran.