Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Created January 28, 2019 23:37
Show Gist options
  • Save JoshVarty/ce299e26aaef4278d9f6daee4fdb847b to your computer and use it in GitHub Desktop.
Save JoshVarty/ce299e26aaef4278d9f6daee4fdb847b to your computer and use it in GitHub Desktop.
path = 'data/counting'
data = ImageDataBunch.from_folder(path, train=".", valid_pct=0.2,
ds_tfms=get_transforms(), size=224, num_workers=4).normalize(imagenet_stats)
data.show_batch(rows=3, figsize=(7,8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment