百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Y

yolov8-onnxruntime-web

> 前端框架
开源

使用 onnxruntime-web 在浏览器中运行 YOLOv8

193 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

使用 onnxruntime-web 在浏览器中运行 YOLOv8

YOLOv8 with onnxruntime-web


Object Detection application right in your browser. Serving YOLOv8 in browser using onnxruntime-web with wasm backend.

Setup

bash
git clone https://github.com/Hyuto/yolov8-onnxruntime-web.git
cd yolov8-onnxruntime-web
yarn install # Install dependencies

Scripts

bash
yarn start # Start dev server
yarn build # Build for productions

Models

Main Model

YOLOv8n model converted to onnx.

used model : yolov8n.onnx
size       : 13 Mb

NMS

ONNX model to perform NMS operator [CUSTOM].

Use another model

:warning: Size Overload : used YOLOv8n model in this repo is the smallest with size of 13 MB, so other models is definitely bigger than this which can cause memory problems on browser.

Use another YOLOv8 model.

  1. Export YOLOv8 model to onnx format. Read more on the official documentation

    python
    from ultralytics import YOLO
    
    # Load a model
    model = YOLO("yolov8n.pt")  # load an official model
    
    # Export the model
    model.export(format="onnx")
  2. Copy yolov8*.onnx to ./public/model

  3. Update modelName in App.jsx to new model name

    javascript
    ...
    // configs
    const modelName = "yolov8*.onnx"; // change to new model name
    const modelInputShape = [1, 3, 640, 640];
    const topk = 100;
    const iouThreshold = 0.4;
    const scoreThreshold = 0.2;
    ...
  4. Done!

Note: Custom Trained YOLOv8 Models

Please update src/utils/labels.json with your custom YOLOv8 classes.

Reference

  • https://github.com/ultralytics/ultralytics

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptjavascriptobject-detectiononnxruntimeopencvjs

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架