mindspore/docs/api/api_python/dataset_vision/mindspore.dataset.vision.Ra...

15 lines
594 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.dataset.vision.RandomVerticalFlipWithBBox
===================================================
.. py:class:: mindspore.dataset.vision.RandomVerticalFlipWithBBox(prob=0.5)
以给定的概率对输入图像和边界框在垂直方向进行随机翻转。
参数:
- **prob** (float, 可选) - 图像被翻转的概率默认值0.5。
异常:
- **TypeError** - 如果 `prob` 不是float类型。
- **ValueError** - 如果 `prob` 不在 [0, 1] 范围。
- **RuntimeError** - 如果输入的Tensor不是 <H, W> 或<H, W, C> 格式。