Coder Social home page Coder Social logo

hyuto / yolov8-seg-tfjs Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 5.0 14.03 MB

YOLOv8 Segmentation Right in The Browser Using Tensorflow.js

Home Page: https://hyuto.github.io/yolov8-seg-tfjs/

HTML 2.07% JavaScript 84.44% CSS 13.49%
yolov8 object-segmentation react tensorflowjs vite webapp

yolov8-seg-tfjs's Introduction

Object Segmentation Application Using YOLOv8 and Tensorflow.js

love tensorflow.js


โš ๏ธ Low performance on doing video processing, need to be improved.

Object Segmentation application right in your browser. Serving YOLOv8-Seg in browser using tensorflow.js with webgl backend.

TO DO

  1. Readable code
  2. Improve performance

Setup

git clone https://github.com/Hyuto/yolov8-seg-tfjs.git
cd yolov8-seg-tfjs
yarn install #Install dependencies

Scripts

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

Model

YOLOv8n-Seg model converted to tensorflow.js.

used model : yolov8n-seg
size       : 14 Mb

Reference

yolov8-seg-tfjs's People

Contributors

hyuto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

yolov8-seg-tfjs's Issues

Failed to run when it is a single class

Hi Hyuto,

Thanks for the awesome job. I would like to highlight an issue I faced

const [scores, classes] = tf.tidy(() => {
    const rawScores = transRes.slice([0, 4], [-1, numClass]).squeeze(); // [n, 1]
    return [rawScores.max(1), rawScores.argMax(1)];
  }); // get scores and classes

when there is only 1 class, the above code will fail.

Would really appreciate if you can help fix it.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.