The RedBrick CLI offers a simple interface to quickly import and export your images & annotations, and perform other high-level actions.
project name
.
redbrick clone [-h] [project] [path]
--with-files
is set.
Default: False
—old-format
Whether to export tasks in old format. (Default: False)
Default: False
—without-masks
Exports only tasks JSON without downloading any segmentation masks. Note: This is not recommended for tasks with overlapping labels.
Default: False
—semantic
Whether to export all segmentations as semantic_mask. This will create one segmentation file per class. If this is set to True and a task has multiple instances per class, then attributes belonging to each instance will not be exported.
Default: False
—binary-mask
Whether to export all segmentations as binary masks. This will create one segmentation file per instance.
Default: False
—single-mask
Whether to export all segmentations in a single file. Binary mask will be considered if both binary_mask and single_mask are set.
Default: False
—no-consensus
Whether to export tasks without consensus info. If None, will default to export with consensus info, if it is enabled for the given project.
Default: False
—png
Export labels as PNG masks
Default: False
—rt-struct
Export labels as DICOM RT-Struct. (Only for DICOM images)
Default: False
—mhd
Export segmentation masks in MHD format.
Default: False
—clear-cache
Clear local cache
Default: False
—concurrency, -c
Concurrency value (Default: 10)
Default: 10
—stage, -s
Export tasks that are currently in the given stage. Applicable only with redbrick export
and redbrick export latest
—destination, -d
Destination directory (Default: current directory)
Default: “.”
DICOM3D
’, ‘NIFTI3D
’, ‘NRRD3D
’, ‘IMAGE2D
’, ‘VIDEO
’, ‘VIDEOFRAMES
’]
Please refer to our documentation, to understand the required folder structure and supported file types.
Default: “DICOM3D”
—as-study
Group files by study
Default: False
—json
Upload json files with list of task objects
Default: False
—segment-map, -m
Segmentation mapping file path
—storage, -s
Storage method: (redbrick [default], public, )
Default: “redbrick”
—label-storage
Label Storage method: (same as items storage --storage
[default], redbrick, public, )
—ground-truth
Upload tasks directly to ground truth.
Default: False
—label-validate
Validate NIfTI label instances and segmentMap. By default, the uploaded NIfTI files are not validated during upload, which can result in invalid files being uploaded. Using this argument validates the files before upload, but may increase the upload time.
Default: False
—prune-segmentations
Prune segmentations that are not part of the series.
Default: False
—rt-struct
Upload segmentations from DICOM RT-Struct files.
Default: False
—mhd
Upload segmentations from MHD files.
Default: False
—clear-cache
Clear local cache
Default: False
—concurrency, -c
Concurrency value (Default: 10)
Default: 10