An open API service indexing awesome lists of open source software.

https://github.com/jahongir7174/yolov8-onnx

YOLOv8 inference using ONNX Runtime
https://github.com/jahongir7174/yolov8-onnx

object-detection onnx onnxruntime onnxruntime-gpu opencv-python python yolov8

Last synced: 3 months ago
JSON representation

YOLOv8 inference using ONNX Runtime

Awesome Lists containing this project

README

        

YOLOv8 inference using ONNX Runtime

### Installation

```
conda create -n ONNX python=3.8.10
conda activate ONNX
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia
pip install opencv-python
pip install onnx
pip install onnxsim
pip install onnxruntime-gpu
```

### Train

* Follow [YOLOv8](https://github.com/jahongir7174/YOLOv8-pt) for training

### Export to ONNX

* Configure your model path in `main.py` for exporting
* Run `python main.py --export`

### Test

* Configure your exported onnx model path and image path in `main.py` for testing
* Run `python main.py --test` for testing

#### Reference

* https://github.com/jahongir7174/YOLOv8-pt