Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of instructions for using custom models in Yolov8 [README.md] #1590

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion yolov8/README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ The tensorrt code is derived from [xiaocao-tian/yolov8_tensorrt](https://github.
Currently, we support yolov8

- For yolov8 , download .pt from [https://github.com/ultralytics/assets/releases](https://github.com/ultralytics/assets/releases), then follow how-to-run in current page.

## Custom models

- Use ultralytics<=8.2.103 for training.
felipemasuda marked this conversation as resolved.
Show resolved Hide resolved
- Update kNumClass in [include/config.h](./include/config.h) to the number of classes in the custom model

## Config

- Choose the model n/s/m/l/x/n2/s2/m2/l2/x2/n6/s6/m6/l6/x6 from command line arguments.
Expand Down Expand Up @@ -60,7 +66,6 @@ python gen_wts.py -w yolov5nu.pt -o yolov5nu.wts -t detect
### Detection
```
cd {tensorrtx}/yolov8/
// update kNumClass in config.h if your model is trained on custom dataset
mkdir build
cd build
cp {ultralytics}/ultralytics/yolov8.wts {tensorrtx}/yolov8/build
Expand Down