Importing Data & Annotations
The RedBrick AI SDK allows you to programmatically import data and/or annotations with a Python script. You can import either locally or externally stored data via the SDK using the create_datapoints
method.
Please see the full reference documentation for create_datapoints
here.
Perform the standard RedBrick AI SDK setup to create a Project object.
Import locally stored images
To import locally stored data, create a list of points
with relative file paths to your locally stored data, and use the redbrick.StorageMethod.REDBRICK
storage ID.
The points array follows the format of the items list.
Import externally stored images
To import data stored in an external storage method such as AWS s3, be sure to use the Storage ID found on the Storage tab of your RedBrick AI account instead of redbrick.StorageMethod.REDBRICK
.
Visit our documentation on external storage to learn how to integrate your own external storage like AWS s3, GCS, or Azure blob.
Import annotations
First, please follow our guide on preparing your items list for annotation import to prepare your points object correctly.
Importing Annotations GuideImporting locally stored annotations & images
Importing locally stored annotations with externally stored images
Importing externally stored annotations and images
Last updated