class documentation
class SaveContext(object): (source)
Constructor: SaveContext(sample_collection, batch_size, batching_strategy)
Context that saves samples from a collection according to a configurable batching strategy.
Parameters | |
sample | a
fiftyone.core.collections.SampleCollection |
batch | the batch size to use. If a batching_strategy is provided, this parameter configures the strategy as described below. If no batching_strategy is provided, this can either be an integer specifying the number of samples to save in a batch (in which case batching_strategy is implicitly set to "static") or a float number of seconds between batched saves (in which case batching_strategy is implicitly set to "latency") |
batching | the batching strategy to use for each save operation. Supported values are:
By default, fo.config.default_batcher is used |
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | save |
Registers the sample for saving in the next batch. |
Instance Variable | batch |
Undocumented |
Instance Variable | sample |
Undocumented |
Method | _save |
Undocumented |
Instance Variable | _batch |
Undocumented |
Instance Variable | _batching |
Undocumented |
Instance Variable | _curr |
Undocumented |
Instance Variable | _curr |
Undocumented |
Instance Variable | _dataset |
Undocumented |
Instance Variable | _frame |
Undocumented |
Instance Variable | _frame |
Undocumented |
Instance Variable | _is |
Undocumented |
Instance Variable | _last |
Undocumented |
Instance Variable | _reload |
Undocumented |
Instance Variable | _sample |
Undocumented |
Instance Variable | _sample |
Undocumented |
Registers the sample for saving in the next batch.
Parameters | |
sample | a fiftyone.core.sample.Sample or
fiftyone.core.sample.SampleView |