Import Labels/Annotations to Consensus Branches
Learn how to import your labels/annotations to a Consensus branch.
Overview
To upload labels to a Consensus Project, you need to create a Consensus branch.
ALL Consensus branches start with encord-
.
Supported Label/Annotation Formats
- Supports multi-level nested classifications (radio, checklist, or free-form text) under objects or classifications.
- Handles all object types and classification.
Does not supports multiple levels of nested classifications (radio, checklist, or free-form text) under tools or classifications.
Confidence Score
You can include confidence scores when uploading labels/annotations. Encord automatically calculates model metrics based on your label and prediction sets and assigned confidence scores.
Label Branches
When importing label/annotation sets into a Consensus Project, they are added as branches to individual label rows on your data units (images, videos, audio). Each data unit has the following:
- A MAIN branch for ground truth annotations or pre-labels.
- Optional Consensus branches and Prediction branches for different label/annotation or prediction sets.
Import Labels/Annotations to Consensus Projects
Import your labels to a Project in Annotate. Encord currently supports importing labels from the Encord format and from COCO.
Import Encord-Format Labels
Use branch_name
to create a Consensus label branch in label_rows_v2
for a data unit.
branch_name
MUST start withencord-
for Consensus branches.branch_name
supports alphanumeric characters (a-z, A-Z, 0-9) and is case sensitive.branch_name
supports the following special characters: hyphens (-), underscores (_), and periods (.).
This simple example imports a bounding box model to all data units in the Consensus branch.
Import COCO Labels to Consensus Branches
The following code imports COCO labels as predictions for Active.
For more information on importing COCO labels into Encord, refer to our documentation.
Replace the following:
-
<private_key_path>
with the file path to your SSH private key. -
encord-<name-of-your-consensus-branch>
with the name of your label branch. -
<project_hash>
with the Project ID for your Project. -
COCOimportfile.json
with the full path of the COCO file containing the predictions you want to import.
Verify Label Import
After importing your labels, verify that your labels imported.
The following code returns all labels and predictions on all branches.
Was this page helpful?