/third_party/mindspore/tests/ut/python/dataset/ |
D | test_compose.py | 21 import mindspore.dataset.transforms.py_transforms as py_transforms namespace 24 import mindspore.dataset.vision.py_transforms as py_vision 60 … c_transforms.Compose([py_transforms.OneHotOp(2), c_transforms.TypeCast(mstype.int32)])) \ 74 … assert test_config([1, 0], py_transforms.Compose([py_transforms.OneHotOp(2)])) == [[0, 1], [1, 0]] 75 …assert test_config([1, 0], py_transforms.Compose([py_transforms.OneHotOp(2), (lambda x: x + x)])) … 80 … py_transforms.Compose([py_transforms.Compose([py_transforms.OneHotOp(2)]), (lambda x: x + x)])) \ 85 [py_transforms.Compose([py_transforms.OneHotOp(2)]), (lambda x: x + x)]) \ 87 assert test_config([1, 0], [py_transforms.OneHotOp(2), (lambda x: x + x)]) == [[0, 2], [2, 0]] 91 py_transforms.Compose([1]) 96 test_config([1, 0], py_transforms.Compose([])) [all …]
|
D | test_random_choice.py | 20 import mindspore.dataset.transforms.py_transforms as py_transforms namespace 21 import mindspore.dataset.vision.py_transforms as py_vision 38 py_transforms.RandomChoice(transforms_list), 41 transform1 = py_transforms.Compose(transforms1) 47 transform2 = py_transforms.Compose(transforms2) 77 py_transforms.RandomChoice(transforms_list), 80 transform1 = py_transforms.Compose(transforms1) 87 transform2 = py_transforms.Compose(transforms2) 122 py_transforms.RandomChoice(transforms_list), 125 transform = py_transforms.Compose(transforms)
|
D | test_random_apply.py | 20 import mindspore.dataset.transforms.py_transforms as py_transforms namespace 21 import mindspore.dataset.vision.py_transforms as py_vision 41 py_transforms.RandomApply(transforms_list, prob=0.6), 44 transform1 = py_transforms.Compose(transforms1) 50 transform2 = py_transforms.Compose(transforms2) 83 py_transforms.RandomApply(transforms_list), 86 transform = py_transforms.Compose(transforms) 115 py_transforms.RandomApply(transforms_list, prob=0.6), 118 transform = py_transforms.Compose(transforms)
|
D | test_random_order.py | 20 import mindspore.dataset.transforms.py_transforms as py_transforms namespace 21 import mindspore.dataset.vision.py_transforms as py_vision 41 py_transforms.RandomOrder(transforms_list), 44 transform1 = py_transforms.Compose(transforms1) 50 transform2 = py_transforms.Compose(transforms2) 82 py_transforms.RandomOrder(transforms_list), 85 transform = py_transforms.Compose(transforms)
|
D | test_to_type.py | 20 import mindspore.dataset.transforms.py_transforms 21 import mindspore.dataset.vision.py_transforms as py_vision 45 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1) 54 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2) 84 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 106 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 129 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 152 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 175 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_random_grayscale.py | 20 import mindspore.dataset.transforms.py_transforms 21 import mindspore.dataset.vision.py_transforms as py_vision 47 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1) 56 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2) 88 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1) 97 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2) 134 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 161 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 187 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_adjustgamma.py | 23 import mindspore.dataset.transforms.py_transforms 24 import mindspore.dataset.vision.py_transforms as F 118 trans = mindspore.dataset.transforms.py_transforms.Compose([ 130 trans = mindspore.dataset.transforms.py_transforms.Compose([ 166 trans = mindspore.dataset.transforms.py_transforms.Compose([ 184 transforms1 = mindspore.dataset.transforms.py_transforms.Compose( 198 transform2 = mindspore.dataset.transforms.py_transforms.Compose( 225 transforms1 = mindspore.dataset.transforms.py_transforms.Compose( 240 transform2 = mindspore.dataset.transforms.py_transforms.Compose( 267 transforms1 = mindspore.dataset.transforms.py_transforms.Compose( [all …]
|
D | test_five_crop.py | 21 import mindspore.dataset.transforms.py_transforms 22 import mindspore.dataset.vision.py_transforms as vision 43 transform_1 = mindspore.dataset.transforms.py_transforms.Compose(transforms_1) 53 transform_2 = mindspore.dataset.transforms.py_transforms.Compose(transforms_2) 88 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 113 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_linear_transformation.py | 20 import mindspore.dataset.transforms.py_transforms 21 import mindspore.dataset.vision.py_transforms as py_vision 50 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 101 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 131 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 160 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 190 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 220 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_random_erasing.py | 21 import mindspore.dataset.transforms.py_transforms 22 import mindspore.dataset.vision.py_transforms as vision 46 transform_1 = mindspore.dataset.transforms.py_transforms.Compose(transforms_1) 56 transform_2 = mindspore.dataset.transforms.py_transforms.Compose(transforms_2) 92 transform_1 = mindspore.dataset.transforms.py_transforms.Compose(transforms_1)
|
D | test_to_pil.py | 19 import mindspore.dataset.transforms.py_transforms 21 import mindspore.dataset.vision.py_transforms as py_vision 47 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 70 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_random_perspective.py | 20 import mindspore.dataset.transforms.py_transforms 21 import mindspore.dataset.vision.py_transforms as py_vision 44 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1) 50 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2) 87 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_rgb_bgr.py | 22 import mindspore.dataset.transforms.py_transforms 24 import mindspore.dataset.vision.py_transforms as py_vision 85 transforms1 = mindspore.dataset.transforms.py_transforms.Compose( 100 transforms2 = mindspore.dataset.transforms.py_transforms.Compose( 128 transforms1 = mindspore.dataset.transforms.py_transforms.Compose( 142 transforms2 = mindspore.dataset.transforms.py_transforms.Compose(
|
D | test_ten_crop.py | 21 import mindspore.dataset.transforms.py_transforms 22 import mindspore.dataset.vision.py_transforms as vision 41 transform_1 = mindspore.dataset.transforms.py_transforms.Compose(transforms_1) 51 transform_2 = mindspore.dataset.transforms.py_transforms.Compose(transforms_2) 114 transform_2 = mindspore.dataset.transforms.py_transforms.Compose(transforms_2) 174 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_random_crop.py | 20 import mindspore.dataset.transforms.py_transforms 23 import mindspore.dataset.vision.py_transforms as py_vision 78 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1) 87 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2) 140 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 189 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 238 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 282 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 333 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 378 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) [all …]
|
D | test_random_crop_and_resize.py | 21 import mindspore.dataset.transforms.py_transforms 24 import mindspore.dataset.vision.py_transforms as py_vision 105 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1) 114 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2) 147 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1) 176 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 212 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 247 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 296 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 339 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) [all …]
|
D | test_autocontrast.py | 20 import mindspore.dataset.transforms.py_transforms 21 import mindspore.dataset.vision.py_transforms as F 41 transforms_original = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 61 mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 103 …transforms_op = mindspore.dataset.transforms.py_transforms.Compose([lambda img: F.ToPIL()(img.asty… 161 transforms_op = mindspore.dataset.transforms.py_transforms.Compose( 293 …data_set = data_set.map(operations=[mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 304 …data_set = data_set.map(operations=[mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 322 …data_set = data_set.map(operations=[mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 334 operations=[mindspore.dataset.transforms.py_transforms.Compose([F.Decode(),
|
D | test_random_rotation.py | 22 import mindspore.dataset.transforms.py_transforms 24 import mindspore.dataset.vision.py_transforms as py_vision 80 transform1 = mindspore.dataset.transforms.py_transforms.Compose([py_vision.Decode(), 87 transform2 = mindspore.dataset.transforms.py_transforms.Compose([py_vision.Decode(), 116 transform1 = mindspore.dataset.transforms.py_transforms.Compose([py_vision.Decode(), 170 transform2 = mindspore.dataset.transforms.py_transforms.Compose([py_vision.Decode(), 213 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_cut_out.py | 21 import mindspore.dataset.transforms.py_transforms 23 import mindspore.dataset.vision.py_transforms as f 48 transform_1 = mindspore.dataset.transforms.py_transforms.Compose(transforms_1) 95 transform_1 = mindspore.dataset.transforms.py_transforms.Compose(transforms_1) 151 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 179 transform_1 = mindspore.dataset.transforms.py_transforms.Compose(transforms_1)
|
D | test_pad.py | 21 import mindspore.dataset.transforms.py_transforms 23 import mindspore.dataset.vision.py_transforms as py_vision 55 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 110 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 165 transform = mindspore.dataset.transforms.py_transforms.Compose(pytrans)
|
D | test_type_cast.py | 23 import mindspore.dataset.transforms.py_transforms 25 import mindspore.dataset.vision.py_transforms as py_vision 54 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 95 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_random_color_adjust.py | 22 import mindspore.dataset.transforms.py_transforms 24 import mindspore.dataset.vision.py_transforms as py_vision 47 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 91 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms) 217 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
|
D | test_random_color.py | 22 import mindspore.dataset.transforms.py_transforms 24 import mindspore.dataset.vision.py_transforms as F 48 transforms_original = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 67 transforms_random_color = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 150 transforms = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 185 transforms_random_color_py = mindspore.dataset.transforms.py_transforms.Compose(
|
D | test_invert.py | 21 import mindspore.dataset.transforms.py_transforms 22 import mindspore.dataset.vision.py_transforms as F 56 transforms_original = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 75 transforms_invert = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(), 178 …transforms_p_invert = mindspore.dataset.transforms.py_transforms.Compose([lambda img: img.astype(n… 234 transforms_invert = mindspore.dataset.transforms.py_transforms.Compose([F.Decode(),
|
/third_party/mindspore/mindspore/dataset/vision/ |
D | py_transforms.py | 28 import mindspore.dataset.transforms.py_transforms as py_transforms namespace 60 class ToTensor(py_transforms.PyTensorOperation): 105 class ToType(py_transforms.PyTensorOperation): 144 class HWC2CHW(py_transforms.PyTensorOperation): 177 class ToPIL(py_transforms.PyTensorOperation): 214 class Decode(py_transforms.PyTensorOperation): 248 class Normalize(py_transforms.PyTensorOperation): 304 class NormalizePad(py_transforms.PyTensorOperation): 366 class RandomCrop(py_transforms.PyTensorOperation): 432 class RandomHorizontalFlip(py_transforms.PyTensorOperation): [all …]
|