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

        Albumentations represents bounding boxes as `[x_min, y_min, x_max, y_max]`
        with normalized coordinates (values between 0 and 1) relative to the image size.

        Args:
            coords (Sequence[float]): The bounding box coordinates in
                Albumentations format.
            img_size (Sequence[int]): The reference image size as `[width, height]`.
            title (str, optional): The title or label of the bounding box.
                Defaults to an empty string.

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

        Create a bounding box from Albumentations format.

        Albumentations represents bounding boxes as `[x_min, y_min, x_max, y_max]`
        with normalized coordinates (values between 0 and 1) relative to the image size.

        Args:
            coords (Sequence[float]): The bounding box coordinates in
                Albumentations format.
            img_size (Sequence[int]): The reference image size as `[width, height]`.
            title (str, optional): The title or label of the bounding box.
                Defaults to an empty string.

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