hello.fiftyone.annotate module¶
- hello.fiftyone.annotate.from_cvat(dataset_name, anno_keys, cleanup=False, url='http://localhost:8080', username='hejian', password='LFIcvat123')[source]¶
- hello.fiftyone.annotate.to_cvat(anno_key, samples, label_field='ground_truth', label_type='instances', url='http://localhost:8080', username='hejian', password='LFIcvat123', task_size=1000, segment_size=200, task_assignee='hejian', job_assignees=['hejian'])[source]¶
Exports the samples to the given annotation backend.
mask_targetsis a dict mapping pixel values to semantic label strings. Only applicable when annotating semantic segmentations. the default issamples.default_mask_targets.- Parameters:
anno_key – must be valid variable names, used for project name
samples – a
fiftyone.core.collections.SampleCollectionlabel_field ("ground_truth") – a string indicating a new or existing label field to annotate
label_type ("instances") –
a string indicating the type of labels to annotate. The possible values are:
"classification": a single classification stored infiftyone.core.labels.Classificationfields"classifications": multilabel classifications stored infiftyone.core.labels.Classificationsfields"detections": object detections stored infiftyone.core.labels.Detectionsfields"instances": instance segmentations stored infiftyone.core.labels.Detectionsfields with theirmaskattributes populated"polylines": polylines stored infiftyone.core.labels.Polylinesfields with theirfilledattributes set toFalse"polygons": polygons stored infiftyone.core.labels.Polylinesfields with theirfilledattributes set toTrue"keypoints": keypoints stored infiftyone.core.labels.Keypointsfields"segmentation": semantic segmentations stored infiftyone.core.labels.Segmentationfields"scalar": scalar labels stored infiftyone.core.fields.IntField,fiftyone.core.fields.FloatField,fiftyone.core.fields.StringField, orfiftyone.core.fields.BooleanFieldfields
url (str, optional) – defaults to “http://localhost:8080”
username (str, optional) – defaults to “hejian”
password (str, optional) – defaults to “LFIcvat123”
task_size (int, optional) – defaults to 1000
segment_size (int, optional) – defaults to 200
task_assignee (str, optional) – defaults to “hejian”
job_assignees (list, optional) – defaults to
["hejian"]