{"id":22002422,"url":"https://github.com/akashad98/yolov8_sam","last_synced_at":"2026-03-13T09:30:51.308Z","repository":{"id":153473045,"uuid":"627982827","full_name":"akashAD98/YOLOV8_SAM","owner":"akashAD98","description":"yolov8 model with SAM meta","archived":false,"fork":false,"pushed_at":"2023-11-14T04:45:38.000Z","size":3175,"stargazers_count":129,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-01T14:16:00.674Z","etag":null,"topics":["meta","sam","segmentation","yolo","yolov5","yolov8"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/akashAD98.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}},"created_at":"2023-04-14T16:24:51.000Z","updated_at":"2025-04-01T03:33:11.000Z","dependencies_parsed_at":"2023-11-14T05:29:49.589Z","dependency_job_id":"a3a3a3d7-e79d-469a-ae73-649422bea5d7","html_url":"https://github.com/akashAD98/YOLOV8_SAM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akashAD98/YOLOV8_SAM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashAD98%2FYOLOV8_SAM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashAD98%2FYOLOV8_SAM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashAD98%2FYOLOV8_SAM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashAD98%2FYOLOV8_SAM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akashAD98","download_url":"https://codeload.github.com/akashAD98/YOLOV8_SAM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashAD98%2FYOLOV8_SAM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30464550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["meta","sam","segmentation","yolo","yolov5","yolov8"],"created_at":"2024-11-29T23:17:41.589Z","updated_at":"2026-03-13T09:30:51.289Z","avatar_url":"https://github.com/akashAD98.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YOLOV8_SAM\nyolov8 model with SAM meta\n\n\nUse yolov8 \u0026 SAM model to get segmention for custom model\n\n\n# installation\n\n```\npip install ultralytics\npip install 'git+https://github.com/facebookresearch/segment-anything.git'\n\n```\n\n## Download weights \n```\n !wget -P images https://raw.githubusercontent.com/facebookresearch/segment-anything/main/notebooks/images/truck.jpg\n !wget -P images https://raw.githubusercontent.com/facebookresearch/segment-anything/main/notebooks/images/groceries.jpg       \n !wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth\n```\n\n## Test on image\n\n```\npython detect_multiple_object_SAM.py\n```\n\n\n## visulise the results\n\n```\npython3 visulise_mask.py\n```\n\n## Results\n\n\u003cimg width=\"387\" alt=\"image\" src=\"https://user-images.githubusercontent.com/62583018/233255080-209dec85-44e7-4460-ae9c-bf53b28374ec.png\"\u003e\n\n\u003cimg width=\"312\" alt=\"image\" src=\"https://user-images.githubusercontent.com/62583018/232183468-d1abeb02-43d0-471a-9fce-e0e40eac69a5.png\"\u003e\n\n\u003cimg width=\"494\" alt=\"image\" src=\"https://user-images.githubusercontent.com/62583018/233537939-13ff5019-1660-4ee2-ac5f-6bd824312ecc.png\"\u003e\n\n\u003cimg width=\"493\" alt=\"image\" src=\"https://user-images.githubusercontent.com/62583018/233537998-438bdc78-05b5-4153-8245-9889a52696e2.png\"\u003e\n\n\n\nBounding box: [478, 1280, 182, 76]\n\nSegmentation mask:\n[631, 1280, 630, 1281, 629, 1281, 628, 1282, 626, 1282, 625, 1283, 622, 1283, 621, 1284, 619, 1284, 618, 1285, 615, 1285, 614, 1286, 612, 1286, 611, 1287, 609, 1287, 608, 1288, 607, 1288, 606, 1289, 604, 1289, 603, 1290, 602, 1290, 601, 1291, 599, 1291, 598, 1292, 596, 1292, 595, 1293, 593, 1293, 592, 1294]\n\n### Save the result in yolo format for training Mask segmentation model.\n\nyolo format = [0 0.529687 0 0.014815 0 0.529167 0 0.015741 0 0.525521 0 0.015741 0 0.525000 0 0.016667 0 0.519792 0 0.016667 0 0.519271 0 0.017593 0 0.513021 0 0.017593 0 0.512500 0 0.018519 0 0.505208 0 0.018519]\n\n\n### TODO\n\n\n```\n- Doing annotations on multiple images  - Done\n- Add support for saving annotations in yolo format -Done\n- Support jsno format for segmentation model trainig\n\n```\n\n### refrence\n```\nhttps://github.com/facebookresearch/segment-anything\nhttps://github.com/ultralytics/ultralytics\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashad98%2Fyolov8_sam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakashad98%2Fyolov8_sam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashad98%2Fyolov8_sam/lists"}