Ir para o conteúdo
Node packVerificadoExterno
Fonte aberta

comfyui-ltx2-efficient

An Effiecient Sampler node for low end Card with 6GB V-Ram

Mantenedor@kakachiex2Unratednota

Perfil do pacote

Status
Verificado
Publicador
@kakachiex2
Fonte
GitHub

README

LTX2 Efficient Video Sampler

ComfyUI License

A high-performance custom node for LTX2 video generation in ComfyUI, designed to drastically reduce GPU usage, VRAM requirements, and temperature on consumer GPUs (especially 6GB cards like RTX 2060).

GPU Temperature

✨ Features

🎯 Core Optimizations

  • Frame-Stride Diffusion: Process only keyframes (e.g., 1 out of 4), interpolate the rest
  • Spatial Attention Freezing: Skip redundant attention computation after configurable threshold
  • LTX2-Specific Hooks: Precise targeting of attn1 (self-attention) vs attn2 (cross-attention)

🌡️ Thermal Management

  • Real-Time GPU Monitoring: Uses pynvml to read actual GPU temperature
  • Dynamic Throttling: Auto-adjusts processing speed to maintain target temperature
  • Emergency Protection: Automatic 2-second pause at critical temps (83°C+)
  • Preset Profiles: Quick optimization for different GPU tiers

🎬 Advanced Interpolation

  • Linear: Fast, basic blending
  • Slerp: Spherical interpolation - smoother for diffusion latents
  • Motion-Compensated: Optical flow-based warping for best motion quality

📦 Additional Nodes

  • LTX2 Temporal VAE Decode: Memory-efficient VAE decoding with temporal tiling
  • LTX2 Separate Audio/Video Latent: Extract video and audio from combined latents (for use with LTXVConcatAVLatent)
  • LTX2 Combine Audio/Video Latent: Recombine processed video with audio for downstream nodes
  • LTX2 Empty Audio Latent: Generate placeholder audio latent matching video duration

🎵 Audio-Video Workflow

For workflows using LTXVConcatAVLatent or MMAudio:

[LTXVConcatAVLatent] → [LTX2 Separate AV] → [LTX2 Efficient Sampler] → [LTX2 Combine AV] → [Decode]
                                         ↓                              ↑
                                  [Audio Pipeline (optional)] ──────────┘

📋 Requirements

  • ComfyUI (latest)
  • PyTorch with CUDA
  • pynvml (optional, for thermal monitoring)

🚀 Installation

Option 1: ComfyUI Manager (Recommended)

Search for "LTX2 Efficient" in ComfyUI Manager and install.

Option 2: Manual Installation

cd ComfyUI/custom_nodes/
git clone https://github.com/kakachiex2/LTX2-Efficient-Sampler
cd comfyui-ltx2-efficient
pip install -r requirements.txt

🎛️ Node Settings

Optimization Presets

PresetFreeze RatioThrottleFrame StrideBest For
Performance (RTX 3080+)70%0ms2High-end GPUs
Balanced (RTX 3060/3070)50%25ms4Mid-range
Aggressive (RTX 2060/2070)30%50ms46GB VRAM
Ultra Low Power (GTX 1660)15%100ms6Older GPUs
Extreme Cool (RTX 2060 6GB)10%150ms8Target 65°C
Thermal Auto-Scale30%Dynamic4Recommended
CustomManualManualManualFine-tuning

Key Parameters

ParameterDefaultDescription
optimization_presetThermal Auto-ScaleQuick optimization profile
target_temp70°CTarget GPU temperature (for auto-scale)
frame_stride4Process every Nth frame (higher = faster)
freeze_ratio0.3Start freezing attention at this % o

Nós neste pacote

Nós 10
  • LTX2CombineAVLatent
  • LTX2ConditioningHelper
  • LTX2EfficientSampler
  • LTX2EfficientSamplerPro
  • LTX2EmptyAudioLatent
  • LTX2ExperimentalKeyframeSampler
  • LTX2ModelPatcher
  • LTX2SeparateAVLatent
  • LTX2TemporalVAEDecode
  • LTX2TextEncodeOptimized

Fontes

3 fontes
GitHubFonte
github.com/kakachiex2/comfyui-ltx2-efficient

Verificado 6 de nov.

GitHubFonteVersão ad13214048b73ccfeae96029ed2b5836b0a8d886
github.com/kakachiex2/comfyui-ltx2-efficient

Verificado 11 de out.

Trechos de fonte

1 trecho

Source context: Repo kakachiex2/comfyui-ltx2-efficient