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

Function get_data

examples/GAN/DCGAN.py:112–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111
112def get_data():
113 assert args.data
114 imgs = glob.glob(args.data + '/*.jpg')
115 ds = ImageFromFile(imgs, channel=3, shuffle=True)
116 ds = AugmentImageComponent(ds, get_augmentors())
117 ds = BatchData(ds, args.batch)
118 ds = MultiProcessRunnerZMQ(ds, 5)
119 return ds
120
121
122def sample(model, model_path, output_name='gen/gen'):

Callers 1

DCGAN.pyFile · 0.70

Calls 5

ImageFromFileClass · 0.85
get_augmentorsFunction · 0.85
BatchDataClass · 0.85

Tested by

no test coverage detected