Skip to content

Instantly share code, notes, and snippets.

@MercyMarkus
Created April 18, 2019 16:42
Show Gist options
  • Save MercyMarkus/9f36f7b069bee720981f20807d234e88 to your computer and use it in GitHub Desktop.
Save MercyMarkus/9f36f7b069bee720981f20807d234e88 to your computer and use it in GitHub Desktop.
tfms = get_transforms(flip_vert=True, max_lighting=0.1, max_zoom=1.05, max_warp=0.)
data = (src.transform(tfms, size=256)
.databunch().normalize(imagenet_stats))
learn.data = data
data.train_ds[0][0].shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment