This repo hosts scripts that download annotations from LabelBox and convert into format in YOLOv8, COCO, etc.
pip install -r requirements.txt
- Get LabelBox API key from LabelBox.
- Find LabelBox Project ID from LabelBox.
- Put API key and Project ID into
./labelbxo_config.yaml
file.
-
Download labels json file from LabelBox:
python3 download_labels_json_from_lbv2_project.py
Labels will be saved in
labelbox_labels/{project_name}/{project_name}.json
-
Create new ontology, split and convert labels json file into YOLOv8 format
python3 filter_split_convert_lbv2_to_yolov8.py --labels labelbox_labels/{prject_name}/{prject_name}.json
Converted labels will be saved in
yolov8_labels
.