Skip to content

Commit 3ac3731

Browse files
authored
Update README.md
1 parent 0962043 commit 3ac3731

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ int main(int argc, char *argv[]) {
8080
## Quick Setup 👀
8181
8282
To 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
8496
cmake_minimum_required(VERSION 3.10)
8597
project(lite_yolov5)
@@ -94,7 +106,12 @@ endif()
94106
add_executable(lite_yolov5 test_lite_yolov5.cpp)
95107
target_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
100117
LITEORT_DEBUG LogId: ../examples/hub/onnx/cv/yolov5s.onnx
@@ -118,6 +135,8 @@ Output: 3 Name: output4 Dim: 4 :85
118135
detected num_anchors: 25200
119136
generate_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>

0 commit comments

Comments
 (0)