See also

Please visit our docs for more information on Segments.ai and visit the setup page to learn how to install and setup the Segments.ai Python SDK.

Huggingface#

Create a Huggingface dataset from a Segments release#

release2dataset(release, download_images=True)[source]#

Create a Huggingface dataset from a release.

Parameters
  • release (Release) – A Segments release resulting from get_release().

  • download_images (bool) – If images need to be downloaded from an AWS S3 url. Defaults to True.

Return type

Dataset

Returns

A HuggingFace dataset.

Raises

ValueError – If the type of dataset is not yet supported.