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

15 lines
621 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.RandomLighting
========================================
.. py:class:: mindspore.dataset.vision.RandomLighting(alpha=0.05)
将AlexNet PCA的噪声添加到图像中其中Alexnet PCA噪声的特征值和特征向量是由ImageNet数据集计算得出。
参数:
- **alpha** (float, 可选) - 图像的强度必须是非负的。默认值0.05。
异常:
- **TypeError** - 如果 `alpha` 的类型不为bool。
- **ValueError** - 如果 `alpha` 为负数。
- **RuntimeError** - 如果输入图像的shape不是 <H, W, C>。