{"id":18486874,"url":"https://github.com/Hyuto/yolov5-tfjs","last_synced_at":"2025-04-08T20:30:27.155Z","repository":{"id":50460015,"uuid":"474895869","full_name":"Hyuto/yolov5-tfjs","owner":"Hyuto","description":"YOLOv5 right in your browser with tensorflow.js","archived":false,"fork":false,"pushed_at":"2023-05-10T16:49:50.000Z","size":9259,"stargazers_count":71,"open_issues_count":2,"forks_count":25,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-02T05:47:02.863Z","etag":null,"topics":["object-detection","react","tensorflowjs","webapp","yolov5"],"latest_commit_sha":null,"homepage":"https://hyuto.github.io/yolov5-tfjs/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hyuto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-28T07:39:58.000Z","updated_at":"2024-04-29T14:41:50.000Z","dependencies_parsed_at":"2023-01-29T23:31:18.328Z","dependency_job_id":null,"html_url":"https://github.com/Hyuto/yolov5-tfjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hyuto%2Fyolov5-tfjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hyuto%2Fyolov5-tfjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hyuto%2Fyolov5-tfjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hyuto%2Fyolov5-tfjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hyuto","download_url":"https://codeload.github.com/Hyuto/yolov5-tfjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223343488,"owners_count":17129952,"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":["object-detection","react","tensorflowjs","webapp","yolov5"],"created_at":"2024-11-06T12:49:54.553Z","updated_at":"2024-11-06T12:50:40.713Z","avatar_url":"https://github.com/Hyuto.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Object Detection using YOLOv5 and Tensorflow.js\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./sample.png\" /\u003e\n\u003c/p\u003e\n\n![love](https://img.shields.io/badge/Made%20with-🖤-white)\n![tensorflow.js](https://img.shields.io/badge/tensorflow.js-white?logo=tensorflow)\n\n---\n\n[**More Feature Version**](https://hyuto.github.io/showcase/yolov5-tfjs)\n\n---\n\nObject Detection application right in your browser. Serving YOLOv5 in browser using tensorflow.js\nwith `webgl` backend.\n\n**Setup**\n\n```bash\ngit clone https://github.com/Hyuto/yolov5-tfjs.git\ncd yolov5-tfjs\nyarn install #Install dependencies\n```\n\n**Scripts**\n\n```bash\nyarn start # Start dev server\nyarn build # Build for productions\n```\n\n## Model\n\nYOLOv5n model converted to tensorflow.js.\n\n```\nused model : yolov5n\nsize       : 7.5 Mb\n```\n\n**Use another model**\n\nUse another YOLOv5 model.\n\n1. Clone [yolov5](https://github.com/ultralytics/yolov5) repository\n\n   ```bash\n   git clone https://github.com/ultralytics/yolov5.git \u0026\u0026 cd yolov5\n   ```\n\n   Install `requirements.txt` first\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n2. Export model to tensorflow.js format\n   ```bash\n   export.py --weights yolov5*.pt --include tfjs\n   ```\n3. Copy `yolov5*_web_model` to `./public`\n4. Update `modelName` in `App.jsx` to new model name\n   ```jsx\n   ...\n   // model configs\n   const modelName = \"yolov5*\"; // change to new model name\n   const classThreshold = 0.25;\n   ...\n   ```\n5. Done! 😊\n\n## Reference\n\nhttps://github.com/ultralytics/yolov5\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHyuto%2Fyolov5-tfjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHyuto%2Fyolov5-tfjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHyuto%2Fyolov5-tfjs/lists"}