Repository navigation
v5.1 Stable Release
Version 5.1
Release date: December 11, 2025
Kernel Version: 5.1.0 (Codename: Asynchronous-Warlock)
Architecture: Distributed / Multi-Threaded UI
Asynchronous I/O Architecture & File Queue System
The application's file ingestion and management layer has been architecturally decoupled from the main GUI thread. The legacy synchronous file loader has been deprecated in favor of a reactive, non-blocking subsystem driven by the new file_queue_manager.py module.
Multi-Threaded Ingestion Pipeline (FileQueueManager)
- Parallelized Metadata Extraction: Implemented a
ThreadPoolExecutorworker pool strategy. Heavy I/O operations—includingcv2.VideoCapturemetadata reading, frame extraction, and resolution calculation—are now offloaded to background threads, eliminating UI freezes ("Application Not Responding") during batch imports. - Thread-Safe Message Bus: A
queue.Queuemessaging pattern was established to marshal data between worker threads and the main Tkinter loop. The_check_queuepolling mechanism ensures atomic widget updates, preventing race conditions and segmentation faults common in multi-threaded GUI applications. - Object-Oriented State Encapsulation: Introduced the
QueueItemclass to encapsulate file-specific state (loading status, error flags, thumbnail blobs, and resolution metrics). This allows for granular error handling where a single corrupt file no longer halts the entire batch loading process. - Lazy Thumbnail Generation: Video and image thumbnails are now generated and cached asynchronously using a secure
PIL<->OpenCVbridge, reducing initial memory footprint during large batch operations.
Viewport State Management (Main Orchestrator)
- Dynamic View Switching: The main application logic now implements explicit view controllers (
show_drop_zoneandshow_file_manager) to seamlessly toggle between the "Drag & Drop" landing state and the active "Queue Management" interface. - Drop Zone Expansion: The drag-and-drop event listeners have been registered across the entire container hierarchy (
drop_zone_frame, buttons, labels), eliminating "dead zones" where file drops were previously ignored.
Preferences System Re-engineering
The configuration subsystem (warlock_preferences.py) has been rewritten from the ground up, abandoning the linear vertical scrolling design for a categorized Sidebar Navigation Architecture.
Diagnostic & Maintenance Suite
- Integrated Log Viewer: Embedded a read-only
CTkTextboxthat dynamically streams the content of the activewarlock_studio.logfile. Users can now audit FFmpeg stderr output and internal errors directly within the GUI without navigating the host file system. - Debug Package Export: Introduced the
export_debug_inforoutine. This function aggregates the current JSON configuration, recent log files, and system hardware telemetry into a timestamped.ziparchive, streamlining the bug reporting process for developers. - Binary Path Overrides: Added manual path selectors for
ffmpeg.exeandexiftool.exe. This resolves path resolution conflicts on systems with non-standard environment variables or portable deployments.
Hardware & Execution Configuration
- Strict ONNX Provider Enforcement: Implemented a user-accessible selector for the AI Execution Backend (
Auto,CUDA,DirectML,CPU). This allows users to forcefully bypass the internal driver heuristic engine if automatic detection fails on hybrid GPU setups. - Refined "NEO Engine": The hardware scanning logic was optimized to prioritize
GPUtildirect querying for NVIDIA GPUs while maintaining a robust WMI/WQL fallback chain for AMD and Intel architectures, ensuring accurate VRAM reporting.
AI Algorithm Precision & Mathematical Corrections
RIFE Dynamic Padding (Artifact Elimination)
Resolved a critical mathematical deficiency in the RIFE (Real-Time Intermediate Flow Estimation) interpolation pipeline where input resolutions not divisible by 32 generated black banding or green-screen artifacts.
- Reflective Padding Logic: Implemented
pad_image_to_divisorwithin theAI_interpolationclass. This routine calculates the modulo-32 remainder and dynamically applies reflective border padding (cv2.copyMakeBorder) to the input tensor before inference. - Surgical Post-Inference Cropping: A corresponding
crop_paddingroutine removes the synthetic borders from the output tensor with pixel-perfect precision, ensuring the generated frames match the original resolution exactly without visual distortion.
Face Restoration Stabilization
- Float32 Precision Enforcement: The
AI_face_restorationclass now strictly enforcesfloat32precision. The experimentalfp16auto-detection was removed to preventNaN(Not a Number) tensor propagation observed on specific CUDA driver versions and older Pascal/Maxwell architectures. - Alpha Channel Integrity Protocol: Refined the RGBA handling pipeline ("Split-Merge Strategy"). The Alpha channel is now strictly processed via Bicubic interpolation, while only the RGB channels undergo GAN-based restoration. This prevents the generation of noise artifacts in transparency masks.
Operational Safety & Visual Identity
Process Execution Guards
- Confirmation Interceptor: Injected a
messagebox.askyesnoguard clause into theupscale_button_command. This prevents accidental initiation of resource-intensive workloads. - Shutdown Race Condition Fix: The
on_app_closehandler now captures window attributes (is_topmost) before the destruction sequence begins, resolvingTclError: application has been destroyedexceptions that previously corrupted preference saving on exit.
"Warlock Identity" Thematic Unification
- High-Contrast Palette: The interface theme has been standardized to a "Dark & Gold" palette. Backgrounds have been deepened to
#0A0A0A(Near Black) to maximize contrast for image previewing, with semantic color coding (Success Green, Error Red, Warlock Gold) applied consistently across the new Preferences and Queue modules.