MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / test_ColorJitter

Function test_ColorJitter

imperative/python/test/unit/data/test_transform.py:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def test_ColorJitter():
42 t = ColorJitter()
43 aug_data = t.apply_batch(generate_data())
44 aug_data_shape = [(a.shape, b.shape) for a, b in aug_data]
45 target_shape = [(data_shape, label_shape)] * 4
46 assert aug_data_shape == target_shape
47
48
49def test_RandomHorizontalFlip():

Callers

nothing calls this directly

Calls 3

ColorJitterClass · 0.85
generate_dataFunction · 0.85
apply_batchMethod · 0.45

Tested by

no test coverage detected