How kruk2/jasna works
Jasna is a GPU-focused video and still-image mosaic restoration application with GUI and CLI entry points. Its main video workflow inspects media, detects and tracks mosaic regions, restores tracked clips, then encodes or streams the result. The graph also preserves documented capabilities such as segment editing, VR180 handling, optional secondary restoration, and still-image restoration. Some subsystem links rely on README descriptions or SOURCE INDEX references; unsampled implementation details are not asserted.
Main entry points: pipeline.py Video orchestration · pipeline_threads.py Processing workers · app.py Desktop GUI · pipeline_processing.py Crop and overlap
Components 24
User interaction
- Desktop GUI
jasna/gui/app.py - CLI
jasna/main.py - Segment editor
jasna/gui/segment_editor.py
Video processing
- Session setup
jasna/session_factory.py - Video orchestration
jasna/pipeline.py - Processing workers
jasna/pipeline_threads.py - Mosaic detection
jasna/mosaic/detection_registry.py - Clip tracking
jasna/tracking/clip_tracker.py - Scene cuts
jasna/tracking/scene_detector.py - Crop and overlap
jasna/pipeline_processing.py - VR180 handling
jasna/vr180.py
Restoration models
- Restoration pipeline
jasna/restorer/restoration_pipeline.py - BasicVSR++
jasna/restorer/basicvsrpp_mosaic_restorer.py - Secondary restoration
jasna/restorer/secondary_restorer.py - Still-image restoration
jasna/image_restore.py - LTX restoration
jasna/ltx/restore.py - GPU backend
jasna/accelerator.py - Engine preparation
jasna/engine_compiler.py
Media and delivery
- Media probing
jasna/media/probe.py - Video decoding
jasna/media/video_decoder.py - Video encoding
jasna/media/video_encoder.py - Streaming pipeline
jasna/streaming_pipeline.py
Other components
- User
- Browser player
Connections 24
- User → Desktop GUI: starts work
README.md - User → CLI: starts work
README.md - Desktop GUI → Session setup: configures jobs
- CLI → Session setup: configures jobs
- Desktop GUI → Segment editor: edits ranges
README.md - Session setup → Video orchestration: runs restoration
jasna/pipeline.py - Video orchestration → Media probing: probes input
jasna/pipeline.py - Video orchestration → Video decoding: decodes frames
jasna/pipeline.py - Video orchestration → Processing workers: starts workers
jasna/pipeline.py - Processing workers → Mosaic detection: detects regions
- Processing workers → Crop and overlap: processes frames
jasna/pipeline_threads.py - Crop and overlap → Clip tracking: updates tracks
jasna/pipeline_processing.py - Crop and overlap → Scene cuts: checks cuts
jasna/pipeline_processing.py - Processing workers → Restoration pipeline: restores clips
jasna/pipeline_threads.py - Restoration pipeline → BasicVSR++: uses model
jasna/restorer/restoration_pipeline.py - Processing workers → Secondary restoration: enhances clips
jasna/pipeline_threads.py - Video orchestration → Video encoding: encodes output
jasna/pipeline.py - User → Still-image restoration: restores image
README.md - Still-image restoration → LTX restoration: uses restoration
- User → Streaming pipeline: requests stream
README.md - Streaming pipeline → Browser player: serves playback
README.md - Video orchestration → VR180 handling: handles VR180
jasna/pipeline.py - Video orchestration → Engine preparation: prepares engines
- Engine preparation → GPU backend: targets GPU
jasna/engine_compiler.py