NAFNet: Image restoration without nonlinear activations
Efficient PyTorch architecture for image restoration tasks.
Learn more about NAFNet
NAFNet is a convolutional neural network architecture designed for low-level vision tasks including image deblurring, denoising, and stereo super-resolution. The model is implemented in PyTorch and operates by replacing traditional nonlinear activation functions with multiplication operations or removing them entirely from the network. The architecture achieves competitive results on standard benchmarks such as GoPro for deblurring and SIDD for denoising while requiring substantially fewer computational operations than comparable methods. The framework is applicable to various image restoration scenarios where computational efficiency and inference speed are relevant considerations.
Activation-free design
The architecture removes or replaces nonlinear activation functions (ReLU, GELU, Sigmoid, Softmax) with simpler operations like multiplication, simplifying the model structure while maintaining restoration quality across multiple tasks.
Computational efficiency
Achieves comparable or improved performance on standard benchmarks while requiring significantly fewer multiply-accumulate operations than prior methods, as demonstrated on GoPro and SIDD datasets.
Multi-task capability
Provides implementations for multiple image restoration tasks including image deblurring, image denoising, and stereo image super-resolution through a unified architectural approach with task-specific variants.
Top in AI & ML
Related Repositories
Discover similar tools and frameworks used by developers
Crawl4AI
Async browser automation extracting web content for LLMs.
Stanford Alpaca
Research project that fine-tunes LLaMA models to follow instructions using self-generated training data.
Wan2.1
Diffusion transformer models for text and image-to-video generation.
Video2X
ML-powered video upscaling, frame interpolation, and restoration with multiple backend support.
Summarize
CLI and browser extension that generates summaries from URLs, files, videos, podcasts, and other media sources.
Related Reading
Guides and comparisons from the Greptile content library
Automated Code Review: How It Works & Best Tools [2026]
What automated code review is, how it differs from traditional and AI code review, the six types of code review automation tools, and why linters and SAST alone are no longer enough as agentic coding grows.
Guide to Self-Hosted AI Code Review for GitLab and GitHub Enterprise [2026]
How self-hosted AI code review works on GitLab Self-Managed and GitHub Enterprise Server, how it compares to SaaS review tools, what to look for in a self-hosted tool, and what a self-hosted rollout actually takes.
Best AI Code Review Tools for GitHub
Top-rated AI code review tools for GitHub teams in 2025. Compare features, pricing, and accuracy to find the perfect fit for faster PR reviews and bulletproof code quality.
Greptile Ranks #1 on Martian's AI Code Review Benchmark
Greptile ranks #1 on Martian's independent online AI code review benchmark, leading all evaluated tools in F1 score and precision with near-leading recall.