{"id":13641553,"url":"https://github.com/walktree/libtorch-yolov3","last_synced_at":"2025-04-20T11:31:10.474Z","repository":{"id":45193924,"uuid":"159466485","full_name":"walktree/libtorch-yolov3","owner":"walktree","description":"A Libtorch implementation of the YOLO v3 object detection algorithm","archived":false,"fork":false,"pushed_at":"2020-10-16T03:51:34.000Z","size":1614,"stargazers_count":449,"open_issues_count":37,"forks_count":130,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-08-03T01:23:33.697Z","etag":null,"topics":["cpp","libtorch","pytorch","yolov3"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/walktree.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":"2018-11-28T08:12:01.000Z","updated_at":"2024-08-01T06:55:39.000Z","dependencies_parsed_at":"2022-07-19T18:03:19.670Z","dependency_job_id":null,"html_url":"https://github.com/walktree/libtorch-yolov3","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/walktree%2Flibtorch-yolov3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walktree%2Flibtorch-yolov3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walktree%2Flibtorch-yolov3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walktree%2Flibtorch-yolov3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walktree","download_url":"https://codeload.github.com/walktree/libtorch-yolov3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223827393,"owners_count":17209787,"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":["cpp","libtorch","pytorch","yolov3"],"created_at":"2024-08-02T01:01:21.718Z","updated_at":"2024-11-09T12:30:25.039Z","avatar_url":"https://github.com/walktree.png","language":"C++","funding_links":[],"categories":["Other Versions of YOLO","Deep Learning"],"sub_categories":[],"readme":"# libtorch-yolov3\nA Libtorch implementation of the YOLO v3 object detection algorithm, written with pure C++. It's fast, easy to be integrated to your production, and CPU and GPU are both supported. Enjoy ~\n\nThis project is inspired by the [pytorch version](https://github.com/ayooshkathuria/pytorch-yolo-v3), I rewritten it with C++.\n\n## Requirements\n1. LibTorch v1.0.0\n2. Cuda\n3. OpenCV (just used in the example)\n\n\n## To compile\n1. cmake3\n2. gcc 5.4 +\n\n\n\n```\nmkdir build \u0026\u0026 cd build\ncmake3 -DCMAKE_PREFIX_PATH=\"your libtorch path\" ..\n\n# if there are multi versions of gcc, then tell cmake which one your want to use, e.g.:\ncmake3 -DCMAKE_PREFIX_PATH=\"your libtorch path\" -DCMAKE_C_COMPILER=/usr/local/bin/gcc -DCMAKE_CXX_COMPILER=/usr/local/bin/g++ ..\n```\n\n\n## Running the detector\n\nThe first thing you need to do is to get the weights file for v3:\n\n```\ncd models\nwget https://pjreddie.com/media/files/yolov3.weights \n```\n\nOn Single image:\n```\n./yolo-app ../imgs/person.jpg\n```\n\nAs I tested, it will take 25 ms on GPU ( 1080 ti ). please run inference job more than once, and calculate the average cost.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalktree%2Flibtorch-yolov3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalktree%2Flibtorch-yolov3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalktree%2Flibtorch-yolov3/lists"}