fiftyone.server.utils¶
FiftyOne Server utils
Functions:
|
Applies the changes to tags to all labels in the specified label field(s) of the collection, if necessary. |
|
Applies the changes to tags to all samples of the collection, if necessary. |
|
Yields the labels of the |
|
Determines whether the field meets type or types, or the field is a |
Applies the changes to tags to all samples of the collection, if necessary.
- Parameters
sample_collection – a
fiftyone.core.collections.SampleCollection
changes – a dict of tags as keys and bools as values. A
True
value adds the tag to all samples, if necessary. AFalse
value removes the tag from all samples, if necessary
Applies the changes to tags to all labels in the specified label field(s) of the collection, if necessary.
- Parameters
sample_collection – a
fiftyone.core.collections.SampleCollection
changes – a dict of tags as keys and bools as values. A
True
value adds the tag to all labels, if necessary. AFalse
value removes the tag from all labels, if necessarylabel_fields (None) – an optional name or iterable of names of
fiftyone.core.labels.Label
fields. By default, all label fields are used
-
fiftyone.server.utils.
iter_label_fields
(view: fiftyone.core.collections.SampleCollection)¶ Yields the labels of the
fiftyone.core.collections.SampleCollection
- Parameters
-
fiftyone.server.utils.
meets_type
(field: fiftyone.core.fields.Field, type_or_types)¶ Determines whether the field meets type or types, or the field is a
fiftyone.core.fields.ListField
that meets the type or types- Parameters
field – a class:fiftyone.core.fields.Field
type – a field type or tuple of field types