fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot] 2024-08-05 13:03:05 +00:00
parent fde9cd4735
commit b6547ba58e
1 changed files with 6 additions and 6 deletions

View File

@ -443,13 +443,13 @@ class Detections:
[Transformer](https://github.com/huggingface/transformers) inference result.
Args:
transformers_results (Union[dict, torch.Tensor]): Inference results from
your Transformers model. This can be either a dictionary containing
valuable outputs like `scores`, `labels`, `boxes`, `masks`,
`segments_info`, and `segmentation`, or a `torch.Tensor` holding a
transformers_results (Union[dict, torch.Tensor]): Inference results from
your Transformers model. This can be either a dictionary containing
valuable outputs like `scores`, `labels`, `boxes`, `masks`,
`segments_info`, and `segmentation`, or a `torch.Tensor` holding a
segmentation map where values represent class IDs.
id2label (Optional[Dict[int, str]]): A map from index to label. Typically
part of `transformers` model configuration. If provided, each detection
id2label (Optional[Dict[int, str]]): A map from index to label. Typically
part of `transformers` model configuration. If provided, each detection
will include the associated class name.
Returns: