comfyui-nvidia-audio-diffusion
A ComfyUI custom node suite for Audio-to-Audio Schrödinger Bridges (A2SB) with state-of-the-art audio restoration, bandwidth extension, and inpainting optimized for modern NVIDIA GPUs.
ComfyUI-A2SB: High-Fidelity Audio Restoration
A ComfyUI custom node suite for Audio-to-Audio Schrödinger Bridges (A2SB). This pack brings state-of-the-art audio restoration, bandwidth extension, and inpainting to the ComfyUI ecosystem, with deep optimizations for modern NVIDIA GPUs (Blackwell/Ada).
🌟 Key Features
- Bandwidth Extension (BWE): Restore high frequencies up to 44.1kHz from low-quality recordings.
- Advanced Inpainting: Seamlessly "heal" audio segments using diffusion.
- Auto-Declipper: Automatically detects and repairs clipped/distorted audio peaks.
- Refiner Mode: Polishes existing audio textures to remove "metallic" artifacts or digital crunchiness.
- Blackwell-Ready Design:
- SageAttention Support: Native integration for lightning-fast attention on RTX 40/50 series.
- Broadcasting Optimization: Minimum memory traffic during multidiffusion.
- Channels Last Format: Optimized for NVIDIA Tensor Cores.
- Torch Compile Support: Maximum throughput via kernel fusion.
🚀 Installation
-
Clone the repository:
cd custom_nodes git clone https://github.com/mmoalem/comfyui-nvidia-audio-diffusion -
Install dependencies: Run the
install.pyscript included in the folder or manually install:pip install -r requirements.txtNote: For maximum performance on Blackwell/Ada GPUs, it is highly recommended to install SageAttention.
-
Models: The nodes will automatically download the required checkpoints (~6.8GB) from HuggingFace on first use. Models are saved to
ComfyUI/models/A2SB.
🛠️ Usage
A2SB Model Loader
- model_type: Choose between
1-split(fast) or2-split(higher quality). - precision:
bf16is recommended for modern GPUs. - attention_type: Select
sageif you have SageAttention installed, otherwise usesdpa. - use_compile: Enable for a permanent speed boost after a short initial compilation delay.
A2SB Bandwidth Extension
- Use this to fix muffled audio.
- Set
cutoff_freqto0for auto-detection, or manually (e.g.,8000) to force regeneration of the high-end (excellent for fixing metallic ACE-Step audio).
A2SB Inpainting
- auto_declip: Turn this ON to automatically fix distortion in loud recordings.
- refiner_strength: Set between
0.1and0.5to "smooth out" crunchy audio without changing the content.
📜 License & Credits
Credits
- Original Research: Developed by NVIDIA CORPORATION. Based on the paper "Audio-to-Audio Schrödinger Bridges" (Research Paper).
- Architecture: U-Net implementation inspired by OpenAI's Guided Diffusion.
License
- A2SB Source Code: Licensed under the NVIDIA Source Code License for A2SB. See the accompanying
LICENSEfile for full terms (Non-commercial, Research only). - Custom Node Wrapper: Licensed under the MIT License.
Developed for the ComfyUI community to enable next-generation audio processing.