Skip to content

Commit 0bb1739

Browse files
committed
docs: Updated example docs
1 parent 67e61c1 commit 0bb1739

File tree

10 files changed

+20
-30
lines changed

10 files changed

+20
-30
lines changed

examples/classify/README.en.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ trtexec --onnx=models/yolo11n-cls.onnx --saveEngine=models/yolo11n-cls.engine --
7575
xmake -P . -r
7676
7777
# Compile using cmake
78-
mkdir -p build && cd build
79-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
80-
cmake --build . -j8 --config Release
78+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
79+
cmake --build build -j8 --config Release
8180
```
8281

8382
After compilation, the executable file will be generated in the `bin` folder of the project root directory.

examples/classify/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ trtexec --onnx=models/yolo11n-cls.onnx --saveEngine=models/yolo11n-cls.engine --
7575
xmake -P . -r
7676
7777
# 使用 cmake 编译
78-
mkdir -p build && cd build
79-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
80-
cmake --build . -j8 --config Release
78+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
79+
cmake --build build -j8 --config Release
8180
```
8281

8382
编译完成后,可执行文件将生成在项目根目录的 `bin` 文件夹中。

examples/detect/README.en.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ trtexec --onnx=models/yolo11n.onnx --saveEngine=models/yolo11n.engine --fp16
7575
xmake -P . -r
7676
7777
# Compile using cmake
78-
mkdir -p build && cd build
79-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
80-
cmake --build . -j8 --config Release
78+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
79+
cmake --build build -j8 --config Release
8180
```
8281

8382
After compilation, the executable file will be generated in the `bin` folder of the project root directory.

examples/detect/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ trtexec --onnx=models/yolo11n.onnx --saveEngine=models/yolo11n.engine --fp16
7575
xmake -P . -r
7676
7777
# 使用 cmake 编译
78-
mkdir -p build && cd build
79-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
80-
cmake --build . -j8 --config Release
78+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
79+
cmake --build build -j8 --config Release
8180
```
8281

8382
编译完成后,可执行文件将生成在项目根目录的 `bin` 文件夹中。

examples/obb/README.en.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ trtexec --onnx=models/yolo11n-obb.onnx --saveEngine=models/yolo11n-obb.engine --
7777
xmake -P . -r
7878
7979
# Compile using cmake
80-
mkdir -p build && cd build
81-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
82-
cmake --build . -j8 --config Release
80+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
81+
cmake --build build -j8 --config Release
8382
```
8483

8584
After compilation, the executable file will be generated in the `bin` folder of the project root directory.

examples/obb/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ trtexec --onnx=models/yolo11n-obb.onnx --saveEngine=models/yolo11n-obb.engine --
7575
xmake -P . -r
7676
7777
# 使用 cmake 编译
78-
mkdir -p build && cd build
79-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
80-
cmake --build . -j8 --config Release
78+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
79+
cmake --build build -j8 --config Release
8180
```
8281

8382
编译完成后,可执行文件将生成在项目根目录的 `bin` 文件夹中。

examples/pose/README.en.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ trtexec --onnx=models/yolo11n-pose.onnx --saveEngine=models/yolo11n-pose.engine
7575
xmake -P . -r
7676
7777
# Compile using cmake
78-
mkdir -p build && cd build
79-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
80-
cmake --build . -j8 --config Release
78+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
79+
cmake --build build -j8 --config Release
8180
```
8281

8382
After compilation, the executable file will be generated in the `bin` folder of the project root directory.

examples/pose/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ trtexec --onnx=models/yolo11n-pose.onnx --saveEngine=models/yolo11n-pose.engine
7676
xmake -P . -r
7777
7878
# 使用 cmake 编译
79-
mkdir -p build && cd build
80-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
81-
cmake --build . -j8 --config Release
79+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
80+
cmake --build build -j8 --config Release
8281
```
8382

8483
编译完成后,可执行文件将生成在项目根目录的 `bin` 文件夹中。

examples/segment/README.en.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ trtexec --onnx=models/yolo11n-seg.onnx --saveEngine=models/yolo11n-seg.engine --
7575
xmake -P . -r
7676
7777
# Compile using cmake
78-
mkdir -p build && cd build
79-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
80-
cmake --build . -j8 --config Release
78+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
79+
cmake --build build -j8 --config Release
8180
```
8281

8382
After compilation, the executable file will be generated in the `bin` folder of the project root directory.

examples/segment/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ trtexec --onnx=models/yolo11n-seg.onnx --saveEngine=models/yolo11n-seg.engine --
7575
xmake -P . -r
7676
7777
# 使用 cmake 编译
78-
mkdir -p build && cd build
79-
cmake -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO" ..
80-
cmake --build . -j8 --config Release
78+
cmake -S . -B build -DTENSORRT_PATH="/path/to/your/TensorRT" -DDEPLOY_PATH="/path/to/your/TensorRT-YOLO"
79+
cmake --build build -j8 --config Release
8180
```
8281

8382
编译完成后,可执行文件将生成在项目根目录的 `bin` 文件夹中。

0 commit comments

Comments
 (0)