Sourcify
Effortlessly find and manage open-source dependencies for your projects.

SOTA Image Restoration via Non-Linear Activation Free Architectures

NAFNet (Non-linear Activation Free Network) represents a paradigm shift in image restoration tasks such as denoising and deblurring. Developed by Megvii Research, it challenges the necessity of traditional non-linear activation functions (like ReLU or GELU) in deep neural networks. By replacing these with a computationally efficient 'SimpleGate'—a multiplication-based mechanism—and utilizing Simplified Channel Attention (SCA), NAFNet achieves state-of-the-art performance on benchmarks like SIDD and GoPro while maintaining significantly lower computational complexity. As of 2026, NAFNet has become a foundational backbone for edge-computing image signal processors (ISPs) and real-time video enhancement suites. Its architecture is specifically optimized for high-throughput pipelines where latency and power consumption are critical. The model's design allows for seamless scaling from lightweight mobile versions to heavy-duty workstation deployments, making it a versatile choice for developers building next-generation photography and surveillance applications.
NAFNet (Non-linear Activation Free Network) represents a paradigm shift in image restoration tasks such as denoising and deblurring.
Explore all tools that specialize in denoise images. This domain focus ensures NAFNet delivers optimized results for this specific requirement.
Explore all tools that specialize in image denoising. This domain focus ensures NAFNet delivers optimized results for this specific requirement.
Replaces standard activation functions with an element-wise product of feature map splits.
A streamlined attention block that aggregates global information without complex operations.
Uses a single-stage network design instead of multi-stage architectures like MPRNet.
Achieves >40dB PSNR on the SIDD denoising benchmark.
Native support for FP16 training and inference.
Optimized for both NPU and GPU architectures due to simplified ops.
Modular blocks allow for 'NAFNet-Tiny' or 'NAFNet-Large' configurations.
Clone the official Megvii-Research NAFNet repository from GitHub.
Install Python 3.8+ and PyTorch 1.9+ environment.
Install dependencies via pip: requirements.txt (includes Basicsr, OpenCV, and NumPy).
Download pre-trained weights for specific tasks (e.g., SIDD for denoising, GoPro for deblurring).
Configure the YAML options file to point to your local dataset paths.
Run the 'basicsr' training script if fine-tuning on custom noise profiles.
Execute the test script using 'python basicsr/test.py -opt options/test/NAFNet-Width64.yml'.
Export the model to ONNX or CoreML for deployment on edge devices.
Optimize the inference engine using TensorRT for NVIDIA hardware.
Integrate the inference script into your application pipeline via the provided API wrapper.
All Set
Ready to go
Verified feedback from other users.
"Highly praised by the CV research community for its simplicity and efficiency compared to heavy transformer models."
Post questions, share tips, and help other users.
Effortlessly find and manage open-source dependencies for your projects.

End-to-end typesafe APIs made easy.

Page speed monitoring with Lighthouse, focusing on user experience metrics and data visualization.

Topcoder is a pioneer in crowdsourcing, connecting businesses with a global talent network to solve technical challenges.

AI-powered video enhancement software for denoising, upscaling, and restoring video footage.
Image upscaling powered by AI, enhancing detail and accuracy for larger, sharper images.