MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / mapf

Function mapf

examples/ResNet/imagenet_utils.py:99–103  ·  view source on GitHub ↗
(dp)

Source from the content-addressed store, hash-verified

97 aug = imgaug.AugmentorList(augmentors)
98
99 def mapf(dp):
100 fname, cls = dp
101 im = cv2.imread(fname, cv2.IMREAD_COLOR)
102 im = aug.augment(im)
103 return im, cls
104 ds = MultiThreadMapData(ds, parallel, mapf, buffer_size=2000, strict=True)
105 ds = BatchData(ds, batch_size, remainder=True)
106 ds = MultiProcessRunnerZMQ(ds, 1)

Callers

nothing calls this directly

Calls 1

augmentMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…