{"id":51447094,"url":"https://github.com/Py-Contributors/dataset-convertor","last_synced_at":"2026-07-05T17:00:40.867Z","repository":{"id":109999661,"uuid":"435576563","full_name":"Py-Contributors/dataset-convertor","owner":"Py-Contributors","description":"Dataset-convertor tool in python for object detection dataset","archived":false,"fork":false,"pushed_at":"2022-10-18T06:35:29.000Z","size":20,"stargazers_count":6,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T01:43:25.265Z","etag":null,"topics":["coco-json","convert-data-format","dataset-converter","hacktoberfest","object-detection","object-detetection","pascal-voc","pip-package","pypi-package","python","python3","ssd-mobilenet","tensorflow","tfrecords","tfrecords-files","yolo","yolov5"],"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/Py-Contributors.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-06T16:55:08.000Z","updated_at":"2024-08-24T18:58:57.000Z","dependencies_parsed_at":"2023-06-25T22:30:02.543Z","dependency_job_id":null,"html_url":"https://github.com/Py-Contributors/dataset-convertor","commit_stats":null,"previous_names":["codeperfectplus/dataset-convertor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Py-Contributors/dataset-convertor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Py-Contributors%2Fdataset-convertor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Py-Contributors%2Fdataset-convertor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Py-Contributors%2Fdataset-convertor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Py-Contributors%2Fdataset-convertor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Py-Contributors","download_url":"https://codeload.github.com/Py-Contributors/dataset-convertor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Py-Contributors%2Fdataset-convertor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35162071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"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":["coco-json","convert-data-format","dataset-converter","hacktoberfest","object-detection","object-detetection","pascal-voc","pip-package","pypi-package","python","python3","ssd-mobilenet","tensorflow","tfrecords","tfrecords-files","yolo","yolov5"],"created_at":"2026-07-05T17:00:34.553Z","updated_at":"2026-07-05T17:00:40.860Z","avatar_url":"https://github.com/Py-Contributors.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/codePerfectPlus/dataset-convertor\"\u003e\u003cimg src=\"https://capsule-render.vercel.app/api?type=rect\u0026color=009ACD\u0026height=100\u0026section=header\u0026text=Dataset%20Convertor\u0026fontSize=90%\u0026fontColor=ffffff\" alt=\"website title image\"\u003e\u003c/a\u003e\n  \u003ch2 align=\"center\"\u003e👉 Convert object detection dataset format 👈\u003c/h2\u003e\n\u003c/p\u003e\n\n## Dataset types\n\n`PASCAL VOC`: Pascal voc dataset have a xml file for each image.\n\n`YOLO`: YOLO dataset have a txt file for each image.\n\n`COCO`: COCO dataset have a json file for each image.\n\n## Current support format\n\nCurrently, the following formats are supported:\n\n|    from    |           to           | implemented |\n| :--------: | :--------------------: | ----------- |\n| PASCAL VOC |    YOLO(TXT files)     | Yes         |\n|    YOLO    | PASCAL VOC (XML files) | Yes         |\n\n## Upcoming support format\n\n|    from    |            to             | Issue/PR(if any) |\n| :--------: | :-----------------------: | ---------------- |\n| PASCAL VOC |     COCO (JSON files)     | No               |\n| PASCAL VOC | TFRecord (TFRecord files) | No               |\n|    COCO    |  PASCAL VOC (XML files)   | No               |\n|    COCO    |     YOLO (TXT files)      | No               |\n|    COCO    | TFRecord (TFRecord files) | No               |\n|    YOLO    |     COCO (JSON files)     | No               |\n|    YOLO    | TFRecord (TFRecord files) | No               |\n\n## Installation\n\n### Installation from source code\n\n```bash\ngit clone https://github.com/codePerfectPlus/dataset-convertor/\n```\n\n```bash\ncd dataset-convertor\npython -m venv venv\n```\n\n```bash\nsource venv/bin/activate\npip install requirements.txt\n```\n\n### Installation from PyPI\n\n```bash\npip install dataset-convertor\n```\n\n## Usage\n\nconvert annotations from one format to another format.\n\ndataset formatting example:\n\n    - data/pascal_voc/JPEGImages/*.jpg\n    - data/pascal_voc/Annotations/*.xml\n\n    - data/yolo5/JPEGImages/*.jpg\n    - data/yolo5/labels/*.txt\n\n### Pascal VOC(xml) to yolo(txt)\n\n```bash\nfrom convert import Convertor\n\ncon = Convertor(input_folder='/home/user/data/pascal_voc', output_folder='/home/user/data/yolo5')\ncon.voc2yolo()\n```\n\n### from yolo(txt) to Pascal VOC(xml)\n\n```bash\nfrom convert import Convertor\ncon = Convertor(input_folder='/home/user/data/yolo5', output_folder='/home/user/data/pascal_voc')\ncon.yolo2voc()\n```\n\n\n## Contributing\n\ncreate an issue/PR if any format is missing.Open-source contribution is welcome.check the [contributing guide](/CONTRIBUTING.md) for details.\n\n## Reference\n\n- PASCAL VOC - http://host.robots.ox.ac.uk/pascal/VOC/\n- COCO - http://cocodataset.org/\n- YOLO9000 - https://arxiv.org/abs/1612.08242\n- YOLO4 - https://arxiv.org/abs/2004.10934v1\n\n## License\n\n- [MIT License](/LICENSE)\n\n## Authors\n\n- [CodePerfectPlus](https://github/com/CodePerfectPlus)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPy-Contributors%2Fdataset-convertor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPy-Contributors%2Fdataset-convertor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPy-Contributors%2Fdataset-convertor/lists"}