
Restore mosaic-censored video. kukkiri finds the pixelated areas in every frame, follows them through the scene and rebuilds what is under them, then writes the result back into the original video with its sound. It streams the video, so a two-hour film needs no more memory than a two-minute clip.
Left to right: original, mosaic, kukkiri (kiyo-ltx-v1, --sensitivity high). An AI-generated clip with a synthetic mosaic; click for the full-quality video.
Requirements
- An NVIDIA GTX 16-series / RTX 20-series or newer GPU (compute capability 7.5+) and driver 580 or newer, or an Apple Silicon Mac (experimental)
- With pip: Python 3.10+ and
ffmpegon thePATH(the Windows app includes both)
Install
Windows
Download the installer, kukkiri-setup.exe (about 3 GB), and follow the Windows guide, which walks through installing and using the app with screenshots.
On Windows, use the installer rather than pip: a working pip setup needs NVIDIA’s package index (--extra-index-url https://pypi.nvidia.com), PyTorch’s CUDA 13 builds, ffmpeg on the PATH and the CUDA 12 runtime next to PyNvVideoCodec, all of which the installer brings with it. A plain pip install can pick a CPU-only PyTorch or versions that do not work together.
Linux
git clone https://github.com/treehog2/kukkiri && cd kukkiri
./install.sh # add --gui for the desktop app
Or with Docker (NVIDIA Container Toolkit, driver 580 or newer):
docker run --rm --gpus all -v "$PWD:/data" -v "$PWD/weights:/weights" -e KUKKIRI_LOG_DIR=/data/logs \
ghcr.io/treehog2/kukkiri restore /data/input.mp4 -o /data/restored.mp4 --weights /weights
Details, the desktop app, several GPUs and memory settings: Linux guide.
Mac (Apple Silicon, experimental)
brew install ffmpeg
git clone https://github.com/treehog2/kukkiri && cd kukkiri
python3 -m venv .venv && source .venv/bin/activate # Python 3.10 or newer
pip install .
kukkiri restore input.mp4
restorewith kiyo-v4 andadd-mosaicwork; kiyo-ltx and VR need an NVIDIA GPU.- A 2-minute 720p film takes about 2 minutes on a high-end chip; smaller chips will be slower.
- It uses about 3 GB of memory at 1080p and 9 GB at 4K;
--max-1080plowers that.
New
- In-app updates on Windows (alpha): kukkiri tells you when a new version is out and shows its notes; most updates download a few MB instead of the full installer, and a version that does not start is rolled back automatically. This release still needs the full installer once; quick updates start with the next one
- Earlier Windows installers stay available on Hugging Face (the last five versions)
- Resource use in Advanced (alpha): cap kukkiri’s GPU memory, RAM and GPU time (
--gpu-memory,--ram,--gpu-timeon the command line) - Pause button: freeze a restore and resume it later
Fixes
- After running out of GPU memory, kukkiri now stops instead of staying open with the GPU memory still in use
- Restores of long videos (15 minutes or more, or several GPUs) no longer keep up to a few GB of GPU memory in the background (#10, thanks to @sh202603 for the report and the fix)
- 4K on 8 GB GPUs no longer runs out of GPU memory
- kiyo-ltx above 1080p on 16 GB GPUs runs in passes instead of running out of GPU memory (#9, thanks to @sh202603 for the measurements)
- kiyo-v4 on 6 GB GPUs; videos above 1080p are restored at 1080p on GPUs under 8 GB

