Giter Club home page Giter Club logo

simpleinfer's Introduction

SimpleInfer

SimpleInfer is a neural network inference framework based on KuiperInfer.

Build

SimpleInfer uses xmake to build library and tests.

git clone --recursive https://github.com/zpye/SimpleInfer.git
cd SimpleInfer
xmake config -a x64 -m release
xmake -w --all

Run

After building successfully, run test-yolo to check.

xmake run test-yolo

YOLO Result

Here are visualized results of YOLO detection.

result_31.jpg

result_bus.jpg

result_car.jpg

result_zidane.jpg

Working With Python

  1. Set environment PYTHON_ROOT where python binary exists, pybind11 needs ${PYTHON_ROOT}/include and ${PYTHON_ROOT}/libs for compiling and linking.

  2. Set --build_python=true after xmake config and build:

xmake config -a x64 -m release --build_python=true
xmake -w --all
  1. install package by pip:
pip install build/python/
  1. run python test:
python test/test_python/test_model.py

(Experimental) Halide Programming

Note: Only upsample nearest layer has an implementation of Halide.

  1. Set environment HALIDE_ROOT for Halide installation path, using release packages from https://github.com/halide/Halide/releases is a good choice.

  2. Set --halide=true after xmake config and build:

xmake config -a x64 -m release --halide=true
xmake build halide_layers
xmake -w --all

Reference

KuiperInfer -> basic framework

ncnn, simpleocv -> pnnx ir, simpleocv and mat-pixel operations

Eigen, tensorflow -> Eigen tensor

abseil -> logging, string format operations

CGraph -> graph based pipeline

highway, Simd -> SIMD, GEMM, Winograd, parallel

benchmark, Catch2 -> benchmark and unit tests

pybind11 -> python bindings of c++

stb -> image loader and image writer

Halide -> Halide programming

tmp -> pnnx models

simpleinfer's People

Contributors

zpye 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.