{"id":15650160,"url":"https://github.com/skalskip/yolov5js","last_synced_at":"2025-04-30T17:21:50.841Z","repository":{"id":98185687,"uuid":"440285900","full_name":"SkalskiP/yolov5js","owner":"SkalskiP","description":"Effortless YOLOv5 javascript deployment","archived":false,"fork":false,"pushed_at":"2022-10-03T14:07:06.000Z","size":26648,"stargazers_count":54,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T23:46:13.517Z","etag":null,"topics":["ai","deep-learning","deep-neural-networks","javascript","machine-learning","tensorflowjs","typescript","yolo","yolov5"],"latest_commit_sha":null,"homepage":"https://skalskip.github.io/yolov5js","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SkalskiP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-20T19:34:25.000Z","updated_at":"2025-04-03T14:44:58.000Z","dependencies_parsed_at":"2023-06-29T17:45:50.900Z","dependency_job_id":null,"html_url":"https://github.com/SkalskiP/yolov5js","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkalskiP%2Fyolov5js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkalskiP%2Fyolov5js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkalskiP%2Fyolov5js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkalskiP%2Fyolov5js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkalskiP","download_url":"https://codeload.github.com/SkalskiP/yolov5js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251749119,"owners_count":21637457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","deep-learning","deep-neural-networks","javascript","machine-learning","tensorflowjs","typescript","yolo","yolov5"],"created_at":"2024-10-03T12:33:37.273Z","updated_at":"2025-04-30T17:21:50.814Z","avatar_url":"https://github.com/SkalskiP.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![npm](https://img.shields.io/npm/dt/yolov5js)\n![NPM](https://img.shields.io/npm/l/yolov5js)\n![npm](https://img.shields.io/npm/v/yolov5js)\n\n[![CodeSandbox](https://img.shields.io/badge/Codesandbox-040404?style=for-the-badge\u0026logo=codesandbox\u0026logoColor=DBDBDB)](https://codesandbox.io/s/github/SkalskiP/yolov5js-example)\n\n\n\u003ch1 align=\"center\"\u003eyolov5.js\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e \n    \u003cimg width=\"200\" src=\"https://yolov5js-images.s3.eu-central-1.amazonaws.com/yolov5js-logo.png\" alt=\"Logo\"\u003e\n\u003c/p\u003e\n\n## \u003cdiv align=\"center\"\u003eInstall\u003c/div\u003e\n\n```bash\nnpm install --save yolov5js\n```\n\n## \u003cdiv align=\"center\"\u003eExample\u003c/div\u003e\n\nWant to use **yolov5js** in your project but don't know how? Take a peek at our sample React \n[app](https://github.com/SkalskiP/yolov5js-example) or run it in \n[codesandbox](https://codesandbox.io/s/github/SkalskiP/yolov5js-example).\n\n## \u003cdiv align=\"center\"\u003eConvert\u003c/div\u003e\n\n```bash\n# clone YOLOv5 repository\ngit clone https://github.com/ultralytics/yolov5.git\ncd yolov5\n\n# create python virtual environment [recommended]\nvirtualenv venv\nsource venv/bin/activate\n\n# install dependencies\npip install -r requirements.txt\npip install tensorflowjs\n\n# convert model to tensorflow.js format\npython export.py --weights yolov5s.pt --include tfjs\n```\n\n## \u003cdiv align=\"center\"\u003eZoo\u003c/div\u003e\n\nUse and share pretrained YOLOv5 tensorflow.js models with [yolov5.js-zoo](https://github.com/SkalskiP/yolov5js-zoo).\n\n## \u003cdiv align=\"center\"\u003eDocumentation\u003c/div\u003e\n\nOur proper [documentation](skalskip.github.io/yolov5js) are still under construction 🚧. We are working on it really \nhard.\n\n\u003cdetails open\u003e\n\u003csummary\u003eLoad pre-trained model from zoo\u003c/summary\u003e\n\n```javascript\nimport {load, YOLO_V5_N_COCO_MODEL_CONFIG} from 'yolov5js'\n\nconst model = await load(YOLO_V5_N_COCO_MODEL_CONFIG)\n```\n\n\u003c/details\u003e\n\n\u003cdetails open\u003e\n\u003csummary\u003eLoad custom model from file\u003c/summary\u003e\n\n```javascript\nimport {load, ModelConfig} from 'yolov5js'\n    \nconst uploadJSONInput = document.getElementById('upload-json');\nconst uploadWeightsInput = document.getElementById('upload-weights');\n    \nconst config = { source: [uploadJSONInput.files[0], uploadWeightsInput.files[0]] }\nconst model = await load(config)\n```\n\n\u003c/details\u003e\n\n## \u003cdiv align=\"center\"\u003eKudos\u003c/div\u003e\n\nKudos to [ultralytics](https://ultralytics.com/) team as well as all other open-source contributors for building [YOLOv5](https://github.com/ultralytics/yolov5) project, and making it all possible.\n\n\n## \u003cdiv align=\"center\"\u003eLicense\u003c/div\u003e\n\nProject is freely distributable under the terms of the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskalskip%2Fyolov5js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskalskip%2Fyolov5js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskalskip%2Fyolov5js/lists"}