{"id":13342977,"url":"https://github.com/zpye/SimpleInfer","last_synced_at":"2025-03-12T03:30:44.992Z","repository":{"id":158345745,"uuid":"615436308","full_name":"zpye/SimpleInfer","owner":"zpye","description":"A simple neural network inference framework","archived":false,"fork":false,"pushed_at":"2023-08-01T03:00:20.000Z","size":2259,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-24T13:58:58.127Z","etag":null,"topics":["ai-framework","cpp","deep-learning","inference-engine","neural-network","xmake"],"latest_commit_sha":null,"homepage":"https://github.com/zpye/SimpleInfer","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zpye.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-17T17:31:35.000Z","updated_at":"2024-10-04T02:16:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"546d09ef-6de6-479a-8453-9d1d4b920f26","html_url":"https://github.com/zpye/SimpleInfer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpye%2FSimpleInfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpye%2FSimpleInfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpye%2FSimpleInfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpye%2FSimpleInfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zpye","download_url":"https://codeload.github.com/zpye/SimpleInfer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243150694,"owners_count":20244446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-framework","cpp","deep-learning","inference-engine","neural-network","xmake"],"created_at":"2024-07-29T19:30:09.130Z","updated_at":"2025-03-12T03:30:44.984Z","avatar_url":"https://github.com/zpye.png","language":"C++","readme":"# SimpleInfer ![](https://github.com/zpye/SimpleInfer/workflows/xmake/badge.svg)\n\nSimpleInfer is a neural network inference framework based on [KuiperInfer](https://github.com/zjhellofss/KuiperInfer).\n\n## Build\n\nSimpleInfer uses [xmake](https://xmake.io/#/) to build library and tests.\n\n```shell\ngit clone --recursive https://github.com/zpye/SimpleInfer.git\ncd SimpleInfer\nxmake config -a x64 -m release\nxmake -w --all\n```\n## Run\n\nAfter building successfully, run test-yolo to check.\n\n```shell\nxmake run test-yolo\n```\n\n## YOLO Result\n\nHere are visualized results of YOLO detection.\n\n![result_31.jpg](imgs/result_31.jpg)\n\n![result_bus.jpg](imgs/result_bus.jpg)\n\n![result_car.jpg](imgs/result_car.jpg)\n\n![result_zidane.jpg](imgs/result_zidane.jpg)\n\n## Working With Python\n\n1. Set environment `PYTHON_ROOT` where `python` binary exists, pybind11 needs `${PYTHON_ROOT}/include` and `${PYTHON_ROOT}/libs` for compiling and linking.\n\n2. Set `--build_python=true` after `xmake config` and build: \n\n```shell\nxmake config -a x64 -m release --build_python=true\nxmake -w --all\n```\n\n3. install package by pip:\n\n```shell\npip install build/python/\n```\n\n4. run python test:\n\n```shell\npython test/test_python/test_model.py\n```\n\n## (Experimental) Halide Programming\n\nNote: Only upsample nearest layer has an implementation of Halide.\n\n1. Set environment `HALIDE_ROOT` for Halide installation path, using release packages from [https://github.com/halide/Halide/releases](https://github.com/halide/Halide/releases) is a good choice.\n\n2. Set `--halide=true` after `xmake config` and build: \n\n```shell\nxmake config -a x64 -m release --halide=true\nxmake build halide_layers\nxmake -w --all\n```\n\n## Reference\n\n[KuiperInfer](https://github.com/zjhellofss/KuiperInfer) -\u003e basic framework\n\n[ncnn](https://github.com/Tencent/ncnn), [simpleocv](https://github.com/zpye/simpleocv) -\u003e pnnx ir, simpleocv and mat-pixel operations\n\n[Eigen](https://gitlab.com/libeigen/eigen), [tensorflow](https://github.com/tensorflow/tensorflow) -\u003e Eigen tensor\n\n[abseil](https://github.com/abseil/abseil-cpp) -\u003e logging, string format operations\n\n[CGraph](https://github.com/ChunelFeng/CGraph) -\u003e graph based pipeline\n\n[highway](https://github.com/google/highway), [Simd](https://github.com/ermig1979/Simd) -\u003e SIMD, GEMM, Winograd, parallel\n\n[benchmark](https://github.com/google/benchmark), [Catch2](https://github.com/catchorg/Catch2) -\u003e benchmark and unit tests\n\n[pybind11](https://github.com/pybind/pybind11) -\u003e python bindings of c++\n\n[stb](https://github.com/nothings/stb) -\u003e image loader and image writer\n\n[Halide](https://github.com/halide/Halide) -\u003e Halide programming\n\n[tmp](https://github.com/zjhellofss/tmp) -\u003e pnnx models\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpye%2FSimpleInfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzpye%2FSimpleInfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpye%2FSimpleInfer/lists"}