{"id":17028780,"url":"https://github.com/iamtodor/tensorflow_object_detection_create_coco_tfrecord","last_synced_at":"2025-10-27T23:11:43.926Z","repository":{"id":100287882,"uuid":"123034029","full_name":"iamtodor/tensorflow_object_detection_create_coco_tfrecord","owner":"iamtodor","description":"Convert coco dataset to tfrecord for the tensorflow detection API.","archived":false,"fork":false,"pushed_at":"2018-02-26T21:38:59.000Z","size":367,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T02:04:34.567Z","etag":null,"topics":["coco-dataset","cocodataset","object-detection","tensorflow","tfrecord"],"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/iamtodor.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":"2018-02-26T21:38:23.000Z","updated_at":"2022-10-13T19:17:56.000Z","dependencies_parsed_at":"2023-05-13T11:45:33.679Z","dependency_job_id":null,"html_url":"https://github.com/iamtodor/tensorflow_object_detection_create_coco_tfrecord","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtodor%2Ftensorflow_object_detection_create_coco_tfrecord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtodor%2Ftensorflow_object_detection_create_coco_tfrecord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtodor%2Ftensorflow_object_detection_create_coco_tfrecord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtodor%2Ftensorflow_object_detection_create_coco_tfrecord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamtodor","download_url":"https://codeload.github.com/iamtodor/tensorflow_object_detection_create_coco_tfrecord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250484284,"owners_count":21438211,"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":["coco-dataset","cocodataset","object-detection","tensorflow","tfrecord"],"created_at":"2024-10-14T07:56:06.369Z","updated_at":"2025-10-27T23:11:38.891Z","avatar_url":"https://github.com/iamtodor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tensorflow_object_detection_create_coco_tfrecord\nConvert coco dataset to tfrecord for the tensorflow detection API.\n# Attention\n1) For easy use of this script, Your coco dataset directory struture should like this :\n```\n    +Your coco dataset root\n        +train2014\n        +val2014\n        +annotations\n            -instances_train2014.json\n            -instances_val2014.json\n```\n2) To use this script, you should download python coco tools from [coco website ](http://mscoco.org/dataset/#download) and make it.\nAfter make, copy the pycocotools directory to the directory of this \"create_coco_tf_record.py\"\nor add the pycocotools path to  PYTHONPATH of ~/.bashrc file.\n**For convientient , I add pycocotools build in my computer to the project directory, you can use it with python3 directly. But if you use python2, build the python coco tool from [!coco](http://mscoco.org/dataset/#download) **\n```\n   git clone https://github.com/cocodataset/cocoapi\n   cd  cocoapi/PythonAPI/\n   make\n   pip install Cython\n   make\n   ls pycocotools/\n   cp -rf pycocotools  PATH/tensorflow_object_detection_create_coco_tfrecord/\n```\n\n\n# Example usage:\n```\n    python create_coco_tf_record.py --data_dir=/path/to/your/coco/root/directory \\\n        --set=train \\\n        --output_filepath=/where/you/want/to/save/pascal.record\n        --shuffle_imgs=True\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamtodor%2Ftensorflow_object_detection_create_coco_tfrecord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamtodor%2Ftensorflow_object_detection_create_coco_tfrecord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamtodor%2Ftensorflow_object_detection_create_coco_tfrecord/lists"}