Uploading COCO
Convert coco format labels for upload to datagym
Coco format
How to use our coco importer
Prepare instances json file
from datagym.importers.coco import Coco
coco = Coco()
with open(<PATH_TO_instances_YEAR.json>) as json_file:
instances_data = json.load(json_file)
# Here we chose to prepare the polygons.
coco.add_object_detection_data(instances_data, polygon=True)Prepare captions json file
from datagym.importers.coco import Coco
coco = Coco()
with open(<PATH_TO_captions_YEAR.json>) as json_file:
captions_data = json.load(json_file)
# Here we chose to prepare the polygons.
coco.add_captions_data(captions_data)Prepare your datagym project

Upload to datagym
Last updated
Was this helpful?