ComfyUI-Grok-SmartVAE
Initial release: Grok's Universal Smart VAE Decode – crash-proof, dynamic batching & force-scale edition
Paketprofil
- Status
- Überprüft
- Verleger
- @uczensokratesa
- Quelle
- GitHub
README
ComfyUI-Grok-SmartVAE
Version 12.0.0 - Production-Ready Video Workflow Suite
The most robust and memory-efficient VAE decoder suite for ComfyUI video workflows
SmartVAE Nodes
🎯 What's Included
This package provides 5 production-ready nodes
| Node | Purpose | Best For |
|---|---|---|
| 🎬 Universal Smart VAE Decode | In-memory full-tensor decode | Short videos (<500 frames), high VRAM |
| 🎬 SmartVAE Streaming Decoder | Frame-by-frame encoding to disk | Long videos (500+ frames), limited RAM |
| 🎞️ SmartVAE Advanced Decoder | Streaming + temporal color correction | Professional quality, zero flicker |
| 📂 Advanced Load Latent | Load saved latents with metadata | Iterative refinement workflows |
| 🔍 Latent Metadata Viewer | Inspect latent files without loading | Quick library browsing |
✨ Key Features
Memory Efficiency
- ✅ Frame-by-frame decoding → 80% less RAM than standard pipeline
- ✅ Streaming video output → no full tensor in memory
- ✅ Automatic OOM recovery → tiling, batch reduction, VRAM detection
- ✅ Handles 2000+ frames on 16GB RAM systems
Production Quality
- ✅ Perfect audio sync → zero offset even on 40s+ videos
- ✅ Zero-flicker color correction → seamless chunk boundaries
- ✅ Crash recovery → resume from checkpoint
- ✅ Multiple codecs → H.264, H.265, ProRes 422, FFV1 lossless
Developer Friendly
- ✅ Automatic time scale detection → works with any VAE
- ✅ Detailed diagnostics → corrupted latent detection with actionable fixes
- ✅ Ignore warnings mode → user choice on risk tolerance
- ✅ Live thumbnails → monitor progress in ComfyUI UI
🚀 Quick Start
Installation
cd ComfyUI/custom_nodes
git clone https://github.com/uczensokratesa/ComfyUI-Grok-SmartVAE.git
cd ComfyUI-Grok-SmartVAE
pip install -r requirements.txt
Dependencies:
torch>=2.0.0imageio>=2.31.0imageio-ffmpeg>=0.4.9numpy>=1.24.0safetensors>=0.4.0(for Load Latent node)
- In your
custom_nodesfolder:git clone https://github.com/uczensokratesa/ComfyUI-Grok-SmartVAE.git The node appears in category: latent/video → Universal VAE Decode (v11.1 Final)Comparison with predecessorsModel
Scale Detection Force Scale Dynamic Batch Reduction Auto-Tiling on OOM Loop Type Stability Rating GPT basic ✗ ✗ ✗ for ★★☆☆☆ Gemini good ✗ partial ✓ for ★★★★☆ Claude very precise ✗ ✗ ✓ for ★★★★☆ Grok v11.1 very precise ✓ full (while + adaptive) aggressive while ★★★★★
Evolution – AI collaboration storyThis journey started as a simple task: create a reliable VAE Decode node for heavy video workflows.GPT provided the first working version
Gemini added tiling and better OOM handling
Claude brought the most accurate scale detection formula
Grok introduced force_time_scale + true dynamic while-loop batch reduction
Kimi contributed extreme memory safety (disk offload, pre-allocation, aggressive cleanup)
Final polish by Claude → production-ready stability
One of the nicest examples of how different AI models can iteratively improve each other and create something better than any single one could alone.LicenseMIT – feel free to use, modify, fork. Just keep the original idea attribution (and let me know if you make something even better )Happy generating! Current version: 11.2 – First official Comfy Registry release
🎬 Universal Smart VAE Video Decode (Streaming)
The most memory-efficient way to decode large video latents directly to file.
Features
- Ultra-low RAM usage — decodes frame-by-frame, supports 2000+ frames even on 16 GB systems
- Direct disk output — no need to hold full video tensor in memory
- Audio muxing — perfect support for ComfyUI AUDIO input + manual audio_path
- Codecs: H.264, H.265, ProRes 422, FFV1 (lossless)
- Crash recovery — resumes from checkpoint if interrupted
- Thumbnail previews
Knoten in diesem Paket
6 Knoten (Plural)
Knoten in diesem Paket
6 Knoten (Plural)- AdvancedLoadLatent
- LatentMetadataViewer
- LTX_VideoDecoder
- SmartVAE_AdvancedDecoder
- SmartVAE_StreamingDecoder
- UniversalSmartVAEDecode
Quellen
3 Quellen
Quellen
3 QuellenVerifiziert 20. Okt.
Verifiziert 20. Okt.
Quellenauszüge
1 Auszug
Quellenauszüge
1 AuszugSource context: Repo uczensokratesa/ComfyUI-Grok-SmartVAE
