/third_party/mindspore/tests/ut/python/dataset/ |
D | test_random_posterize.py | 20 import mindspore.dataset.vision.c_transforms as c_vision namespace 43 c_vision.Decode(), 44 c_vision.RandomPosterize((1, 8)) 52 data2 = data2.map(operations=[c_vision.Decode()], input_columns=["image"]) 90 c_vision.Decode(), 91 c_vision.RandomPosterize(1) 99 data2 = data2.map(operations=[c_vision.Decode()], input_columns=["image"]) 128 c_vision.Decode(), 129 c_vision.RandomPosterize() 137 data2 = data2.map(operations=[c_vision.Decode()], input_columns=["image"]) [all …]
|
D | test_rotate.py | 21 import mindspore.dataset.vision.c_transforms as c_vision namespace 39 decode_op = c_vision.Decode() 40 rotate_op = c_vision.Rotate(90, expand=True) 72 decode_op = c_vision.Decode() 73 resize_op = c_vision.Resize((64, 128)) 74 rotate_op = c_vision.Rotate(30) 90 resize_img = c_vision.Resize((32, 64))(img) 91 rotate_img = c_vision.Rotate(-90, expand=True)(resize_img) 101 _ = c_vision.Rotate("60") 106 _ = c_vision.Rotate(30, Inter.BICUBIC, False, (0, 0, 0)) [all …]
|
D | test_crop.py | 21 import mindspore.dataset.vision.c_transforms as c_vision namespace 39 decode_op = c_vision.Decode() 40 crop_op = c_vision.Crop((0, 0), (20, 25)) 71 img_ms = c_vision.Crop((20, 50), (30, 50))(img) 83 _ = c_vision.Crop([-10, 0], [20]) 88 _ = c_vision.Crop([0, 5.2], [10, 10]) 93 _ = c_vision.Crop([0], [28]) 98 _ = c_vision.Crop((0, 0), -1) 103 _ = c_vision.Crop((0, 0), (10.5, 15)) 108 _ = c_vision.Crop((0, 0), (0, 10, 20))
|
D | test_slice_patches.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 76 decode_op = c_vision.Decode() 77 resize_op = c_vision.Resize(ori_size) # H, W 78 slice_patches_op = c_vision.SlicePatches( 81 slice_patches_op = c_vision.SlicePatches( 120 _ = c_vision.SlicePatches(0, 2) 126 _ = c_vision.SlicePatches(2, 0) 132 _ = c_vision.SlicePatches(2, 2, 1) 138 _ = c_vision.SlicePatches(2, 2, mode.SliceMode.PAD, -1) 145 slice_patches_op = c_vision.SlicePatches(2, 8) [all …]
|
D | test_gaussian_blur.py | 21 import mindspore.dataset.vision.c_transforms as c_vision namespace 39 decode_op = c_vision.Decode() 40 gaussian_blur_op = c_vision.GaussianBlur(3, 3) 71 img_ms = c_vision.GaussianBlur((3, 5), (3.5, 3.5))(img) 83 _ = c_vision.GaussianBlur([2, 2]) 88 _ = c_vision.GaussianBlur(3.0, [3, 3]) 93 _ = c_vision.GaussianBlur(3, -3) 98 _ = c_vision.GaussianBlur(3, [3, 3, 3])
|
D | test_bounding_box_augment.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 49 test_op = c_vision.BoundingBoxAugment(c_vision.RandomRotation(90), 1) 88 test_op = c_vision.BoundingBoxAugment(c_vision.RandomCrop(50), 0.9) 126 test_op = c_vision.BoundingBoxAugment(c_vision.RandomHorizontalFlip(1), 0.9) 164 test_op = c_vision.BoundingBoxAugment(c_vision.RandomHorizontalFlip(1), 1) 194 test_op = c_vision.BoundingBoxAugment(c_vision.RandomHorizontalFlip(1), 1) 239 test_op = c_vision.BoundingBoxAugment(c_vision.RandomHorizontalFlip(1), 1.5) 255 test_op = c_vision.BoundingBoxAugment(c_vision.RandomHorizontalFlip(1),
|
D | test_HWC2CHW.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 42 img1 = c_vision.HWC2CHW()(img) 48 _ = c_vision.HWC2CHW()(*imgs) 52 _ = c_vision.HWC2CHW()(img, img) 64 decode_op = c_vision.Decode() 65 hwc2chw_op = c_vision.HWC2CHW() 98 decode_op = c_vision.Decode() 99 hwc2chw_op = c_vision.HWC2CHW() 116 decode_op = c_vision.Decode() 117 hwc2chw_op = c_vision.HWC2CHW()
|
D | test_random_crop_and_resize.py | 23 import mindspore.dataset.vision.c_transforms as c_vision namespace 46 decode_op = c_vision.Decode() 51 random_crop_and_resize_op1 = c_vision.RandomResizedCrop((256, 512), (2, 2), (1, 3)) 64 decode_op = c_vision.Decode() 66 random_crop_and_resize_op = c_vision.RandomResizedCrop((256, 512), (2, 2), (1, 3)) 164 decode_op = c_vision.Decode() 165 random_crop_and_resize_op = c_vision.RandomResizedCrop((256, 512), (0.5, 0.5), (1, 1)) 200 decode_op = c_vision.Decode() 201 …random_crop_and_resize_op = c_vision.RandomResizedCrop((256, 512), interpolation=mode.Inter.NEARES… 235 decode_op = c_vision.Decode() [all …]
|
D | test_pad.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 40 decode_op = c_vision.Decode() 42 pad_op = c_vision.Pad((100, 100, 100, 100)) 82 decode_op = c_vision.Decode() 83 resize_op = c_vision.Resize([90, 90]) 84 pad_op = c_vision.Pad((100, 9,)) 115 pad_gray = c_vision.Pad(100, fill_value=(20, 20, 20)) 124 decode_op = c_vision.Decode() 150 decode_op = c_vision.Decode() 151 pad_op = c_vision.Pad(150)
|
D | test_random_crop.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 45 random_crop_op = c_vision.RandomCrop([512, 512], [200, 200, 200, 200]) 46 decode_op = c_vision.Decode() 112 random_crop_op = c_vision.RandomCrop(512) 113 decode_op = c_vision.Decode() 161 random_crop_op = c_vision.RandomCrop([512, 375]) 162 decode_op = c_vision.Decode() 210 random_crop_op = c_vision.RandomCrop([2268, 4032]) 211 decode_op = c_vision.Decode() 257 random_crop_op = c_vision.RandomCrop([2268, 4033]) [all …]
|
D | test_random_vertical_flip.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 53 decode_op = c_vision.Decode() 54 random_vertical_op = c_vision.RandomVerticalFlip(1.0) 92 decode_op = c_vision.Decode() 93 random_horizontal_op = c_vision.RandomVerticalFlip(0.8) 139 decode_op = c_vision.Decode() 142 random_horizontal_op = c_vision.RandomVerticalFlip(1.5) 180 decode_op = c_vision.Decode() 182 random_horizontal_op = c_vision.RandomVerticalFlip(1) 221 random_vertical_op = c_vision.RandomVerticalFlip(1.0) [all …]
|
D | test_random_horizontal_flip.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 53 decode_op = c_vision.Decode() 54 random_horizontal_op = c_vision.RandomHorizontalFlip(1.0) 92 decode_op = c_vision.Decode() 93 random_horizontal_op = c_vision.RandomHorizontalFlip(0.8) 139 decode_op = c_vision.Decode() 142 random_horizontal_op = c_vision.RandomHorizontalFlip(1.5) 180 decode_op = c_vision.Decode() 182 random_horizontal_op = c_vision.RandomHorizontalFlip(1) 221 random_horizontal_op = c_vision.RandomHorizontalFlip(1.0) [all …]
|
D | test_random_resize_with_bbox.py | 20 import mindspore.dataset.vision.c_transforms as c_vision namespace 46 test_op = c_vision.RandomResizeWithBBox(100) 88 test_op = c_vision.RandomResizeWithBBox(200) 125 test_op = c_vision.RandomResizeWithBBox(500) 159 c_vision.RandomResizeWithBBox(0) 167 c_vision.RandomResizeWithBBox((0, 100)) 175 c_vision.RandomResizeWithBBox(-10) 183 c_vision.RandomResizeWithBBox((100, 100, 100)) 195 test_op = c_vision.RandomResizeWithBBox((400, 300))
|
D | test_config.py | 26 import mindspore.dataset.vision.c_transforms as c_vision namespace 87 data1 = data1.map(operations=[c_vision.Decode(True)], input_columns=["image"]) 92 data2 = data2.map(operations=[c_vision.Decode(True)], input_columns=["image"]) 130 random_crop_op = c_vision.RandomCrop([512, 512], [200, 200, 200, 200]) 131 decode_op = c_vision.Decode() 170 random_crop_op = c_vision.RandomCrop([512, 512], [200, 200, 200, 200]) 171 decode_op = c_vision.Decode() 180 random_crop_op2 = c_vision.RandomCrop([512, 512], [200, 200, 200, 200]) 210 random_crop_op = c_vision.RandomCrop([512, 512], [200, 200, 200, 200]) 211 decode_op = c_vision.Decode() [all …]
|
D | test_normalizeOp.py | 21 import mindspore.dataset.vision.c_transforms as c_vision namespace 50 decode_op = c_vision.Decode() 51 normalize_op = c_vision.Normalize(mean, std) 97 decode_op = c_vision.Decode() 98 normalize_op = c_vision.Normalize(mean, std) 171 decode_op = c_vision.Decode() 193 decode_op = c_vision.Decode() 194 normalize_op = c_vision.Normalize([121.0, 115.0, 100.0], [70.0, 68.0, 71.0]) 242 _ = c_vision.Normalize([100, 250, 125], [50, 50, 75, 75]) 255 _ = c_vision.Normalize([256, 250, 125], [50, 75, 75]) [all …]
|
D | test_normalizepad_op.py | 21 import mindspore.dataset.vision.c_transforms as c_vision namespace 54 decode_op = c_vision.Decode() 55 normalizepad_op = c_vision.NormalizePad(mean, std) 128 decode_op = c_vision.Decode() 129 normalizepad_op = c_vision.NormalizePad([121.0, 115.0, 100.0], [70.0, 68.0, 71.0], "float16") 148 _ = c_vision.NormalizePad([100, 250, 125], [50, 50, 75, 75]) 154 _ = c_vision.NormalizePad([100, 250, 125], [50, 50, 75], 1) 160 _ = c_vision.NormalizePad([100, 250, 125], [50, 50, 75], "")
|
D | test_random_crop_with_bbox.py | 20 import mindspore.dataset.vision.c_transforms as c_vision namespace 46 test_op = c_vision.RandomCropWithBBox([512, 512], [200, 200, 200, 200]) 77 test_op = c_vision.RandomCropWithBBox([512, 512], [200, 200, 200, 200]) 108 test_op = c_vision.RandomCropWithBBox(512, [200, 200, 200, 200], fill_value=(255, 255, 255)) 145 test_op = c_vision.RandomCropWithBBox(512, [200, 200, 200, 200], padding_mode=mode.Border.EDGE) 175 test_op = c_vision.RandomCropWithBBox(512, [200, 200, 200, 200], padding_mode=mode.Border.EDGE) 213 test_op = c_vision.RandomCropWithBBox([512, 512, 375]) 232 test_op = c_vision.RandomCropWithBBox([512, 512], [200, 200, 200, 200]) 253 test_op = c_vision.RandomCropWithBBox([512, 512], padding=-1) 266 …test_op = c_vision.RandomCropWithBBox([512, 512], padding=[16777216, 16777216, 16777216, 16777216])
|
D | test_cache_map.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 65 decode_op = c_vision.Decode() 99 decode_op = c_vision.Decode() 123 decode_op = c_vision.Decode() 163 random_crop_op = c_vision.RandomCrop([512, 512], [200, 200, 200, 200]) 164 decode_op = c_vision.Decode() 234 decode_op = c_vision.Decode() 280 decode_op = c_vision.Decode() 319 resize_op = c_vision.Resize((224, 224)) 361 decode_op = c_vision.Decode() [all …]
|
D | test_mixup_label_smoothing.py | 20 import mindspore.dataset.vision.c_transforms as c_vision namespace 68 decode_op = c_vision.Decode() 69 resize_op = c_vision.Resize((resize_height, resize_width), c_vision.Inter.LINEAR) 118 decode_op = c_vision.Decode() 119 resize_op = c_vision.Resize((resize_height, resize_width), c_vision.Inter.LINEAR)
|
D | test_resize_with_bbox.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 46 test_op = c_vision.ResizeWithBBox(100) 82 test_op = c_vision.ResizeWithBBox(200) 115 test_op = c_vision.ResizeWithBBox(500) 149 c_vision.ResizeWithBBox(400, interpolation="invalid") 161 test_op = c_vision.ResizeWithBBox((200, 300)) 182 c_vision.ResizeWithBBox(size, more_para)
|
D | test_random_affine.py | 22 import mindspore.dataset.vision.c_transforms as c_vision namespace 79 c_vision.Decode(), 80 c_vision.RandomAffine(degrees=0, translate=(0.5, 0.5, 0, 0)) 84 c_vision.Decode() 144 c_vision.Decode(), 145 c_vision.RandomAffine(degrees=(-5, 15), translate=(-0.1, 0.1, -0.3, 0.3), 171 c_vision.Decode(), 172 c_vision.RandomAffine(degrees=0) 223 _ = c_vision.RandomAffine(degrees=15, translate=(0.1, 1.5)) 229 _ = c_vision.RandomAffine(degrees=15, translate=(-2, 1.5))
|
D | test_random_vertical_flip_with_bbox.py | 20 import mindspore.dataset.vision.c_transforms as c_vision namespace 44 test_op = c_vision.RandomVerticalFlipWithBBox(1) 75 test_op = c_vision.RandomVerticalFlipWithBBox(1) 81 test_op = c_vision.RandomVerticalFlipWithBBox(1) 108 test_op = c_vision.RandomVerticalFlipWithBBox(0.8) 143 test_op = c_vision.RandomVerticalFlipWithBBox(1) 178 test_op = c_vision.RandomVerticalFlipWithBBox(2) 198 test_op = c_vision.RandomVerticalFlipWithBBox(1)
|
D | test_random_rotation.py | 23 import mindspore.dataset.vision.c_transforms as c_vision namespace 44 decode_op = c_vision.Decode() 46 random_rotation_op = c_vision.RandomRotation((90, 90), expand=True) 136 decode_op = c_vision.Decode() 138 random_rotation_op = c_vision.RandomRotation((0, 90), expand=True) 159 decode_op = c_vision.Decode() 160 resize_op = c_vision.RandomRotation((0, 90), 198 decode_op = c_vision.Decode() 200 rotation_op = c_vision.RandomRotation((45, 45))
|
D | test_horizontal_flip.py | 21 import mindspore.dataset.vision.c_transforms as c_vision namespace 39 decode_op = c_vision.Decode() 40 horizontal_flip_op = c_vision.HorizontalFlip() 71 img_ms = c_vision.HorizontalFlip()(img)
|
D | test_vertical_flip.py | 21 import mindspore.dataset.vision.c_transforms as c_vision namespace 39 decode_op = c_vision.Decode() 40 vertical_flip_op = c_vision.VerticalFlip() 71 img_ms = c_vision.VerticalFlip()(img)
|