import.py
, replacing the following variables:
<private_key_path>
with the full path to your private key.<project_id>
with the unique ID of the Project containing the data units you want to import labels for.COCOimportfile.json
with the full path of the COCO file containing the labels you want to import.info
field. If it is missing, add it as: "info": {},
.import.py
script is configured to import labels into single images with unique names and assumes that the category names in the COCO file match the names of your Ontology objects.
In practice, you must implement your own matching logic. An example where filenames in the COCO file do not directly match those in the Encord Project is provided below.