Created
January 28, 2019 23:11
-
-
Save JoshVarty/5f30b5f27cb9cac8f31547574a27389d 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
from fastai.vision import * | |
from fastai.metrics import error_rate | |
path = 'data/kittencat/' | |
data = ImageDataBunch.from_folder(path, train=".", valid_pct=0.2, | |
ds_tfms=get_transforms(), size=224, num_workers=4).normalize(imagenet_stats) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment