Skip to navigation

Import from cloud storage

Overview

Imports images or videos from a folder of a storage bucket connected to the workspace into the OvalBee dataset you pick. Annotations stored next to the media come along, and their format is recognized from the folder contents.

The bucket can be on AWS S3 or S3-compatible storage such as MinIO, Ceph or RustFS, on Azure Blob Storage or on Google Cloud Storage. The media are copied into OvalBee storage, so the dataset keeps working when the bucket changes. Turn on Link images and videos instead of copying to leave them in the bucket instead.

Every run creates a new version of the destination dataset that keeps what it already held and adds the imported media. The LAST_RUN output opens a hidden dataset holding only the media and annotations of the latest run.

Import from cloud storage Dataset

Prerequisites

RequirementWhat you need
A connected bucketThe bucket added under Settings > Storage, on a provider whose credentials can list and read it. Buckets of your own need a plan that includes them.

How it works

1

Lists every file under the bucket folder without downloading anything.

2

Creates a new version of the destination dataset.

3

Recognizes the annotation format from the file layout and the annotation files, or uses the format picked in Annotation format.

4

Downloads the media and annotation files that belong to the import and copies the media into OvalBee storage. With Link images and videos instead of copying, the media are only read, for an image’s dimensions and orientation and a video’s thumbnail, and stay in the bucket.

5

Adds the media and their annotations to the new version and to the hidden LAST_RUN dataset, and adds the classes and tags the annotations declare to the destination’s ontology.

FAQ

For images: Supervisely, COCO, YOLO, Pascal VOC, LabelMe and Cityscapes. For videos: Supervisely. A folder with media and no annotation files in a known format is imported as plain images or videos.

Pick the format in Annotation format instead of Auto. The node then reads the folder as that format and skips detection.

Turn off With annotations. Every image or video under the folder is imported, and annotation files are ignored.

Bucket path offers the buckets connected under Settings > Storage, and the node reads them through OvalBee with the credentials stored on their provider. The node itself holds no credentials, so changing a provider’s keys changes them for every node that uses its buckets.

The provider’s credentials may not allow listing or reading the bucket, the bucket may be over your plan’s bucket limit, the bucket path may point at an empty folder, or no image or video was found under it. For videos, only Auto and Supervisely are accepted in Annotation format.

The folder is imported again into another new version of the destination dataset, and every file gets a second copy there. The earlier versions stay available, and LAST_RUN moves to a new version holding only this run. Point the node at a new dataset when you don’t want duplicates.

Inputs

Bucket path
storage_pathRequired

Bucket and folder to import from, for example s3://my-bucket/datasets/cars/. The bucket is one connected under Settings > Storage. Every file under the folder is scanned. Placeholder: datasets/cars/. Key: PATH.

Media type
selectDefaults to imagesRequired

Whether the folder holds images or videos. Key: MEDIA_TYPE.

Options:

  • Images (images)
  • Videos (videos)
Link images and videos instead of copying
booleanDefaults to falseRequired

Leave the media files in the bucket and add them to the dataset by reference, so they take no workspace storage. Annotations are still copied. Key: LINK_MEDIA.

With annotations
booleanDefaults to trueRequired

Import annotations next to the media. Turn off to import only the media files. Key: WITH_ANNOTATIONS.

Annotation format
selectDefaults to autoRequired

Format of the annotations. Auto detects it from the folder contents. Videos support Auto and Supervisely only. Visible when WITH_ANNOTATIONS is not False. Key: ANNOTATION_FORMAT.

Options:

  • Auto (auto)
  • Supervisely (supervisely)
  • COCO (coco)
  • YOLO (yolo)
  • Pascal VOC (pascal_voc)
Destination dataset
datasetRequired

Dataset that receives the imported media and annotations, or a new name to create one. Each import adds a new version, so what the dataset held before stays available. Key: DATASET.

Outputs

Dataset
dataset

ID of the OvalBee dataset that received the imported media. Key: DATASET.

Last Run
dataset

Hidden dataset containing the media and annotations imported during the last run. A rerun writes a new version of it. Shown as an artifact. Key: LAST_RUN.

JSON config

Machine-readable node interface for automation and advanced usage.

{
"name": "Import from cloud storage",
"description": "Import images or videos with their annotations from a storage bucket connected to the workspace. The annotation format is detected automatically.",
"category": "Import",
"namespace": "ovalbee",
"templateKey": "import_ops/import_from_cloud_storage",
"version": "v1",
"inputs": [
{
"key": "PATH",
"label": "Bucket path",
"type": "storage_path",
"description": "Bucket and folder to import from, for example `s3://my-bucket/datasets/cars/`. The bucket is one connected under Settings > Storage. Every file under the folder is scanned.",
"required": true,
"default": null,
"visibleWhen": null,
"options": {
"placeholder": "datasets/cars/"
}
},
{
"key": "MEDIA_TYPE",
"label": "Media type",
"type": "select",
"description": "Whether the folder holds images or videos.",
"required": true,
"default": "images",
"visibleWhen": null,
"options": {
"control": "tabs",
"options": [
{
"label": "Images",
"value": "images"
},
{
"label": "Videos",
"value": "videos"
}
]
}
},
{
"key": "LINK_MEDIA",
"label": "Link images and videos instead of copying",
"type": "boolean",
"description": "Leave the media files in the bucket and add them to the dataset by reference, so they take no workspace storage. Annotations are still copied.",
"required": true,
"default": false,
"visibleWhen": null
},
{
"key": "WITH_ANNOTATIONS",
"label": "With annotations",
"type": "boolean",
"description": "Import annotations next to the media. Turn off to import only the media files.",
"required": true,
"default": true,
"visibleWhen": null
},
{
"key": "ANNOTATION_FORMAT",
"label": "Annotation format",
"type": "select",
"description": "Format of the annotations. Auto detects it from the folder contents. Videos support Auto and Supervisely only.",
"required": true,
"default": "auto",
"visibleWhen": {
"key": "WITH_ANNOTATIONS",
"operator": "notEquals",
"value": false
},
"options": {
"options": [
{
"label": "Auto",
"value": "auto"
},
{
"label": "Supervisely",
"value": "supervisely"
},
{
"label": "COCO",
"value": "coco"
},
{
"label": "YOLO",
"value": "yolo"
},
{
"label": "Pascal VOC",
"value": "pascal_voc"
}
]
}
},
{
"key": "DATASET",
"label": "Destination dataset",
"type": "dataset",
"description": "Dataset that receives the imported media and annotations, or a new name to create one. Each import adds a new version, so what the dataset held before stays available.",
"required": true,
"default": null,
"visibleWhen": null
}
],
"outputs": [
{
"key": "DATASET",
"label": "Dataset",
"type": "dataset",
"description": "ID of the OvalBee dataset that received the imported media.",
"artifact": false,
"badge": false,
"badgeOpens": null,
"hidden": false
},
{
"key": "LAST_RUN",
"label": "Last Run",
"type": "dataset",
"description": "Hidden dataset containing the media and annotations imported during the last run. A rerun writes a new version of it.",
"artifact": true,
"badge": false,
"badgeOpens": null,
"hidden": false
}
]
}