Skip to main content

Scalabel Python Package

Project description


Build & Test Language grade: JavaScript Language grade: Python Docker Pulls System Support GitHub release (latest by date) PyPI version PyPI - Python Version npm node-lts Redis Version npm type definitions

Scalabel (pronounced "sca⋅label") is a versatile and scalable annotation platform, supporting both 2D and 3D data labeling. BDD100K is labeled with this tool.

Documentation | Overview Video | Discussion | Contributors

scalabel interface


Main features


Quick Start

Try Scalabel on your local machine

git clone https://github.com/scalabel/scalabel
cd scalabel

chmod +x scripts/setup_ubuntu.sh scripts/setup_osx.sh scripts/setup_local_dir.sh
# Or run scripts/setup_osx.sh for MacOS
. scripts/setup_ubuntu.sh
. scripts/setup_local_dir.sh
npm run serve

Open your browser and go to http://localhost:8686 to use Scalabel. You can check our project configuration examples to create some sample projects.

We also provide docker image to avoid installing the libraries. To pull the image:

docker pull scalabel/www

Launch the server through docker

docker run -it -v "`pwd`/local-data:/opt/scalabel/local-data" -p \
    8686:8686 -p 6379:6379 scalabel/www \
    node app/dist/main.js \
    --config /opt/scalabel/local-data/scalabel/config.yml \
    --max-old-space-size=8192

The Python API can be installed through pip:

python3 -m pip install -U scalabel

For other operating systems or if you wish to use the Docker image, please refer to the installation guide.


Creating a new annotation project

  • Supporting importing popular data formats such as 2D images and 3D point clouds
  • Convenient data uploading using integrated or multiple configuration files for items, categories, and attributes
  • Divide a project into multiple tasks using variable task sizes

Create project

Creating a project consists of filling in the fields that specify the task, data type, and other parameters such as the task size. Item lists, categories, and attributes must be in the Scalabel format when uploaded.


Image tagging

Images can be tagged with multiple attributes. Categories include weather, scene, and time of day as defaults, but can be freely customised.

Image tagging


2D bounding box detection and tracking annotation

  • Simple click-and-drag area selection
  • Group boxes into a wide range of categories
  • Provides extra configurable options such as occlusion, truncation, and traffic light colours
  • Tracking between keyframes

2D bounding box

Create bounding boxes by selecting an area on the canvas. Bounding boxes can be freely adjusted and moved around. Categories and attributes of the bounding boxes can be customised. Bounding boxes can be linked between frames if the object disappears and reappears in subsequent frames. Linked bounding boxes are colour-coded to indicate the link.

2D bounding box tracking

Bounding boxes are interpolated between keyframes if the position, orientation, or scale of the bounding boxes differ. This is useful for tracking objects that move between keyframes.


2D polygon/polyline and tracking annotation

  • Choosing between closed paths for image segmentation or open paths for lane marking
  • Supporting bezier curves for precise annotation for round objects
  • Tracking interpolation between keyframes

2D polygon

Click on multiple points on the canvas to generate vertices of a polygon. Click on the first vertex to close the polygon. Vertices can be moved around, and new vertices can be added by clicking on the midpoint of the line segment between two vertices. Creating bezier curves is also supported for smoother labeling of curved objects.

2D polyline

Polylines can be created for lane marking. They support the same functions as polygons, but do not have to be closed.

2D polygon tracking

Polygons are interpolated between keyframes if the position, orientation, or scale of the polygons differ. This is useful for tracking objects that move between keyframes.


3D bounding box detection and tracking annotation on point clouds

  • Multi-sensor view for side-by-side comparison with corresponding 2D images
  • Simple four-point click to generate 3D bounding boxes
  • Supporting undo and panning functions during annotation for added precision
  • Tracking interpolation between keyframes

3D bounding box

Click on the canvas to define the length, breadth, and height of the 3D bounding box. There is an in-built ground plane prediction that aligns the 3D bounding box with the ground. Bounding boxes can be freely adjusted and moved around. Categories and attributes of the bounding boxes can be customised. Bounding boxes can be linked between frames if the object disappears and reappears in subsequent frames. Linked bounding boxes are colour-coded to indicate the link.

3D bounding box tracking

Bounding boxes are interpolated between keyframes if the position, orientation, or scale of the bounding boxes differ. This is useful for tracking objects that move between keyframes.


Real-time session synchronization for seamless collaboration

Multiple sessions can be initialised by opening new windows or tabs. Each session synchronises its changes in labels and tags with the other sessions in real-time. Tracking changes are also updated in real-time as well.

Session synchronisation


Semi-automatic annotation with label pre-loading

Deep learning models can be used to assist annotation for large batches of data. New models can be trained on a subset of the data, and the remaining data can be uploaded for Scalabel to label automatically. The labels can be preloaded in the backend and can also be manually adjusted in the interface.


Python API for label handling and visualization

  • Providing convenience scripts for converting from and to other popular formats, such as COCO, KITTI, Waymo
  • Supporting evaluation of various tasks with the Scalabel format
    • Image tagging
    • Detection
    • Pose estimation
    • Instance segmentation
    • Semantic segmentation
    • Panoptic segmentation
    • Boundary detection
    • Bounding box tracking
    • Segmentation tracking
  • Contains a visualizer to easily visualize annotations as well as model predictions in Scalabel format

Python backend provides a convenient API for label handling and visualization. For compatibility with Scalabel's interface, datasets can be converted to the appropriate formats via scripts. Algorithms can be evaluated for each task by uploading the predictions and corresponding ground truth annotations in the Scalabel format. The labels can be easily visualised using the Python interface.


Contributors

Scalabel is currently supported by ETH VIS Group. Many contributors have contributed to the project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scalabel-0.3.1.tar.gz (97.6 kB view details)

Uploaded Source

Built Distribution

scalabel-0.3.1-py3-none-any.whl (133.4 kB view details)

Uploaded Python 3

File details

Details for the file scalabel-0.3.1.tar.gz.

File metadata

  • Download URL: scalabel-0.3.1.tar.gz
  • Upload date:
  • Size: 97.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for scalabel-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c80eedb859bec00f43866e39ef7d2609728c1c527ce63f73b5700422e93e3b6a
MD5 782bfdb870be898e728b3faf4359125e
BLAKE2b-256 590c4215f60e53baa67b9149a6be0256b7b82a2af41afdbb1828843b4c259317

See more details on using hashes here.

File details

Details for the file scalabel-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: scalabel-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 133.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for scalabel-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb68fa2d7b018a8f59b26e546cfa9f322bcad2926baae980dad5d9fe5529a75c
MD5 eb1145ca496ab5093e1724d55fef9e0f
BLAKE2b-256 d0084513068aaf84f6e065324eff627f7ab32b1328f2cbb900ff2c8e03d2b5f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page