{"id":22663120,"url":"https://github.com/han-minhee/yolo-rust-ort","last_synced_at":"2025-04-12T07:22:27.866Z","repository":{"id":253382832,"uuid":"842920335","full_name":"han-minhee/yolo-rust-ort","owner":"han-minhee","description":"Rust implementation of Ultralytics YOLOv8/v10 using ONNX (ort)","archived":false,"fork":false,"pushed_at":"2025-04-11T02:56:12.000Z","size":24866,"stargazers_count":29,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T03:36:24.848Z","etag":null,"topics":["onnx","ort","rust","yolo","yolov10","yolov8"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/han-minhee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","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,"zenodo":null},"funding":{"buy_me_a_coffee":"hanminhee"}},"created_at":"2024-08-15T11:49:28.000Z","updated_at":"2025-04-11T02:56:16.000Z","dependencies_parsed_at":"2024-08-20T17:03:47.836Z","dependency_job_id":"19de0d63-d47f-4701-93f3-c2cb64fea725","html_url":"https://github.com/han-minhee/yolo-rust-ort","commit_stats":null,"previous_names":["han-minhee/yolo-v10-rust","han-minhee/yolo-v10-rust-ort","han-minhee/yolo-rust-ort"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/han-minhee%2Fyolo-rust-ort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/han-minhee%2Fyolo-rust-ort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/han-minhee%2Fyolo-rust-ort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/han-minhee%2Fyolo-rust-ort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/han-minhee","download_url":"https://codeload.github.com/han-minhee/yolo-rust-ort/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248531118,"owners_count":21119700,"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":["onnx","ort","rust","yolo","yolov10","yolov8"],"created_at":"2024-12-09T12:17:18.598Z","updated_at":"2025-04-12T07:22:27.828Z","avatar_url":"https://github.com/han-minhee.png","language":"Rust","funding_links":["https://buymeacoffee.com/hanminhee"],"categories":[],"sub_categories":[],"readme":"# yolo-rust-ort\nA Rust implementation of YOLO using ONNX Runtime (ort)\n\n![people sitting around a table](./output/people1.jpg)\n\n## Overview\nThis small example demonstrates how to implement Ultralytics YOLOv8/YOLOv10 object detection in Rust using [ort](https://github.com/pykeio/ort) crate as a backend for running ONNX models. `ort` is a wrapper around [ONNX Runtime](https://onnxruntime.ai/).\n\n## Getting Started\n\n### Prerequisites\nEnsure you have a basic Rust development environment set up. If you want to download a specific YOLO model, you'll also need Python with the `ultralytics` package installed. Note that it only supports `yolov8` and `yolov10` models.\n\n### Running the demo\n1. **(Optional) Download the YOLO Model**  \n   To download a specific YOLOv10 model, use the following command:\n   ```bash\n   python ./download_model.py --model yolov10n.pt\n   ```\n   Alternatively, you can use the pre-included model at `./onnx/yolov10n.onnx` or `./onnx/yolov8n.onnx`.\n\n2. **Run the Rust Application**\n```bash\ncargo run -- path/to/your/image.jpg path/to/your/model.onnx model_name use_nms\n```\nFor example, to run inference of a YOLOv8 model, run the command:\n\n```bash\ncargo run -- ./sample/people0.jpg  onnx/yolov8n.onnx yolov8 true\n```\nNMS is disabled by default. However, you can explicitly enable it by passing a boolean flag. YOLOv10 model doesn't need nms, so you can set it to `false` for YOLOv10 and `true` for YOLOv8\n\n3. **Check the output**\nThe processed image and its corresponding detection results will be saved in the ./output directory. The output will include:\n- A JPEG image with bounding boxes drawn with colors according to the class IDs.\n- A text file containing the detection results in COCO format.\n\n### Requirements\n`raqote` requires some packages installed in the system, and in case of a Linux system, you should have `fontconfig` (`libfontconfig1-dev` for Ubuntu, and `fontconfig-devel` for Fedora) and `pkg-config` packages installed.\n\n## Disclaimer\nThis project is my first attempt at Rust, so the code can be really messy.\n\n## References\n[ort](https://github.com/pykeio/ort)\n\n[ultralytics](https://github.com/ultralytics/ultralytics)\n\n[THU-MIG](https://github.com/THU-MIG/yolov10)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhan-minhee%2Fyolo-rust-ort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhan-minhee%2Fyolo-rust-ort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhan-minhee%2Fyolo-rust-ort/lists"}