tlc.core.objects.tables.from_url.table_from_yolo

A table populated from a YOLO dataset

Module Contents

Classes

Class

Description

TableFromYolo

TableFromYoloDetection

TableFromYoloKeypoints

A table populated from a YOLO keypoints dataset.

TableFromYoloOBB

TableFromYoloSegmentation

API

class TableFromYolo(
*,
url: Url | None = None,
created: str | None = None,
description: str | None = None,
row_cache_url: Url | None = None,
row_cache_populated: bool | None = None,
override_table_rows_schema: Any = None,
input_url: Url | str | None = None,
split: str | None = None,
datasets_dir: Url | None = None,
override_split_path: list[str] | None = None,
init_parameters: Any = None,
input_tables: list[Url] | None = None,
**kwargs: Any,
)

Bases: tlc.core.objects.tables.from_url.table_from_yolo.TableFromYoloDetection

class TableFromYoloDetection(
*,
url: Url | None = None,
created: str | None = None,
description: str | None = None,
row_cache_url: Url | None = None,
row_cache_populated: bool | None = None,
override_table_rows_schema: Any = None,
input_url: Url | str | None = None,
split: str | None = None,
datasets_dir: Url | None = None,
override_split_path: list[str] | None = None,
init_parameters: Any = None,
input_tables: list[Url] | None = None,
**kwargs: Any,
)

Bases: tlc.core.objects.tables.from_url.table_from_yolo._YoloDetectionTaskHandler, tlc.core.objects.tables.from_url.table_from_yolo._TableFromYolo

class TableFromYoloKeypoints(
*,
kpt_shape: tuple[int, int] | None = None,
points: list[float] | None = None,
point_attributes: str | Sequence[str] | Sequence[dict[str, str]] | Sequence[MapElement] | dict[float, str] | dict[int, str] | dict[float, MapElement] | dict[int, MapElement] | None = None,
lines: list[int] | None = None,
line_attributes: str | Sequence[str] | Sequence[dict[str, str]] | Sequence[MapElement] | dict[float, str] | dict[int, str] | dict[float, MapElement] | dict[int, MapElement] | None = None,
triangles: list[int] | None = None,
triangle_attributes: str | Sequence[str] | Sequence[dict[str, str]] | Sequence[MapElement] | dict[float, str] | dict[int, str] | dict[float, MapElement] | dict[int, MapElement] | None = None,
flip_indices: list[int] | None = None,
oks_sigmas: list[float] | None = None,
**kwargs: Any,
)

Bases: tlc.core.objects.tables.from_url.table_from_yolo._YoloKeypointsTaskHandler, tlc.core.objects.tables.from_url.table_from_yolo._TableFromYolo

A table populated from a YOLO keypoints dataset.

The keypoints are stored in YOLO label format, which consists of a single file per image, where each line contains the class index, the bounding box coordinates and the keypoint coordinates.

The dataset YAML file must contain the keys path, names and the provided split. For pose estimation tasks, only a single class is expected.

In addition, the dataset YAML file should contain the ultralytics-compatible keys kpt_shape, which is a list of two integers, the first being the number of keypoints and the second being the number of channels; 2 for keypoints only, 3 for keypoints with visibility flag, and flip_idx, which are stored in the Table’s Schema, enabling flip-augmentation when used during training.

Finally, for convenience, all keypoint related arguments can also be provided in the dataset yaml file.

See (Table.from_yolo) for descriptions of all arguments.

class TableFromYoloOBB(
*,
url: Url | None = None,
created: str | None = None,
description: str | None = None,
row_cache_url: Url | None = None,
row_cache_populated: bool | None = None,
override_table_rows_schema: Any = None,
input_url: Url | str | None = None,
split: str | None = None,
datasets_dir: Url | None = None,
override_split_path: list[str] | None = None,
init_parameters: Any = None,
input_tables: list[Url] | None = None,
**kwargs: Any,
)

Bases: tlc.core.objects.tables.from_url.table_from_yolo._YoloOBBTaskHandler, tlc.core.objects.tables.from_url.table_from_yolo._TableFromYolo

class TableFromYoloSegmentation(
*,
url: Url | None = None,
created: str | None = None,
description: str | None = None,
row_cache_url: Url | None = None,
row_cache_populated: bool | None = None,
override_table_rows_schema: Any = None,
input_url: Url | str | None = None,
split: str | None = None,
datasets_dir: Url | None = None,
override_split_path: list[str] | None = None,
init_parameters: Any = None,
input_tables: list[Url] | None = None,
**kwargs: Any,
)

Bases: tlc.core.objects.tables.from_url.table_from_yolo._YoloSegmentationTaskHandler, tlc.core.objects.tables.from_url.table_from_yolo._TableFromYolo