Overview
To upload labels to a Consensus Project, you need to create a Consensus branch. ALL Consensus branches start withencord-.
Supported Label/Annotation Formats
Encord Format (Recommended)- Supports multi-level nested classifications (radio, checklist, or free-form text) under objects or classifications.
- Handles all object types and classification.
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.
List and Copy Branches
Uselist_branches to list the branches in a Project. Use copy_labels_to_branch to copy labels from one branch to another, for example to start a Consensus branch from the labels on the main branch.
List and copy branches
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
Usebranch_name to create a label branch in label_rows_v2 for a data unit. Get the label rows with list_label_rows_v2(branch_name=...), add your labels, and save the label rows: the labels are saved to that branch, not to the main branch.
Import Any Label Type to a Consensus Branch
Every example on the Import Labels page works on a Consensus branch, for all label types: bounding boxes, rotatable bounding boxes, polygons, polylines, keypoints, bitmasks, object primitives, and classifications. Passbranch_name when you get the label rows. The rest of each example stays the same.
Get label rows on a Consensus branch
Example: Bounding Box on a Consensus Branch
This example imports one bounding box object (Cherry) to a video (Cherries_video.mp4) on a Consensus branch. The same object instance is tracked across frames 103, 104, and 105.
Bounding Box on a Consensus Branch
Import COCO Labels to Consensus Branches
The following code imports COCO labels to a Consensus branch. For more information on importing COCO labels into Encord, refer to our documentation. Replace the values in the# User input section with your own. Each COCO image is matched to a data unit by its video_title or image_title (present in COCO files exported from Encord), or otherwise by its file_name, which must match the data unit title in Encord.
COCO Import to a Consensus Branch
Verify Label Import
After importing your labels, verify that your labels imported. The following code prints all labels and predictions on all branches.Verify Consensus Label Import

