LogoLogo
RedBrick AIGuides
  • Quick Start
    • Walkthrough Guides
    • Get Started with a Project
    • Get Started with Workspace
      • Cohort Creation
      • Datapoint Classification
      • Configuring Metadata Schema
    • Creating a RedBrick AI Account
  • Organizations
    • Organization and Project Roles
    • Inviting Your Team
      • Single Sign-on
  • Dashboard
    • Account Settings
    • User Preferences
    • Worklist
    • Preview Tool
    • Integrations
    • Taxonomies
    • Boost
      • Auto Annotator
    • Home
      • Sections
  • Importing Data
    • Uploading Data to RedBrick
    • Import Cloud Data
      • Configuring AWS s3
      • Configuring Azure Blob
      • Configuring GCS
      • Configuring AltaDB
      • Creating an Items List
    • Troubleshooting
  • Projects
    • Tasks & Assignment
    • Comments & Raise Issue
    • Reference Standards
    • Project & Task Analytics
    • Labeler Evaluation
  • Project Pages
    • Data Page
    • Settings Page
      • Custom Label Validation
      • Custom Hanging Protocol
      • Webhooks
    • Multiple Labeling
      • Consensus
        • Agreement calculation
      • Task duplication
  • Annotation & viewer
    • Viewer Basics
      • Document Viewer
      • Multiple Modalities
      • Intellisync
      • Annotation Mirroring
    • Creating, Editing and Deleting Annotations
    • Visualization and Masking
    • Segmentation
      • Segmentation Tools
      • Instance vs. Semantic
      • Overlapping Segmentations
    • Heat maps
  • Python SDK & CLI
    • Full documentation
    • Installation & API Keys
    • SDK Overview
      • Importing Data & Annotations
      • Programmatic Label & Review
      • Assigning & Querying Tasks
      • Exporting Annotations
    • CLI Overview
      • Creating & Cloning Projects
      • Import Data & Annotations
      • Exporting Annotations
    • Importing Annotations Guide
    • Formats
      • Full Format Reference
      • Export Structure
  • Useful Links
    • Privacy Policy
Powered by GitBook
On this page
  • Importing locally stored images
  • Upload using an items file
  • Group images by study
  • Upload video frames
  • Importing externally stored images
  • Import annotations
  • Import locally stored annotations & images
  • Import locally stored annotations with externally stored images
  • Import externally stored annotations & images

Was this helpful?

  1. Python SDK & CLI
  2. CLI Overview

Import Data & Annotations

PreviousCreating & Cloning ProjectsNextExporting Annotations

Last updated 1 year ago

Was this helpful?

You can easily import large amounts of data from the command line interface. Before following this guide, make sure to .

Importing locally stored images

Upload using an items file

To upload images that are stored in a non-conventional folder structure, you can define the structure using an JSON file and upload it like this.

$ redbrick upload path/to/items.json

If you don't want to use an items file for upload, ensure your data is stored within the correct folder structure . You can only upload a single data type in one upload operation. See the .

$ redbrick upload path/to/data/ --type DICOM3D

You can see all available .

Group images by study

To group your images by study, see , input the following:

$ redbrick upload path/to/data/ --as-study

Upload video frames

To upload a , input the following:

$ redbrick upload path/to/videoframes/ --as-frames --type VIDEOFRAMES

Importing externally stored images

To import data that is stored externally (e.g., in an AWS s3 bucket), you must specify the storage ID. You can find your storage solution's unique Storage ID in the Storage tab of the RedBrick AI platform.

$ redbrick upload items.json --storage STORAGEID # replace STORAGEID with your Storage ID

Import annotations

Import locally stored annotations & images

$ redbrick upload path/to/items.json # items.json must have local file paths.

Import locally stored annotations with externally stored images

The following command will upload your (locally stored) annotation files and your image files (stored in STORAGEID):

$ redbrick upload path/to/items.json --storage STORAGEID

Import externally stored annotations & images

If your annotation files are also stored externally, you can run the following command:

$ redbrick upload path/to/items.json --storage STORAGEID --label-storage LABELSTORAGEID

Prepare an containing references to your externally stored files.

To import annotations with your data, you must first create an items JSON file .

following the import annotations guide
Importing Annotations Guide
set up credentials for the CLI
items
defined in our documentation
supported file types here
types in the CLI upload reference documentation
here for examples
Items List
video by uploading individual frames
Click on the field in order to copy the value to your clipboard.