Skip to content

About

Hybrid Automatic Video Colorizer (HAVC) server that exposes a GPU-accelerated colorization pipeline for B&W images and video frames based on Diffusion Transformer (DiT) models: Qwen-Image-Edit-2511, Qwen-Image 2.1 and LongCat ImageEdit Turbo. Colorized reference frames are propagated using CMNET2.

Topics

Resources

Stars

16 stars

Watchers

1 watching

Forks

Latest commit

 

History

400 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAVC Server DiT

Hybrid Automatic Video Colorizer (HAVC) server that exposes a GPU-accelerated colorization pipeline for black-and-white images and video frames based on Diffusion Transformer (DiT) models.

8 backends, one API : pick the one that fits your hardware:

  • nunchaku-qwen: SVDQuant FP4/INT4 transformer via Nunchaku : 4 sec/frame¹, requires RTX 30/40/50 (16GB+ VRAM, 64GB RAM) & CUDA 13.0
  • gguf-qwen: Qwen-Image-Edit 2511 (native int8 ConvRot or GGUF Q3_K_S) : ~7.3 sec/frame¹ (Fast Pipeline) or ~10.5 sec/frame, runs on RTX 30/40/50 (12GB+ VRAM with Q3_K_S, 16GB+ with int8; 32GB+ RAM with Q3_K_S, 48GB+ with int8), zero ComfyUI GUI dependency
  • longcat-gguf: LongCat-Image-Edit-Turbo GGUF pipeline (Q3_K_M / Q4_K_M) : ~12 sec/frame², runs on RTX 30/40/50 (8GB+ VRAM, 16GB+ RAM with Q3_K_M — the lowest requirement in the stack, field-tested; Q4_K_M is the default on larger machines), better image quality than gguf-qwen, zero ComfyUI GUI dependency
  • qwen21-viggle: Qwen-Image-2.1 (native ComfyUI int8 ConvRot UNet) + Viggle-Turbo LoRA : ~2.65 sec/frame¹ at 2 steps (Fast Pipeline) or ~2.9 without — the fastest backend, with the lowest minimum requirements of the backends that run at a usable speed (12 GB VRAM / 32 GB RAM) thanks to Dynamic VRAM and the text-encoder split — the other 12 GB-class options run at ~7–12 sec/frame (only longcat-gguf goes lower, 8 GB / 16 GB, at a much higher per-frame cost); runs on RTX 30/40/50 (14GB+ VRAM on the standard path; 12GB with Fast Pipeline; 32GB+ RAM), optional enhance_prompt (Qwen3-VL image-aware prompt rewriting)
  • qwen21-turbo: Qwen-Image-2.1-Turbo (native ComfyUI int8 ConvRot UNet) : ~4.5 sec/frame¹ (single split) or ~2.3 sec/frame with the paired split (fast_split_TE), runs on RTX 30/40/50 (14GB+ VRAM; 12GB with Fast Pipeline; 32GB+ RAM), richer colors than qwen21-viggle but less stable between similar frames — the shipped default stays qwen21-viggle
  • flux2: FLUX.2-dev + Mistral-3 text encoder + FLUX.2 small-decoder VAE, Flux.2 Turbo LoRA : ~4.0 sec/frame¹ (paired split, int4 ConvRot) or ~5.5 sec/frame (fp8 mixed; the Q3 GGUF variant is lighter but slower), runs on RTX 30/40/50 (16GB+ VRAM, 64GB+ RAM). The int4 config sets "vram_headroom": 3 for 16 GB cards — 0 on 12 GB and 24 GB+ cards, see docs/backends.md
  • qwen25-nunchaku: Qwen-Image-Edit 2509/2511 through the ComfyUI-nunchaku node (SVDQuant) : ~4.1–4.4 sec/frame¹ on the -fast (paired) configs, ~8.7 sec/frame¹ on the split and ~9.2 live for 2511 (QuantFunc FP4 + Lightning LoRA), ~7.4 sec/frame for 2509 (official FP4, Lightning fused), runs on RTX 50 (16GB+ VRAM, 32GB+ RAM) — the only path to 2511 with SVDQuant weights
  • flux3: FLUX.3 Image Klein + Qwen3.5-9B prompt upsampler (the encoder reads the frame and expands the request, so a Santa suit comes out red instead of "natural"; 13/20 flags on the sample frame against 6-7 for Flux.2, still behind the 18/20 of the Qwen-Image-Edit configs) : ~4.9 s/image end to end at 6 steps (~5.3 at the shipped 8; the upsampler is ~55-60% of it and does not scale with steps), runs on RTX 30/40/50 (12GB+ VRAM / 32GB+ RAM with Fast Pipeline — the split phases stage ~11.2 GB and ~5.7 GB; a single live call needs all 16.7 GB, see below); the weights come from a gated HuggingFace repo, see docs/backends.md

¹ Measured with Fast Pipeline — the cached text-encoder split for qwen21-viggle, qwen21-turbo (the ~2.3 s/frame figure: its paired fast_split_TE variant), gguf-qwen, qwen25-nunchaku, longcat-gguf (its ~12 s/frame figure is with Fast Pipeline; the live path is ~14–17 s/frame), flux2 and flux3 (paired for qwen21_turbo-fast_int8 and all the flux2/flux3 configs), paired inference for nunchaku-qwen. ² longcat-gguf's live (non-Fast) time is single-image; the paired variant (fast_split_TE) reaches ~7.5 s/frame. Steady-state per-frame times, warm-up excluded; the gguf-qwen figure comes from a 17-frame test at 2 steps. Speed/hardware/quality trade-offs, the recommended picks and the full measurement notes: docs/backends.md.

📥 Install

Installer (recommended) — download HAVC-Setup-<version>.exe from the Releases page and run it: a single self-contained file (no .NET runtime needed) that installs the pinned Python runtime, the server stack, the GUI, external tools and the vs-cmnet2 plugins/weights — and keeps everything updated (Check for updates, Repair, Uninstall from the manager). Model weights are downloaded on first use and preserved across updates. Details: docs/installation.md.

⚠️ Windows SmartScreen will warn on first run because the exe is not code-signed: More info → Run anyway. The sha256 of every asset is published in the release notes.

Manual installation (advanced) — clone the repository and run install.cmd (requires Git + Python 3.12): step-by-step instructions in docs/installation.md.

🚀 Quick start

From the install folder (or the repository root on a manual install):

HAVC.vbs               # desktop GUI (the recommended front-end)
HAVC-Server.cmd        # console server — optional arg: alias or config name (no arg: int4)
start_server.cmd q3    # console server with a backend/quantization or a config name

CLI arguments, the full launch-script reference and the suggested inference steps: docs/server_usage.md.

📋 Requirements

  • Windows 10/11, NVIDIA RTX 30/40/50 GPU, CUDA 13.0+
  • VRAM / RAM by backend: nunchaku-qwen 16 GB+ / 64 GB+ · gguf-qwen 12 GB+ (qwen-2511_q3) or 16 GB+ (qwen-2511_int8) / 32 GB+ (qwen-2511_q3) or 48 GB+ (qwen-2511_int8) · longcat-gguf 8 GB+ / 16 GB+ (Q3_K_M) · qwen21-viggle / qwen21-turbo 14 GB+ (12 GB+ with Fast Pipeline) / 32 GB+ · flux2 16 GB+ / 64 GB+ · flux3 12 GB+ / 32 GB+ (Fast Pipeline) — details
  • Disk: a few GB for the software stack; model weights (up to tens of GB for the largest configs) are downloaded on first use

✨ Features

  • 📦 8 backends, one API : nunchaku-qwen (FP4/INT4, 4 sec/frame), gguf-qwen (Qwen-Image-Edit 2511: native int8 ConvRot or Q3_K_S, ~7.3 sec/frame with Fast Pipeline) and qwen25-nunchaku (Qwen-Image-Edit 2509/2511 on the ComfyUI-nunchaku node) and longcat-gguf (Q3–Q4) for lower VRAM, qwen21-viggle (int8 ConvRot UNet, fastest: ~2.65 sec/frame with Fast Pipeline, 12 GB VRAM / 32 GB RAM minimum) with optional Qwen3-VL prompt rewriting, qwen21-turbo (Qwen-Image-2.1-Turbo, ~2.3 sec/frame with the paired split) for the richest colors, flux2 (FLUX.2-dev with the Turbo LoRA, ~4.0 sec/frame int4 / ~5.5 fp8 with the paired split) for FLUX-family colors, flux3 (FLUX.3 Image Klein with its Qwen3.5-9B prompt upsampler: the encoder reads the frame, so conventionally-colored subjects come out right)
  • 🎨 Batch colorization : process entire directories of B&W images via filesystem paths
  • 🖼️ Paired inference : colorize two images in a single forward pass (faster, temporally consistent)
  • 📡 In-memory RPC : pass raw PNG frames over XML-RPC without touching the filesystem (ideal for video pipelines)
  • ⚡ 4-step lightning model : SVDQuant FP4 quantized transformer for maximum throughput
  • 🔒 Thread-safe : pipeline loading and stop control are protected by locks; every RPC call runs in its own thread
  • ⚙️ Startup preload : optional --load-pipeline flag loads the model at boot from a JSON config file
  • 🚀 Shared memory transport : zero-copy image transfer for same-host deployments (~23% faster than standard RPC)

📚 Documentation

🔗 Credits

About

Hybrid Automatic Video Colorizer (HAVC) server that exposes a GPU-accelerated colorization pipeline for B&W images and video frames based on Diffusion Transformer (DiT) models: Qwen-Image-Edit-2511, Qwen-Image 2.1 and LongCat ImageEdit Turbo. Colorized reference frames are propagated using CMNET2.

Topics

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages