File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,18 @@ int main(int argc, char *argv[]) {
8080## Quick Setup 👀
8181
8282To quickly setup `lite.ai.toolkit`, you can follow the `CMakeLists.txt` listed as belows. 👇👀
83+
84+ ```cmake
85+ set(lite.ai.toolkit_DIR YOUR-PATH-TO/lite.ai.toolkit/build/install)
86+ find_package(lite.ai.toolkit REQUIRED PATHS ${lite.ai.toolkit_DIR})
87+ add_executable(lite_yolov5 test_lite_yolov5.cpp)
88+ target_link_libraries(lite_yolov5 ${lite.ai.toolkit_LIBS})
89+ ```
90+
91+ <details >
92+ <summary > 🔑️ Check the output log!Click here! </summary >
93+
94+ - setup CMakeLists.txt
8395``` cmake
8496cmake_minimum_required(VERSION 3.10)
8597project(lite_yolov5)
@@ -94,7 +106,12 @@ endif()
94106add_executable(lite_yolov5 test_lite_yolov5.cpp)
95107target_link_libraries(lite_yolov5 ${lite.ai.toolkit_LIBS})
96108```
97- log output:
109+ - build example
110+
111+ ``` bash
112+ mkdir build && cd build && cmake .. && make -j1
113+ ```
114+ - run binary:
98115``` bash
99116./lite_yolov5
100117LITEORT_DEBUG LogId: ../examples/hub/onnx/cv/yolov5s.onnx
@@ -118,6 +135,8 @@ Output: 3 Name: output4 Dim: 4 :85
118135detected num_anchors: 25200
119136generate_bboxes num: 48
120137```
138+ </details >
139+
121140<div id =" lite.ai.toolkit-Supported-Models-Matrix " ></div >
122141<details >
123142<summary > 🔑️ Supported Models Matrix!Click here! </summary >
You can’t perform that action at this time.
0 commit comments