View source
Download
.ipynb
Create Table from YOLO - Oriented Bounding Boxes (OBB)¶
This notebook demonstrates how to create a 3LC Table from a YOLO-format dataset for oriented bounding box detection tasks.
The resulting table will contain an “image” column with the image filenames, with corresponding oriented bounding box annotations in the “obbs” column.
Project setup¶
[ ]:
PROJECT_NAME = "3LC Tutorials - YOLO OBB"
DATASET_NAME = "YOLO-OBB-Dataset"
TABLE_NAME = "initial-obb"
DATA_PATH = "../../../data"
Install dependencies¶
[ ]:
%pip install 3lc
Imports¶
[ ]:
import tlc
Create OBB Table¶
[ ]:
train_table = tlc.Table.from_yolo(
dataset_yaml_file="dota-8.yaml",
split="train",
project_name=PROJECT_NAME,
dataset_name=DATASET_NAME,
table_name=TABLE_NAME,
task="obb",
)