Skip to content

Python API

LightlyStudio has a powerful Python interface. You can not only index datasets but also query and manipulate them using code.

Overview

  • Dataset setupImage Dataset, Video Dataset
  • Reuse DatasetsReuse Datasets covers the DuckDB file location and load_or_create workflow.
  • Cloud StorageCloud Storage covers loading images and videos directly from S3, GCS, and Azure.
  • AnnotationsAnnotations covers annotation workflows, examples, and format notes.
  • Search and FilterSearch and Filter covers the DatasetQuery API for filtering, sorting, and slicing.
  • SamplingSampling covers diverse, metadata-weighted, similarity, class-balancing, and combined sampling strategies.
  • EvaluationEvaluation covers evaluation runs, per-sample metrics, and GUI visualizations.

The full API reference for each module is available in the navigation sidebar: Dataset, Sample, DatasetQuery, Sampling, Plugin, Annotation, Evaluation.

API Reference

See the menu on the left for the full API reference of the Python interface.