mirror of
https://github.com/AndreyGermanov/yolov8_onnx_go.git
synced 2026-04-22 23:37:15 +08:00
Readme change
This commit is contained in:
@@ -7,28 +7,16 @@ This is a source code for a ["How to create YOLOv8-based object detection web se
|
||||
|
||||
## Install
|
||||
|
||||
* Clone this repository: `git clone git@github.com:AndreyGermanov/yolov8_onnx_nodejs.git`
|
||||
* Clone this repository: `git clone git@github.com:AndreyGermanov/yolov8_onnx_go.git`
|
||||
* Go to the root of cloned repository
|
||||
* Install dependencies by running `go get`
|
||||
* Open the `main.go`, find line `ort.SetSharedLibraryPath(...)` and specify the path to the ONNX runtime library path in it.*
|
||||
|
||||
*If you do not have installed `ONNX runtime`, then you can manually download it for
|
||||
your operating system from [this repository](https://github.com/microsoft/onnxruntime/releases),
|
||||
extract archive to some folder and then specify a path to a main library path:
|
||||
subfolder:
|
||||
|
||||
* `lib/libonnxruntime.so` - for Linux
|
||||
* `lib/libonnxruntime.dylib` - for MacOS
|
||||
* `lib/onnxruntime.dll` - for Windows
|
||||
|
||||
This repository contains the ONNX Runtime library for Linux only.
|
||||
|
||||
## Run
|
||||
|
||||
Execute:
|
||||
|
||||
```
|
||||
go run main.go
|
||||
go run .
|
||||
```
|
||||
|
||||
It will start a webserver on http://localhost:8080. Use any web browser to open the web interface.
|
||||
|
||||
Reference in New Issue
Block a user