{"id":19903773,"url":"https://github.com/k2-gc/object-detection-format-converter","last_synced_at":"2026-06-04T21:31:02.395Z","repository":{"id":215374753,"uuid":"729453355","full_name":"k2-gc/object-detection-format-converter","owner":"k2-gc","description":"Object Detection Dataset Format Converter","archived":false,"fork":false,"pushed_at":"2024-09-19T09:44:36.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T07:24:02.860Z","etag":null,"topics":["dataset-converter","deep-learning","kitti","kitti-dataset","mscoco","mscoco-dataset","object-detection","object-detection-datasets","pascal-voc","pascal-voc-dataset","python","python3","yolo","yolo-dataset"],"latest_commit_sha":null,"homepage":"","language":"Python","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/k2-gc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-09T09:24:48.000Z","updated_at":"2024-09-19T09:44:40.000Z","dependencies_parsed_at":"2024-08-10T09:27:19.864Z","dependency_job_id":"a0f07c61-39bb-4d40-97f0-0bdad5b97a05","html_url":"https://github.com/k2-gc/object-detection-format-converter","commit_stats":null,"previous_names":["k2-gc/object-detection-format-converter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k2-gc/object-detection-format-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fobject-detection-format-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fobject-detection-format-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fobject-detection-format-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fobject-detection-format-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k2-gc","download_url":"https://codeload.github.com/k2-gc/object-detection-format-converter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fobject-detection-format-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dataset-converter","deep-learning","kitti","kitti-dataset","mscoco","mscoco-dataset","object-detection","object-detection-datasets","pascal-voc","pascal-voc-dataset","python","python3","yolo","yolo-dataset"],"created_at":"2024-11-12T20:25:19.807Z","updated_at":"2025-11-25T23:14:21.469Z","avatar_url":"https://github.com/k2-gc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# object-detection-format-converter\n\nDataset format converter for object detection\n\n## Overview\nDeep learning field for image processing has many dataset format. For object detection task, MSCOCO, YOLO, PascalVOC and so on are frequently used and sometimes we have to convert our dataset annotation files to another. To deal with this, I creat dataset format converter for object detection. Supported dataset formats are below.\n\n* [x] MSCOCO  \n* [x] YOLO\n* [x] PascalVOC  \n* [x] KITTI\n\n## Prerequisites\n* Python \u003e= 3.8\n\n## Installation\nInstall python\u003e=3.8 and run commands below in your venv or something.\n```bash\npip install -U pip setuptools build\npython -m build\npip install dist/objdet_converter-1.2.0-py3-none-any.whl\n```\n\n## Usage\n### CLI\n```bash\nobjdet-conv convert --src-format 'SRC_FORMAT' --dst-format 'DST_FORMAT' --src-path 'PATH_TO_SRC' --dst-path 'PAST_TO_OUTPUT' --class-txt-path 'IF NEEDED'\n```\nSupported format strings:\n1. coco\n2. yolo\n3. pascalvoc\n4. kitti\n#### Example\n```bash\nobjdet-conv convert --src-format yolo --dst-format coco --src-path ./yolo_dir --dst-path ./output --class-txt-path ./yolo_dir/classes.txt\n```\n### Call from Function\nCall '[convert_format](./objdet_converter/utils/convert.py)' function with some args.\n####  Example\n```python\nfrom objdet_converter.convert import convert_format\n\nconvert_format(\n    src_format=\"coco\",\n    dst_format=\"yolo\",\n    src_path=\"./coco.json\",\n    dst_path=\"./yolo_output\",\n    class_txt_path=\"\",\n)\n```\nSample code is available [here](./sample.py). Detail descriptions are [here](#description-of-each-data-format)\n\nIf args of 'class_txt_path' is empty, scan all annotation files and create class list automaticaly(alphabetical order).\n\n## Detail Description \n### Description of Each Data Format\n* [MSCOCO](./docs/README_mscoco.md)\n* [YOLO](./docs/README_yolo.md)\n* [PascalVOC](./docs/README_pascalvoc.md)\n* [KITTI](./docs/README_kitti.md)\n* [Custom Dataset Implementation](./docs/README_custom.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk2-gc%2Fobject-detection-format-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk2-gc%2Fobject-detection-format-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk2-gc%2Fobject-detection-format-converter/lists"}