Last active
April 18, 2019 15:01
-
-
Save MercyMarkus/bc5fedf855d44ad38fd62a9a187a0aba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src = (ImageList.from_df(df, path, folder='train_images') | |
.random_split_by_pct(0.2, seed=14) | |
.label_from_df('has_oilpalm') | |
.add_test(combined_test)) | |
data = (src.transform(get_transforms(flip_vert=True), size=164) | |
.databunch() | |
.normalize(imagenet_stats)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment