npm install --save yolov5js
Want to use yolov5js in your project but don't know how? Take a peek at our sample React app or run it in codesandbox.
# clone YOLOv5 repository
git clone https://github.com/ultralytics/yolov5.git
cd yolov5
# create python virtual environment [recommended]
virtualenv venv
source venv/bin/activate
# install dependencies
pip install -r requirements.txt
pip install tensorflowjs
# convert model to tensorflow.js format
python export.py --weights yolov5s.pt --include tfjs
Use and share pretrained YOLOv5 tensorflow.js models with yolov5.js-zoo.
Our proper documentation are still under construction 🚧. We are working on it really hard.
Kudos to ultralytics team as well as all other open-source contributors for building YOLOv5 project, and making it all possible.
Project is freely distributable under the terms of the MIT license.