def from_yolo(
        coords: Sequence[float],
        img_size: Sequence[int],
        title: str = "",
    ) -> "BBox":
        """
        Create a bounding box from YOLO format.

        YOLO format represents bounding boxes as [x_center, y_center, width, height],
        where:
        - (x_center, y_center) are the normalized coordinates of the box center.
        - width and height normalized values define the size of the bounding box.

        Args:
            coords (Sequence[float]): The bounding box coordinates in YOLO format.
            img_size (Sequence[int]): The reference image size as `[width, height]`.
            title (str): The title of the bounding box.

        Returns:
            BBox: The bounding box data model.
        """
        validate_bbox(coords, float)
        bbox_coords = convert_bbox(coords, img_size, "yolo", "voc")
        return BBox(title=title, coords=list(map(round, bbox_coords)))

        Create a bounding box from YOLO format.

        YOLO format represents bounding boxes as [x_center, y_center, width, height],
        where:
        - (x_center, y_center) are the normalized coordinates of the box center.
        - width and height normalized values define the size of the bounding box.

        Args:
            coords (Sequence[float]): The bounding box coordinates in YOLO format.
            img_size (Sequence[int]): The reference image size as `[width, height]`.
            title (str): The title of the bounding box.

        Returns:
            BBox: The bounding box data model.
        
src/datachain/model/bbox.py