Skip to content

wndfly/YOLOv8-Pose-tfjs

 
 

Repository files navigation

Pose Detection using YOLOv8 and Tensorflow.js

Node.js CI love tensorflow.js


Pose Detection application right in your browser. Serving YOLOv8 in browser using tensorflow.js with webgl backend.

Setup

git clone https://github.com/FatemeZamanian/YOLOv8-Pose-tfjs.git
cd yolov8-pose-tfjs
yarn install #Install dependencies

Scripts

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

Model

YOLOv8n model converted to tensorflow.js.

used model : yolov8n-pose
size       : 6.8 Mb

Use another model

Use another YOLOv8-pose model.

  1. Export YOLOv8-pose model to tfjs format. Read more on the official documentation

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

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

    ...
    // model configs
    const modelName = "yolov8*-pose"; // change to new model name
    ...
  4. Done! 😊

Note: Custom Trained YOLOv8 Models

Please update src/utils/labels.json with your new classes.

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.4%
  • CSS 12.9%
  • HTML 2.0%
  • Python 0.7%