AiDB Qt demo.
- Compile AiDB library(custom backend)
git clone https://github.com/TalkUHulk/ai.deploy.box.git
cd ai.deploy.box
mkdir build && cd build
cmake -DENGINE_ORT=ON -DENGINE_MNN=ON -DENGINE_NCNN=ON -DENGINE_TNN=OFF -DENGINE_OPV=OFF -DENGINE_PPLite=OFF -DENGINE_NCNN_WASM=OFF -DBUILD_SAMPLE=OFF ../
make -j8
generate libAiDB.so in ai.deploy.box/build/source/
- Clone this rep
git clone https://github.com/TalkUHulk/aidb_qt_demo.git
-
Prepare files demo need.
-
place
libAiDB.so
in aidb/lib -
place AIDBData.h AIDBDefine.h Interpreter.h Utility.h face_align.h td_obj.h in aidb/include
-
download models and unzip in aidb_qt_demo that named models, and place ai.deploy.box/config 、ai.deploy.box/extra in config 、extra
-
Compile Qt Demo
cd ai.deploy.box
mkdir build && cd build
cmake .. && make -j2
folder structure
aidb_qt_demo/
├── main.cpp
├── themes
├── resource
├── src
├── 3rdparty
├── aidb
├── include
├── lib
├── config
├── mnn_config.yaml
├── ncnn_config.yaml
.
.
.
└── onnx_config.yaml
├── models
├── onnx
├── ncnn
├── mnn
├── tnn
├── paddle
└── openvino
.
.
.
└── extra
├── ppocr_keys_v1.txt
.
.
└── imagenet-1k-id.txt