GithubHelp home page GithubHelp logo

lbq779660843 / yolov5_ncnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cmdbug/yolov5_ncnn

0.0 0.0 0.0 261.25 MB

🍅 Deploy NCNN on mobile phones. Support Android and iOS.

License: GNU General Public License v3.0

Java 0.98% CMake 0.05% C++ 92.39% C 4.67% Objective-C 0.65% Objective-C++ 1.25%

yolov5_ncnn's Introduction

中文说明

🚀 If it helps you, click a star! ⭐

Ncnn deployment on mobile,support:YOLOv5s,YOLOv4-tiny,MobileNetV2-YOLOv3-nano,Simple-Pose,Yolact,ChineseOCR-lite,ENet,Landmark106,DBFace,MBNv2-FCN and MBNv3-Seg-small on camera.

iOS:

  • Xcode 11.5
  • macOS 10.15.4
  • iPhone 6sp 13.5.1

Android:

  • Android Studio 4.0
  • Win10 1909
  • Meizu 16x 8.1.0 (CPU:Qualcomm 710 GPU:Adreno 616)

Android has added permission requests, but if it still crashes, please manually confirm whether the relevant permissions are allowed.

iOS

Select the model to be tested directly on the interface.

Android

Select the model to be tested directly on the interface.

Models

model android iOS from
YOLOv5s yes yes Github
YOLOv4-tiny yes yes Github
YOLOv3-nano yes yes Github
YOLOv5s_custom_op yes yes zhihu
NanoDet yes yes Github
YOLO-Fastest-xl yes yes Github
Simple-Pose yes yes Github
Yolact yes yes Github zhihu
ChineseOCR_lite yes cancel Github zhihu
ENet bug cancel Github
Landmark106 yes yes Github
DBFace yes yes Github
MBNv2-FCN yes yes Github
MBNv3-Seg-small yes yes Github

iOS:

  • Copy .param and .bin from "android_YOLOV5_NCNN\app\src\main\assets" to "iOS_YOLOv5NCNN\YOLOv5NCNN\res"
  • If it prompts that net.h can't be found, you need to download it from the ncnn official website or compile .framework yourself and replace it in the project. If opencv2.framework is useful, you need to download it again and replace it in the project.
  • The default library used by iOS does not include vulkan and bitcode.

Android:

  • Due to factors such as mobile phone performance and image size, FPS varies greatly on different mobile phones. This project mainly tests the use of the NCNN framework. For the conversion of specific models, you can go to the NCNN official to view the conversion tutorial.
  • Because the opencv library is too large, only arm64-v8a/armeabi-v7a is reserved. If you need other versions, go to the official download.
  • ncnn temporarily uses the vulkan version, and acceleration needs to be turned on before loading, which is not turned on in this project. If you want to use the ncnn version, you need to modify the CMakeLists.txt configuration.
  • Different AS versions may have various problems with compilation. If the compilation error cannot be solved, it is recommended to use AS4.0 or higher to try.

Convert locally(Will not upload model): [xxxx -> ncnn] https://convertmodel.com/

Minimal OpenCV:https://github.com/nihui/opencv-mobile

🎨 Screenshot

Android

mbnv2-yolov3-nano yolov4-tiny yolov5s
simple_pose yolact chineseocr_lite_01
chineseocr_lite_02 ENet yoloface500k-landmark106
dbface mbnv2_fcn mbnv3_seg_small
yolov5s_custom_op nanodet yolo-fastest-xl

iOS

mbnv2-yolov3-nano yolov4-tiny yolov5s
yolov5s_custom_op nanodet yolo-fastest-xl
mbnv2_fcn mbnv3_seg_small simple_pose
yolact yoloface500k-landmark106 dbface

Thanks:

yolov5_ncnn's People

Contributors

cmdbug avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.