{"id":13642836,"url":"https://github.com/kadirnar/yolov7-pip","last_synced_at":"2025-04-13T08:43:40.161Z","repository":{"id":63612312,"uuid":"569206527","full_name":"kadirnar/yolov7-pip","owner":"kadirnar","description":"This repo is a packaged version of the Yolov7 model.","archived":false,"fork":false,"pushed_at":"2024-03-15T17:00:54.000Z","size":69378,"stargazers_count":24,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T16:28:38.766Z","etag":null,"topics":["computer-vision","object-detection","yolov7"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kadirnar.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":"2022-11-22T10:12:50.000Z","updated_at":"2024-06-15T14:11:05.758Z","dependencies_parsed_at":"2024-01-14T12:17:42.277Z","dependency_job_id":"47b6413e-a4ae-4b42-9925-8b86401b7561","html_url":"https://github.com/kadirnar/yolov7-pip","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"88523d80db17848e2d46c992bc123853331d9f0c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fyolov7-pip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fyolov7-pip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fyolov7-pip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fyolov7-pip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kadirnar","download_url":"https://codeload.github.com/kadirnar/yolov7-pip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248687705,"owners_count":21145755,"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":["computer-vision","object-detection","yolov7"],"created_at":"2024-08-02T01:01:36.990Z","updated_at":"2025-04-13T08:43:40.126Z","avatar_url":"https://github.com/kadirnar.png","language":"Python","funding_links":[],"categories":["Other Versions of YOLO"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch2\u003e\n  Yolov7-Pip: Packaged version of the Yolov7 repository  \n\u003c/h2\u003e\n\u003ch4\u003e\n    \u003cimg width=\"500\" alt=\"teaser\" src=\"docs/paper.png\"\u003e\n\u003c/h4\u003e\n\u003cdiv\u003e\n    \u003ca href=\"https://pepy.tech/project/yolov7detect\"\u003e\u003cimg src=\"https://pepy.tech/badge/yolov7detect\" alt=\"downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://badge.fury.io/py/yolov7detect\"\u003e\u003cimg src=\"https://badge.fury.io/py/yolov7detect.svg\" alt=\"pypi version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://huggingface.co/spaces/kadirnar/yolov7\"\u003e\u003cimg src=\"https://img.shields.io/badge/%20HuggingFace%20-Demo-blue.svg\" alt=\"HuggingFace Spaces\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\n## \u003cdiv align=\"center\"\u003eOverview\u003c/div\u003e\n\nThis repo is a packaged version of the [Yolov7](https://github.com/WongKinYiu/yolov7) model.\n### Installation\n```\npip install yolov7detect\n```\n\n### Yolov7 Inference\n```python\nimport yolov7\n\n# load pretrained or custom model\nmodel = yolov7.load('yolov7.pt')\n#model = yolov7.load('kadirnar/yolov7-v0.1', hf_model=True)\n\n# set model parameters\nmodel.conf = 0.25  # NMS confidence threshold\nmodel.iou = 0.45  # NMS IoU threshold\nmodel.classes = None  # (optional list) filter by class\n\n# set image\nimgs = 'inference/images'\n\n# perform inference\nresults = model(imgs)\n\n# inference with larger input size and test time augmentation\nresults = model(img, size=1280, augment=True)\n\n# parse results\npredictions = results.pred[0]\nboxes = predictions[:, :4] # x1, y1, x2, y2\nscores = predictions[:, 4]\ncategories = predictions[:, 5]\n\n# show detection bounding boxes on image\nresults.show()\n```\n### Citation\n```bibtex\n@article{wang2022yolov7,\n  title={{YOLOv7}: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors},\n  author={Wang, Chien-Yao and Bochkovskiy, Alexey and Liao, Hong-Yuan Mark},\n  journal={arXiv preprint arXiv:2207.02696},\n  year={2022}\n}\n```\n### Acknowledgement\nA part of the code is borrowed from [Yolov5-pip](https://github.com/fcakyon/yolov5-pip). Many thanks for their wonderful works.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadirnar%2Fyolov7-pip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkadirnar%2Fyolov7-pip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadirnar%2Fyolov7-pip/lists"}