# 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 YOLOv5.js npm package to run models on your website.
Convert your YOLOv5 model to tensorflow.js, create pull request and allow others to run your AI in the browser.
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.