All projects
SampleSample · unsupportedUnsupported · no SLA

DDColor Photo Colorization

Full-stack sample (Next.js 16 + FastAPI) that bulk-ingests black-and-white scans to Backblaze B2, colorizes them in batches with DDColor running locally at original resolution, and writes colorized outputs, side-by-side comparisons, and a per-run manifest CSV back to B2 next to the untouched originals.

Built for: Developers and AI coding agents building colorization workflows for digital archives, newspaper morgues, or historical-society collections that need originals kept untouched beside every derived version.

MIT licensed · Updated Nov 5, 2026

Dashboard with write amplification, photo counts, a bytes-in-B2 chart and recent batches
The Dashboard shows write amplification, photos ingested and colorized, batches run, a bytes-in-B2 chart of originals versus derived outputs, and recent batches.

What it's built with

Each piece of the stack, and the job it does in this project.

Next.js 16 + React 19
Web application and dashboard UI
Tailwind CSS v4 + shadcn/ui
Design tokens and reusable interface primitives
TanStack Query + Recharts
Client-side data fetching and dashboard charts
FastAPI + Pydantic v2
Typed, layered Python API with a background batch worker
DDColor on PyTorch
Local photo colorization on CUDA, Apple MPS, or CPU (Apache-2.0 model, public Hugging Face weights)
Pillow
Image decoding, luminance recombination, and side-by-side comparisons
boto3 + Backblaze B2
S3-compatible object storage for originals, outputs, manifests, and batch records
pnpm workspaces
TypeScript and Python monorepo workflow

Core capabilities

What the project does out of the box, before you write any code of your own.

  • Colorization batches

    Create, edit, delete, and run colorization batches; each run writes colorized outputs, optional side-by-side comparisons, and a per-run manifest CSV back to B2.

  • Local DDColor inference

    DDColor runs inside the API on CUDA, Apple MPS, or CPU, and recombines the predicted colour with the original luminance so outputs keep the scan's exact resolution.

  • Photo Library

    Grayscale originals with before/after views of every colorized version; originals are only ever read, never modified.

  • Bulk Ingest

    Drag-and-drop many scans straight to the grayscale prefix in B2 by presigned PUT.

  • Dashboard

    Photos ingested and colorized, derived bytes, and the write-amplification ratio of stored bytes per ingested byte.

  • Bucket Explorer

    Browse, preview, download, and delete any object in the bucket from the app.

  • Provenance manifests

    Each run's CSV records original and output keys, model id and Hugging Face revision, sizes, dimensions, duration, and per-photo status.

A closer look

More screens from the running project.

Batches list showing completed DDColor colorization runs
Batches lists every colorization run with its status, photo count, DDColor model and input size, derived bytes, and creation time.
Batch detail with progress, run settings and before/after comparison cards
Batch detail shows one run's progress, model version, output format, and byte totals, with a before/after slider per photo and a Manifest CSV download.
Photo Library grid of colorized historical photos
The Photo Library shows the grayscale originals, each tile with its latest colorized version and how many versions exist.
Photo detail sheet comparing a colorized version with the grayscale original
Photo detail compares one original against any of its colorized versions, each downloadable from B2.
Bulk Ingest drop zone for black-and-white scans
Bulk Ingest uploads black-and-white scans by drag-and-drop straight to B2 through presigned PUT URLs.

Choose it for the right job

DDColor Photo Colorization is a head start for a specific shape of project, not a supported, general-purpose product.

Use it when

  • You run a digital archive or historical photo collection and want a self-hosted, reproducible batch colorization workflow.
  • You need originals kept untouched in object storage beside every colorized version, with a manifest per run for provenance.
  • You want to compare DDColor model variants on the same photos, keeping each version side by side.
  • You want a working reference for running an open-source vision model over objects in Backblaze B2 through the S3-compatible API.

Choose another path when

  • You need photo restoration: DDColor adds plausible colour but does not repair scratches, tears, or blur, and its colours are a model's estimate, not historical fact.
  • You need a hosted multi-user service: the API has no authentication, user accounts, or tenant isolation and is meant for a trusted machine or private deployment.
  • You want a serverless deploy: DDColor's PyTorch inference and its 220 to 900 MB weights do not fit in a serverless function, so the sample runs locally or on a container host.
Sample · unsupported

Project status and support

Report defects and feature requests through the repository's GitHub Issues; the sample carries no SLA.