Convert Label Studio Annotations to YOLO Format
Convert exported Label Studio JSON annotations into YOLO‑style text files and create train/validation splits.
Ultralytics expects your dataset to be in the YOLO text format with separate directories for training and validation images and labels. Use the provided conversion scripts to transform the Label Studio JSON files into this structure and generate a data.yaml file describing the dataset.
bash
# Convert Label Studio JSON to YOLO text files
python3 scripts/ls_to_yolo.py
# Split data into training and validation sets and create data.yaml
python3 scripts/make_split_and_yaml.py