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

Class ImageDecode

examples/SuperResolution/data_sampler.py:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55class ImageDecode(MapDataComponent):
56 def __init__(self, ds, index=0):
57 def func(im_data):
58 img = cv2.imdecode(im_data, cv2.IMREAD_COLOR)
59 return img
60 super(ImageDecode, self).__init__(ds, func, index=index)
61
62
63class RejectTooSmallImages(MapDataComponent):

Callers 2

get_dataFunction · 0.90
data_sampler.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected