Skip to content

Commit d46050d

Browse files
authored
Update README.md
1 parent 7d29c0e commit d46050d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,20 @@ add_executable(lite_yolov5 test_lite_yolov5.cpp)
7979
target_link_libraries(lite_yolov5 ${lite.ai.toolkit_LIBS})
8080
```
8181

82-
## Mixed with MNN or ORT
83-
The goal of lite.ai.toolkit is not to abstract on top of MNN and ORT. So, you can use lite.ai.toolkit mixed with MNN(-DENABLE_MNN=ON) or ORT. The lite.ai.toolkit installation package contains complete MNN and ORT. The workflow may looks like:
82+
## Mixed with MNN or ONNXRuntime 👇👇
83+
The goal of lite.ai.toolkit is not to abstract on top of MNN and ONNXRuntime. So, you can use lite.ai.toolkit mixed with MNN(`-DENABLE_MNN=ON, default OFF`) or ONNXRuntime(`-DENABLE_ONNXRUNTIME=ON, default ON`). The lite.ai.toolkit installation package contains complete MNN and ONNXRuntime. The workflow may looks like:
8484
```C++
8585
#include "lite/lite.h"
8686
// 0. use yolov5 from lite.ai.toolkit to detect objs.
8787
auto *yolov5 = new lite::cv::detection::YoloV5(onnx_path);
88-
// 1. use naive OnnxRuntime or MNN to implement classfier.
88+
// 1. use OnnxRuntime or MNN to implement your own classfier.
8989
interpreter = std::shared_ptr<MNN::Interpreter>(MNN::Interpreter::createFromFile(mnn_path));
90-
// or: ort_session = new Ort::Session(ort_env, onnx_path, session_options);
90+
// or: session = new Ort::Session(ort_env, onnx_path, session_options);
9191
classfier = interpreter->createSession(schedule_config);
92-
// 2. classify the detected objs use your own classfier ...
92+
// 2. then, classify the detected objs use your own classfier ...
9393
```
94-
The included headers of MNN and ORT can be found at [mnn_config.h](./lite/mnn/core/mnn_config.h) and [ort_config.h](./lite/ort/core/ort_config.h).
94+
The included headers of MNN and ONNXRuntime can be found at [mnn_config.h](./lite/mnn/core/mnn_config.h) and [ort_config.h](./lite/ort/core/ort_config.h).
95+
9596
<details>
9697
<summary> 🔑️ Check the output log!Click here! </summary>
9798

0 commit comments

Comments
 (0)