nvidia.dali.fn.bb_flip#
- nvidia.dali.fn.bb_flip(__input, /, *, bytes_per_sample_hint=[0], horizontal=1, ltrb=False, preserve=False, vertical=0, device=None, name=None)#
水平或垂直翻转边界框(镜像)。
输入的边界框坐标格式为 [x, y, width, height] -
xywh
或 [left, top, right, bottom] -ltrb
格式。所有坐标均在图像坐标系中,即 0.0-1.0- 支持的后端
‘cpu’
‘gpu’
- 参数:
__input¶ (TensorList) – 操作符的输入。
- 关键字参数:
bytes_per_sample_hint¶ (int 或 list of int, 可选, 默认 = [0]) –
每个样本的输出大小提示(以字节为单位)。
如果指定,则位于 GPU 或页锁定主机内存中的操作符输出将被预先分配,以适应此大小的样本批次。
horizontal¶ (int 或 TensorList of int, 可选, 默认 = 1) – 翻转水平维度。
ltrb¶ (bool, 可选, 默认 = False) –
ltrb
为 True,xywh
为 False。preserve¶ (bool, 可选, 默认 = False) – 即使操作符的输出未使用,也阻止其从图中移除。
vertical¶ (int 或 TensorList of int, 可选, 默认 = 0) – 翻转垂直维度。