()
| 79 | |
| 80 | |
| 81 | def test_RandomCrop(): |
| 82 | t = RandomCrop((150, 120), padding_size=10, padding_value=[1, 2, 3]) |
| 83 | aug_data = t.apply_batch(generate_data()) |
| 84 | aug_data_shape = [(a.shape, b.shape) for a, b in aug_data] |
| 85 | target_shape = [((150, 120, 3), label_shape)] * 4 |
| 86 | assert aug_data_shape == target_shape |
| 87 | |
| 88 | |
| 89 | def test_Compose(): |
nothing calls this directly
no test coverage detected