此页面由 AI 自动翻译。查看英文原版
最后更新

本页目录

  • 类
  • BatchCompose
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包

batch_compose

最后更新
Python API: luxonis_ml.data.augmentations.batch_compose

类

BatchCompose

组合批次感知的 Albumentations 变换。

方法

init
Python
1def __init__(transforms: TransformsSeqType, *, bbox_associations: dict[str, dict[str, str]] | None = None, **kwargs):
组合批次变换。参数
  • transforms (TransformsSeqType): 要组合的变换。
  • bbox_associations (dict[str, dict[str, str]] | None): 边界框字段映射到其关联的目标字段和目标类型。此处列出的字段必须带有由 luxonis_ml.data.augmentations.utils.preprocess_bboxes 附加的索引列;任何其他边界框字段保持不变。
  • **kwargs: 传递给 A.Compose 的附加参数。

属性

applied_params
最新调用返回的样本所形成的变换的运行时参数,以变换标识为键。未存活到该样本的子批次上的调用不予报告;在存活的子批次中,最后一个获胜。
batch_augmentation_indices
batch_size
嵌套变换批次大小的乘积,∏ibi。
transforms
按组合顺序排列的批次变换。