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

Function view_data

examples/HED/hed.py:237–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235
236
237def view_data():
238 ds = RepeatedData(get_data('train'), -1)
239 ds.reset_state()
240 for ims, edgemaps in ds:
241 for im, edgemap in zip(ims, edgemaps):
242 assert im.shape[0] % 16 == 0 and im.shape[1] % 16 == 0, im.shape
243 cv2.imshow("im", im / 255.0)
244 cv2.waitKey(1000)
245 cv2.imshow("edge", edgemap)
246 cv2.waitKey(1000)
247
248
249def get_config():

Callers 1

hed.pyFile · 0.85

Calls 3

RepeatedDataClass · 0.85
get_dataFunction · 0.70
reset_stateMethod · 0.45

Tested by

no test coverage detected