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

Function get_df

examples/GAN/CycleGAN.py:171–174  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

169
170 def get_image_pairs(dir1, dir2):
171 def get_df(dir):
172 files = sorted(glob.glob(os.path.join(dir, '*.jpg')))
173 df = ImageFromFile(files, channel=3, shuffle=isTrain)
174 return AugmentImageComponent(df, augs)
175 return JoinData([get_df(dir1), get_df(dir2)])
176
177 names = ['trainA', 'trainB'] if isTrain else ['testA', 'testB']

Callers 2

__init__Method · 0.85
get_image_pairsFunction · 0.85

Calls 3

ImageFromFileClass · 0.85
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…