Searched refs:distortion_scale (Results 1 – 4 of 4) sorted by relevance
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_random_perspective.py | 82 py_vision.RandomPerspective(distortion_scale=0.3, prob=0.7, 108 _ = py_vision.RandomPerspective(distortion_scale=1.5)
|
/third_party/mindspore/mindspore/dataset/vision/ |
D | py_transforms.py | 1007 def __init__(self, distortion_scale=0.5, prob=0.5, interpolation=Inter.BICUBIC): argument 1008 self.distortion_scale = distortion_scale 1026 img, self.distortion_scale)
|
D | validators.py | 538 [distortion_scale, prob, interpolation], _ = parse_user_args(method, *args, **kwargs) 540 type_check(distortion_scale, (float,), "distortion_scale") 542 check_value(distortion_scale, [0., 1.], "distortion_scale")
|
D | py_transforms_util.py | 911 def get_perspective_params(img, distortion_scale): argument 915 distorted_half_width = int(img_width / 2 * distortion_scale) 916 distorted_half_height = int(img_height / 2 * distortion_scale)
|