class documentation
class DatasetAppConfig(EmbeddedDocument): (source)
Constructor: DatasetAppConfig(*args, **kwargs)
Dataset-specific settings that customize how a dataset is visualized in the App.
Parameters | |
color | an optional ColorScheme for the dataset |
disable | whether to disable frame filtering for video datasets in the App's grid view |
grid | the default sample field from which to serve media in the App's grid view media_fallback (False): whether to fall back to the default media field ("filepath") when the alternate media field value for a sample is not defined |
media | the list of sample fields that contain media and should be available to choose from the App's settings menus |
modal | the default sample field from which to serve media in the App's modal view |
dynamic | the target frame rate when rendering ordered dynamic groups of images as videos |
plugins | an optional dict mapping plugin names to plugin configuration dicts. Builtin plugins include:
|
sidebar | an optional list of
SidebarGroupDocument describing sidebar groups to use in
the App |
Static Method | default |
Generates the default sidebar_groups for the given collection. |
Method | is |
Determines whether this app config differs from the default one. |
Class Variable | color |
Undocumented |
Class Variable | disable |
Undocumented |
Class Variable | dynamic |
Undocumented |
Class Variable | media |
Undocumented |
Class Variable | media |
Undocumented |
Class Variable | meta |
Undocumented |
Class Variable | plugins |
Undocumented |
Instance Variable | grid |
Undocumented |
Instance Variable | modal |
Undocumented |
Instance Variable | sidebar |
Undocumented |
Method | _add |
Undocumented |
Method | _delete |
Undocumented |
Method | _delete |
Undocumented |
Method | _rename |
Undocumented |
Method | _rename |
Undocumented |
Inherited from EmbeddedDocument
:
Method | __init__ |
Undocumented |
Inherited from MongoEngineBaseDocument
(via EmbeddedDocument
, BaseEmbeddedDocument
):
Class Method | from |
Loads the document from a BSON/JSON dictionary. |
Method | __deepcopy__ |
Undocumented |
Method | __delattr__ |
Undocumented |
Method | __delitem__ |
Undocumented |
Method | clear |
Clears the field from the document. |
Method | field |
Undocumented |
Method | field |
Undocumented |
Method | get |
Gets the field of the document. |
Method | has |
Determines whether the document has a field of the given name. |
Method | set |
Sets the value of a field of the document. |
Method | to |
Serializes this document to a BSON/JSON dictionary. |
Property | field |
An ordered tuple of the public fields of this document. |
Method | _get |
Undocumented |
Method | _get |
Returns an ordered tuple of field names of this document. |
Method | _get |
Returns an ordered tuple of field names that should be included in the repr of the document. |
Method | _to |
Undocumented |
Instance Variable | _fields |
Undocumented |
Inherited from SerializableDocument
(via EmbeddedDocument
, BaseEmbeddedDocument
, MongoEngineBaseDocument
):
Class Method | from |
Loads the document from a JSON string. |
Method | __eq__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | copy |
Returns a deep copy of the document. |
Method | fancy |
Generates a customizable string representation of the document. |
Method | iter |
Returns an iterator over the (name, value) pairs of the public fields of the document. |
Method | merge |
Merges the contents of the given document into this document. |
Method | to |
Serializes the document to a JSON string. |
Generates the default sidebar_groups for the given collection.
Examples:
import fiftyone as fo import fiftyone.zoo as foz dataset = foz.load_zoo_dataset("quickstart") sidebar_groups = fo.DatasetAppConfig.default_sidebar_groups(dataset) dataset.app_config.sidebar_groups = sidebar_groups print(dataset.app_config)
Parameters | |
sample | a
fiftyone.core.collections.SampleCollection |
Returns | |
a list of SidebarGroupDocument instances |