Home
last modified time | relevance | path

Searched refs:distortion_scale (Results 1 – 4 of 4) sorted by relevance

/third_party/mindspore/tests/ut/python/dataset/
Dtest_random_perspective.py82 py_vision.RandomPerspective(distortion_scale=0.3, prob=0.7,
108 _ = py_vision.RandomPerspective(distortion_scale=1.5)
/third_party/mindspore/mindspore/dataset/vision/
Dpy_transforms.py1007 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)
Dvalidators.py538 [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")
Dpy_transforms_util.py911 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)