Skip to content

umitkacar/awesome-ncnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Awesome NCNN Collection

NCNN Status Updated License

⚑ High-Performance Neural Network Inference for Mobile & Edge AI

Your ultimate curated collection of cutting-edge NCNN resources, projects, and implementations

🌟 Star β€’ πŸ”₯ Trending Projects β€’ πŸ“± Mobile Deploy β€’ βš™οΈ Optimization


πŸ“Š Performance Highlights

Metric Performance vs GPU
⚑ Latency 58.54% Lower Matrix Operations
πŸš„ LLM Inference 3.2Γ— Faster Inference Speed
πŸ’ͺ Throughput 2Γ— Higher vs NPUs
πŸ“± Platforms 10+ Supported Cross-Platform

πŸ“‘ Table of Contents

πŸ—‚οΈ Click to expand/collapse

🎯 Official NCNN Resources

πŸ† Core Framework

πŸ”§ Main Repository

  • ⭐ Tencent/ncnn
    • Stars
    • 22k+ stars - Official framework
    • Mobile-optimized inference

πŸ“– Documentation

🐍 Python Integration


πŸ”₯ Latest YOLO Implementations (2024-2025)

πŸ… YOLOv11 (Latest - 2024)

YOLOv11 Performance Platform

πŸ“± Production-Ready Implementations

Project Platform Performance Description
πŸ“˜ Ultralytics Official All ⚑ Optimized Official NCNN export guide
βš™οΈ yolo11-ncnn C++ 48ms High-performance C++ impl
🎯 No Magic Ops All βœ… Clean Direct Ultralytics export
πŸ€– Android YOLOv11 Android πŸ“± Mobile Optimized for Android
πŸŽ₯ Real-time Demo Android πŸš€ Fast Live detection demo
πŸ€– ROS 2 Support ROS πŸ”§ Robotics YOLOv8/v9/v10/v11

πŸŽ–οΈ YOLOv10 & YOLOv9 (2024)

πŸ₯ˆ YOLOv8 & Earlier Versions

πŸ“¦ Click to expand YOLOv5-v8 implementations

🌟 Other YOLO Variants


🎯 Object Detection

🌟 NanoDet (Lightweight Detection)

⚑ Super fast and ultra-lightweight anchor-free detection

πŸ‘€ BlazeFace

🎁 General Detection


πŸ–ΌοΈ Image Classification

🧠 Classic Models

πŸ“Š Features

  • βœ… Lightweight architectures
  • ⚑ Fast inference
  • πŸ“± Mobile-optimized

βœ‚οΈ Image Segmentation

🎭 Portrait & Semantic Segmentation

Model Use Case Platform Stars
πŸ‘€ Portrait Seg Portrait Mobile
🎬 Video Matting Real-time Android
🎯 SAM Android Segment Anything Android πŸ†• 2024
πŸ₯ U-Net Medical/General All Classic
🎨 BiSeNet Semantic All SOTA

✨ Super Resolution & Image Enhancement

🌟 Real-ESRGAN & Waifu2x Family

Super Resolution Speed

🎨 Production-Ready Solutions

πŸ–ΌοΈ Real-ESRGAN Series
🎌 Waifu2x & Anime
  • πŸ’Ž Waifu2x GUI

    • Video/Image upscaling
    • Frame interpolation
    • Batch processing
  • 🎨 Original Waifu2x

    • Anime-style art
    • Noise reduction
    • Classic model

πŸ”¬ Advanced Models


πŸ‘€ Face & Biometrics

πŸ” Face Detection & Recognition

Model Size Speed Accuracy
πŸ† Ultra-Light 1MB ⚑⚑⚑ ⭐⭐⭐⭐
🎯 PFLD 2MB ⚑⚑ ⭐⭐⭐⭐⭐

πŸ‘οΈ Other Biometrics


πŸƒ Pose Estimation & Human Tracking

🎯 State-of-the-Art Models

Pose Mobile

🌟 Featured Models

πŸ”₯ RTMPose

  • Snapdragon 865
  • NCNN optimized
  • High accuracy

🎯 YOLOv8-Pose

  • Real-time
  • Multi-person
  • Edge devices

⚑ BlazePose

  • MediaPipe based
  • 33 keypoints
  • Mobile-first

πŸ“š Additional Models

  • πŸƒ MoveNet - Efficient single/multi-pose
  • 🎭 PoseNet - Classic pose estimation
  • πŸ“± MobileNet Pose - Lightweight variant

πŸ“Š Resources


πŸŽ™οΈ Speech Recognition & ASR

🎀 Sherpa-NCNN - Next-Gen Speech Recognition

ASR Offline Languages

πŸš€ Main Repository

✨ Key Features

πŸ“± Platform Support

  • βœ… iOS
  • βœ… Android
  • βœ… Linux
  • βœ… macOS
  • βœ… Windows
  • βœ… Raspberry Pi
  • βœ… VisionFive2
  • βœ… LicheePi4A

🌍 Language Support

  • πŸ‡¨πŸ‡³ Chinese
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ Japanese
  • πŸ‡°πŸ‡· Korean
  • πŸ‡­πŸ‡° Cantonese

🎯 Features

  • ⚑ Real-time recognition
  • πŸ”‡ Voice Activity Detection (VAD)
  • 🚫 No internet required
  • πŸŽ“ Next-gen Kaldi based

πŸ“– Documentation


πŸ“ OCR & Text Recognition

πŸ“– Lightweight OCR Solutions

OCR Platform

πŸ† Featured Projects

Project Languages Platform Highlights
πŸ‡¨πŸ‡³ chineseocr_lite Chinese All Super lightweight, vertical text
πŸ”§ ncnn_ocr Multi Mobile Profiling tool
🌐 WebAssembly OCR Multi Browser Browser-based

πŸ“Š Resources


🎬 Video Processing

πŸŽ₯ Frame Interpolation & Optical Flow

Video FPS

🌟 RIFE - Real-Time Frame Interpolation

  • ⚑ RIFE-ncnn-vulkan - Production-ready Vulkan implementation
  • πŸ“Š ECCV 2022 RIFE
    • Stars
    • Real-time interpolation
    • 60+ FPS output
    • Anime & video support

✨ Features

  • 🎯 Optical flow estimation
  • 🎬 Video frame interpolation
  • ⚑ GPU accelerated
  • πŸ“± Mobile deployment

🎨 Stable Diffusion & Generative Models

πŸ–ΌοΈ AI Art Generation on Mobile

Diffusion Mode

🎯 Production Implementations

🎨 Stable Diffusion NCNN

  • EdVince/SD-NCNN
  • βœ… txt2img support
  • βœ… img2img support
  • βœ… C++ implementation
  • πŸ“± Mobile-ready

πŸ–ŒοΈ Features

  • 🎯 512x512 generation
  • ⚑ Optimized inference
  • πŸ’Ύ Low memory usage
  • πŸ”₯ Vulkan acceleration

πŸ“š Reference


πŸ“¦ Model Collections & Zoo

πŸ—ƒοΈ Pre-trained Model Libraries

Models

πŸ† Curated Collections

Repository Models Guides Stars
🎁 ncnn-models 100+ βœ…
πŸ“¦ ncnn_models 50+ βœ…
πŸ›οΈ ncnn-assets Official βœ… Official
⭐ awesome-ncnn Curated βœ…

🌐 Platform Support

  • πŸ’» Windows, Mac, Linux
  • πŸ“± Android, iOS
  • 🌐 WebAssembly
  • πŸ“² Uni-app

πŸ“± Platform-Specific Deployment

πŸ€– Android

πŸ“± Click to expand Android resources

πŸ“š Comprehensive Guides

πŸ”§ Requirements

  • βœ… Android NDK
  • βœ… CMake 3.10+
  • βœ… OpenCV Android (optional)

🍎 iOS

πŸ“± Click to expand iOS resources

πŸ“š Swift Integration

  • πŸ”— C++ in Swift Guide

    • Bridging header setup
    • Framework integration
    • Best practices
  • 🎁 ncnn-swift

    • Swift wrapper
    • CocoaPods support
    • Sample apps

βš™οΈ Configuration

  • βœ… Xcode 12+
  • βœ… iOS 11+
  • βœ… Vulkan/Metal support

🌐 WebAssembly

🌐 Click to expand WASM resources

πŸš€ Features

  • βœ… Zero installation
  • βœ… Privacy-preserving
  • βœ… Cross-browser support

πŸ”§ OpenCV Integration

  • πŸ“· opencv-mobile
    • Minimal OpenCV build
    • NCNN optimized
    • Reduced size

βš™οΈ Optimization & Quantization

πŸš€ Performance Optimization

INT8 Speedup

🎯 INT8 Quantization

πŸ“š Official Resources

πŸ› οΈ Tools & Libraries

πŸ”§ Conversion Tools

πŸ“Š Benefits

  • ⚑ 4Γ— faster inference
  • πŸ’Ύ 4Γ— smaller models
  • πŸ“± Lower memory usage
  • πŸ”‹ Better battery life

πŸŒ‹ Vulkan Optimization

πŸ“š Resources

✨ Key Features

  • βœ… GPU acceleration
  • βœ… Cross-platform
  • βœ… Memory optimization
  • βœ… Pipeline caching

πŸ› οΈ Tools & Utilities

πŸ”„ Model Conversion & Editing

πŸ”§ Conversion Tools

🎨 Visual Tools

  • πŸ–ΌοΈ ncnn-editor

    • Visual model editing
    • Graph visualization
    • Debug support
  • πŸ“Š ncnn-small-board

    • Model visualization
    • Layer inspection
    • Performance profiling

πŸ”— Inference Helpers

πŸ—οΈ Build Tools

  • πŸ”¨ CMake Examples
    • CMake integration
    • Cross-platform builds
    • Modern CMake

πŸ“š Tutorials & Documentation

πŸ“– Official Documentation

Docs Languages

πŸ‡ΊπŸ‡Έ English Resources

πŸ‡¨πŸ‡³ Chinese Resources


πŸ“Š Benchmarks & Performance

⚑ Official Benchmark Results (Dec 2024)

Performance

πŸ† Key Metrics

Metric NCNN Comparison Improvement
⚑ Latency Low vs GPU 58.54% ↓
πŸš„ LLM Inference Fast vs Baseline 3.2Γ— ↑
πŸ’ͺ Throughput High vs NPU 2Γ— ↑
πŸ“± Platforms 10+ Supported

πŸ“Š Benchmark Resources

πŸ†š Framework Comparisons

πŸ”¬ embedded-ai.bench

πŸ“± Mobile AI Bench

⚑ vs TensorRT


πŸ“„ Research Papers & Articles (2024-2025)

πŸ“š Latest Academic Research

Research

🎯 YOLO Family Comparisons

πŸ“Š Performance Studies

πŸ”₯ Application Papers

  • 🚨 Smoke/Fire Detection

    • YOLOv9/v10/v11
    • Real-world testing
    • Safety applications
  • 🌱 Weed Detection - Agricultural AI

  • πŸ“„ Document Analysis - OCR pipelines

  • πŸ–ΌοΈ Stamp Detection - Document processing

πŸš€ Mobile AI Trends


🀝 Contributing

We welcome contributions! πŸŽ‰

How to contribute:

  • ⭐ Star this repository
  • 🍴 Fork and submit PRs
  • πŸ› Report issues
  • πŸ’‘ Suggest new resources

πŸ“œ License

This collection is provided as-is for educational and reference purposes.

License: MIT


⏰ Last Updated

πŸ—“οΈ January 2025 - Continuously updated with the latest NCNN projects and resources


🌟 Star History

Star History Chart



Made with ❀️ for the NCNN Community

⬆ Back to Top

Releases

No releases published

Packages

 
 
 

Contributors