/v2/public/label-sets.
Identifiers are *_id in Python and *Uuid on the wire.
LabelSetOrigin Objects
- WORKFLOW: Labels made in the project’s own workflow.
- IMPORT: Labels written to the branch from outside the project, such as model predictions. An imported label set has no scheduled versions.
- UNKNOWN: An origin this SDK version does not recognize.
_missing_
LabelSetVersionStatus Objects
- BUILDING: The version is being captured.
- READY: The version holds its labels and can be exported.
- FAILED: The capture failed; the version holds no labels.
- UNKNOWN: A status this SDK version does not recognize.
_missing_
LabelSetJobStatus Objects
- PENDING: The job is queued or running.
- DONE: The job finished and its result is available.
- FAILED: The job failed.
- UNKNOWN: A status this SDK version does not recognize.
_missing_
ExportFormat Objects
- JSON: Encord’s label JSON, one file per label row.
- COCO: COCO format.
WorkflowStageSelection Objects
main branch only, so the platform refuses this selection on any other branch.
Example:
workflow_stage_ids- The stages whose tasks a version captures. An empty list captures every label on the branch.
AllSelection Objects
None.
Example:
UnknownSelection Objects
tag- The shape’s name. The other fields are available as attributes.
LabelSelection
A selection the SDK can set.StoredLabelSelection
A selection as the platform returns it, which may be a shape this SDK version cannot set.ProjectSource Objects
project_id- The project.branch_name- The label branch a version captures.label_selection- Which of the branch’s labels a version captures. AllSelection, the default, is every label on the branch. A WorkflowStageSelection applies to themainbranch only.
StoredProjectSource Objects
id- The source identifier, used when changing its selection.project_id- The project.branch_name- The label branch a version captures.label_selection_mode- The selection as the platform returned it, orNonewhen a list response omitted it. Read it throughlabel_selection, which refuses an omitted selection rather than reporting one.
label_selection
EncordException- The selection was omitted from a list response. Call the label set’srefetch_data()and read its sources again.
UnknownSource Objects
tag- The kind’s name. The other fields are available as attributes.
StoredSource
A source as the platform returns it, which may be a kind this SDK version does not recognize.LabelSet Objects
id- Unique identifier of the label set.sources- The project branches that feed the set. One source today. List results name each source without its selection; a single set carries them.name- Name of the label set.description- Description of the label set.origin- Where the set’s labels come from.created_by_email- Email of the user who created the set.created_at- When the set was created.
_SelectionPayload Objects
to_dict
None by default so a stage selection’s unset filters are sent as null.
CreateLabelSetPayload Objects
sources- The project branches that feed the set, each with its selection. The platform accepts one today.name- Name of the label set.description- Description of the label set.origin- Where the branch’s labels come from.
UpdateLabelSetPayload Objects
None is unchanged.
Arguments:
name- New name.description- New description. An empty string clears it.
SetLabelSelectionPayload Objects
label_selection- New selection; AllSelection captures every label on the branch.
LabelSetPageParams Objects
page_size- Maximum number of results per page.page_token- Token for the next page, from the previous page.
ListLabelSetsParams Objects
project_id- Only the sets this project feeds.page_size- Maximum number of sets per page.page_token- Token for the next page, from the previous page.
CapturedSource Objects
project_id- The project.branch_name- The label branch that was captured.ontology_id- The ontology the labels were made against.ontology_version_id- The ontology revision in force when the version was created.Nonefor an ontology with no revision history.
StoredCapturedSource
A captured source as the platform returns it, which may be a kind this SDK version does not recognize.VersionOntology Objects
sources. The definition is served separately because a
shared class can be edited without a new revision, so the ids alone cannot tell two definitions apart.
Arguments:
editor- The ontology definition, in the shape the ontology routes return.
LabelSetVersion Objects
id- Unique identifier of the version.label_set_id- The label set the version belongs to.sources- What the version captured: each project branch and the ontology it used. One source today.version_number- Position of the version in the set, from 1.name- Name of the version.status- Lifecycle of the version.created_by_email- Email of the user who created the version.capture_started_at- When the capture started.capture_finished_at- When the capture finished, orNonewhile it is building.label_count- How many labels the version holds. Set once the version is READY.
LabelSetVersionMember Objects
label_id- The label row.label_version- The revision of the label row that was captured.backing_item_id- The storage item the label was on when captured.data_title- Title of the data unit.
CreateVersionPayload Objects
name- A label for the version, shown with its number.Nonemeans the number alone.
LabelSetJob Objects
job_id- The job, to poll for its result.
LabelSetJobPending Objects
status- Always PENDING.
LabelSetJobUnknown Objects
status- UNKNOWN.
VersionJobDone Objects
status- Always DONE.version_id- The version the job created.
VersionJobFailed Objects
status- Always FAILED.error- Why the job failed.
VersionJob
The state of a version job: one of pending, done, failed, or a state this SDK version does not recognize.VersionJobResponse Objects
root is the state.
CreateVersionExportPayload Objects
format- Format of the export.
VersionExportJobDone Objects
status- Always DONE.signed_url- A link to the archive, signed freshly on every read.
VersionExportJobFailed Objects
status- Always FAILED.
VersionExportJob
The state of an export job: one of pending, done, failed, or a state this SDK version does not recognize.VersionExportJobResponse Objects
root is the state.
