Jasna Slashes GPU Memory 77% While Running 5x Faster on Video Restoration
A trending open-source pipeline uses TensorRT and transformer-based detectors to reconstruct mosaic-censored regions in video at up to 5x the speed of prior tools.
- Jasna is a trending open-source GPU pipeline for restoring mosaic-censored regions in Japanese adult video.
- Up to 4.7x faster than Lada on 4K and 5.3x on long-form 1080p using an RTX 5090.
- Peak VRAM cut roughly 4x by compiling TensorRT engines at fixed batch sizes.
- Uses RF-DETR for detection, scene-cut gating, and temporal crossfade for flicker-free output.
- Requires RTX 20-series or newer; AMD ROCm support is experimental, no secondary models.
- Free under AGPL-3.0; $15+ supporters unlock unet-4x and SD 1.5 image models.
Inside Jasna’s low-VRAM video restoration pipeline
Jasna, a Python project for reconstructing mosaic-censored regions in Japanese adult videos and images, has passed 2,300 GitHub stars. Its narrow application combines several broadly useful inference techniques: a transformer detector ahead of an inpainting network, fixed-batch TensorRT engines, automatic GPU memory management, and scene-aware temporal processing.
The code builds on Lada and uses mosaic_restoration_1.2, a model trained by Lada’s author. Jasna contributes the surrounding engineering, including a faster detection stage, lower VRAM consumption, side-by-side VR180 support, interactive segment editing, and optional secondary upscalers.
Detection first, restoration second
Jasna detects censored regions in each frame, then sends those regions through the restoration model in temporal clips. RF-DETR v6 is the default detector, while larger RF-DETR and YOLO variants trade additional compute for detection quality.
Video-specific controls prevent adjacent frames from being processed as unrelated images. Temporal overlap and crossfades reduce flicker at clip boundaries, while hard-cut detection stops the system from blending restoration data across scene changes.
- Segment editor: Previews footage, limits processing to selected ranges, and supports zooming and panning.
- Native player: Seeks through restored frames without first writing a completed output file.
- Streaming mode: Sends processed video to a browser player or a compatible Stash fork.
- VR180 handling: Processes side-by-side footage per eye and supports studio-specific restoration settings.
Fixed engines shrink the memory curve
The repository reports its main benchmarks on an RTX 5090 paired with an Intel Core i9-13900K. The figures compare Jasna with Lada under project-defined test conditions, so codec settings, model selection, driver versions, and input characteristics remain relevant when reproducing them.
This story is for Pro members
You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.