explaingit

jantic/deoldify

18,470PythonAudience · vibe coderComplexity · 3/5StaleLicenseSetup · moderate

TLDR

Deep learning tool that automatically adds color to black-and-white photos and videos. Uses a hybrid training method to avoid flickering and produce natural-looking results.

Mindmap

mindmap
  root((repo))
    What it does
      Colorize photos
      Colorize videos
      Three model types
    How it works
      NoGAN training
      Hybrid approach
      Consistency learning
    Use cases
      Restore old photos
      Colorize archival video
      Historical preservation
    Access methods
      Colab notebooks
      Desktop plugin
      Hosted services
    Status
      Archived project
      No longer maintained

Things people build with this

USE CASE 1

Restore family photos from the 1950s, 1980s by automatically adding realistic color.

USE CASE 2

Convert black-and-white archival video footage into color for documentaries or historical projects.

USE CASE 3

Colorize old newspaper photographs or historical images for digital archives and publications.

Tech stack

PythonPyTorchDeep LearningGANJupyter

Getting it running

Difficulty · moderate Time to first run · 30min

Requires PyTorch installation and pre-trained model weights download; GPU recommended but not strictly required.

Use freely for any purpose including commercial, as long as you keep the copyright notice.

In plain English

DeOldify is an archived deep learning project for automatically adding color to black-and-white photographs and video footage. The repository has been marked as archived by its creator as of October 2024, meaning it is no longer actively maintained. The project's technical approach centers on a training method called NoGAN. Traditional GAN (Generative Adversarial Network) training, where two neural networks compete, one generating images and one evaluating them, produces good colorization but causes flickering artifacts in video. NoGAN runs only a short phase of GAN training (30 to 60 minutes using a small fraction of training data) after first training on the standard task of predicting colors from grayscale. This combination produces stable, consistent colorization without the flickering. Three separate models were developed: an "artistic" model that produces more vivid colors, a "stable" model with fewer glitches, and a video model. Color consistency across video frames is achieved partly through rendering at higher resolutions and through the inherent consistency the models learned during training rather than any explicit temporal modeling. The easiest way to try it is through hosted services linked in the readme. Colab notebooks (cloud-based Jupyter environments) are provided for running colorization in a browser without any local setup. A Desktop application plugin and an in-browser implementation using a different technology are also linked.

Copy-paste prompts

Prompt 1
I have a black-and-white photo from 1960. How do I use DeOldify's Colab notebook to colorize it without installing anything locally?
Prompt 2
What's the difference between DeOldify's artistic and stable models, and which should I use for family photos?
Prompt 3
How can I colorize a full video using DeOldify without flickering artifacts between frames?
Prompt 4
Show me how to set up DeOldify locally in Python to batch-process a folder of old photographs.
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.