Update ReadMe

pull/2/head
triple-Mu 2 years ago
parent 8e16a15174
commit 71e92398a0
  1. 18
      README.md

@ -12,20 +12,20 @@
pip install -r requirement.txt pip install -r requirement.txt
``` ```
3. (optional) Install `ultralytics YOLOv8` package for TensorRT API building. 3. (optional) Install [`ultralytics`](https://github.com/ultralytics/ultralytics) package for TensorRT API building.
``` shell ``` shell
pip install -i https://test.pypi.org/simple/ ultralytics pip install ultralytics
``` ```
You can download pretrained pytorch model by: You can download pretrained pytorch model by:
``` shell ``` shell
wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt wget https://github.com/ultralytics/ultralytics/releases/download/v8.0.0/yolov8n.pt
wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8s.pt wget https://github.com/ultralytics/ultralytics/releases/download/v8.0.0/yolov8s.pt
wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8m.pt wget https://github.com/ultralytics/ultralytics/releases/download/v8.0.0/yolov8m.pt
wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8l.pt wget https://github.com/ultralytics/ultralytics/releases/download/v8.0.0/yolov8l.pt
wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8x.pt wget https://github.com/ultralytics/ultralytics/releases/download/v8.0.0/yolov8x.pt
``` ```
# Build TensorRT engine by ONNX # Build TensorRT engine by ONNX
@ -63,12 +63,10 @@ python build.py \
#### Description of all arguments #### Description of all arguments
- `--weights` : The ONNX model you download. - `--weights` : The ONNX model you download.
- `--iou-thres` : IOU threshold for NMS plugin. - `--iou-thres` : IOU threshold for NMS plugin.
- `--conf-thres` : Confidence threshold for NMS plugin. - `--conf-thres` : Confidence threshold for NMS plugin.
- `--topk` : Max number of detection bboxes. - `--topk` : Max number of detection bboxes.
- `--fp16` : Whether to export half-precision engine. - `--fp16` : Whether to export half-precision engine.
- `--device` : The CUDA deivce you export engine . - `--device` : The CUDA deivce you export engine .
You can modify `iou-thres` `conf-thres` `topk` by yourself. You can modify `iou-thres` `conf-thres` `topk` by yourself.
@ -140,7 +138,7 @@ You can infer with c++ in [`csrc/end2end`](csrc/end2end) .
Build: Build:
Please set you own librarys in [`CMakeLists.txt`](csrc/end2end/CMakeLists.txt) and modify you own config in [`yolov8.hpp`](csrc/end2end/yolov8.hpp) such as `classes names` and `colors` . Please set you own librarys in [`CMakeLists.txt`](csrc/end2end/CMakeLists.txt) and modify you own config in [`config.h`](csrc/end2end/config.h) such as `CLASS_NAMES` and `COLORS`.
``` shell ``` shell
export root=${PWD} export root=${PWD}

Loading…
Cancel
Save